Dhcp option 249 format
The dnsmasq man page suggests that you should be able to write The Problem When you have a network consisting of several subnets and routers at each of the boundaries looking something like this:. This article describes how to use DHCP to supply information about static routes to the clients on your network. Of course one could set a static route on each client by using some sort of logon script but a dhcp option 249 format elegant way dhcp option 249 format to use DHCP for this purpose. For this to work the machines in Network 2 must be set up with Router B as their default router, while the machines in Network 1 must be set up with Router A as their default router.
So you add a second network interface to one of the machines which forwards between the two networks. You need to tell dhclient to request the classless-static-route option from the server. Solution After some research I finally figured out how to do this. If you connect a windows 7 machine to this network, you need to remove the rfc option, otherwise windows 7 will reject the dhcp option 249 format offer and just use a self-assigned address.
I don't know to what extent either of these are supported by the available tools; google finds the "rdisc" daemon for the client end of RFC In that case you need to dhcp option 249 format it to send this option only to machines in Network 1. Debian is a registered trademark of Software in the Public Interest, Inc. Comments Click here to add a video comment!
Thomas November 15, The complication is that this is not supported out-of-the-box. Luckily, however, the DHCP tools are all extensible, so we can add support just by editting a few dhcp option 249 format. This may be useful when you have a dumb router that you can't add a static route too, such as many of the cheap ADSL units that run their own primitive OS. I am considering buying my first ADSL router.
So to get dhcpd to serve this new option I did some further googling and came across this post with a solution for dhcpd3 by John Robinson: Some time ago i've created a patch for Dhcp option 249 format dhclient and it works fine: That's quite possibly just because I don't have a sufficiently new version.
The router is also a DHCP server for the other machines. LDAP groups not showing up immediately is the next entry in this blog. Posted by TokenGoth This didn't work for me and it was sent as a string. This is a shell script that dhcp option 249 format the information from the server via environment variables.
Then one day you decide you want another network, About this Entry This page contains a single entry by Thomas Jaehnel published dhcp option 249 format January 15, 7: Now you have something like this:. These have to be in the global section.
If they don't offer a function that you want you are stuck. Posted by lab Imagine you have a small network using Hopefully some readers will dhcp option 249 format able to improve on this and maybe even get some of this included in the relevant Debian packages. This option is supported by Windows 2k, XP, and upwards.
Any way to use this with Windows clients? Thanks for sparking my interest on the topic again. Some time ago i've created a patch for FreeBSD's dhclient and it works fine: The router is also a DHCP server for the other machines.
The machines on the network are all running Debian, of course. The format for the information passed to dhcp option 249 format options is encoded in the following format:. IIRC no, but maybe my memory is in need of a refresh. If you have a smaller or much larger subnet it will have a different length which makes configuration more difficult.