Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

September 18 2009

mereandor

How to set static routes via DHCP

There are actually two ways to configure static routes, one via the standard option 121 (RFC 3442) and one explicitly for windows xp via the option 249. The syntax for those options differs a bit. This are the option I just used for my dnsmasq:

  • dhcp-option=121,16.192.168,192.168.100.253
  • dhcp-option=249,192.168.0.0/16,192.168.100.253
With option 249 you have the usual syntax of <network-ip>/<mask>, whereas with option 121 you have <mask>.<leading non-zero bytes of the network-ip>

I had to search quite a bit around to find this, so I hope this helps to find the relevant information faster. NOTE: This is not yet tested for other systems than WinXP

Reposted bygentoo gentoo