Default route (i.e. 'defaultrouter') ignored for VLAN rc.conf setup?

Karl Pielorz kpielorz_lst at tdx.co.uk
Wed Sep 24 15:15:41 UTC 2014


Hi,

I've got a 10.0-R box setup with:

cloned_interfaces="bge0.99"
ifconfig_bge0_99="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.1"


This correctly sets up 'bge0.99' at boot time, but doesn't set the default 
route.

I've seen one post from way back about this - which was never really solved 
/ worked around (it was along the lines of 'maybe the default route add is 
occuring before the vlan config is in place') which it could probably be - 
but no solutions / workarounds were offered.

If you either re-run the network startup script, or manually do 'route add 
default 192.168.0.1' after the system is up (when bge0.99 exists) it'll 
quite happily add it.

Anyone know of a work around for this?

Thanks,

-Karl


More information about the freebsd-questions mailing list