dhcp overrides default route

Roger 'Rocky' Vetterberg listsub at 401.cx
Wed Oct 8 04:15:04 PDT 2003


Hi list

Lets say you have this in rc.conf:

ifconfig_dc0="inet 1.2.3.4 netmask 255.255.255.0"
ifconfig_dc1="DHCP"
default_router="1.2.3.254"

The network on dc1 is 192.168.0.0/24 with the default router on that 
subnet being 192.168.0.254.

If I reboot the box, dhclient will set default router to 
192.168.0.254, overriding the value I specified in rc.conf.
Is there a way to prevent that?

Right now, I have a shellscript that runs as soon as the box is 
finished booting that resets the default route to its correct value, 
but somehow it feels that this is not the right way to do it.

--
R



More information about the freebsd-questions mailing list