Hello, in my rc.conf file I have configuration items of:
I had "thought" that similar to trying to add a default route at the command line, if the route already existed (by our setting it in the config file using defaultrotuer) and DHCP tried to set it, it would fail.
But DHCP must actually delete the default route and re-add the one it "wants". On the other hand, it isn't working to add the defaultrouter line after the dhcp pull, presumably because the default router already exists at that point, and, just like by hand, it fails to overwrite it.
Anyone know how to prevent DHCP from either over-writing the first route, or, how to do a 'route delete default' in the rc.conf file on the dhcp added default route?
Thanks.
Code:
ifconfig_re0="inet X.X.X.X netmask 255.255.255.248 media 100baseTX mediaopt full-duplex"
defaultrouter="X.X.X.X"
ifconfig_dc0="DHCP"
I had "thought" that similar to trying to add a default route at the command line, if the route already existed (by our setting it in the config file using defaultrotuer) and DHCP tried to set it, it would fail.
But DHCP must actually delete the default route and re-add the one it "wants". On the other hand, it isn't working to add the defaultrouter line after the dhcp pull, presumably because the default router already exists at that point, and, just like by hand, it fails to overwrite it.
Anyone know how to prevent DHCP from either over-writing the first route, or, how to do a 'route delete default' in the rc.conf file on the dhcp added default route?
Thanks.