Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Oct 2003 13:14:50 +0200
From:      "Roger 'Rocky' Vetterberg" <listsub@401.cx>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   dhcp overrides default route
Message-ID:  <3F83F1AA.7060702@401.cx>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F83F1AA.7060702>