How to force FreeBSD to assign default router when acquiring IP in DHCP mode?
My machines are FreeBSD 8.2-PRERELEASE or RELEASE
The NIC (respectively
re0) is set to get a dynamic IP address. Usually I do get everything straight without having to tweak the config i.e
rc.conf. The default router is automatically set in the routing table.
On my current config, the default router doesn't set. I had to add it manually (??)
$ route add default 10.0.0.1
or add a line in my
But hardcoding the default router is not an option, since it will depend on the network the machine will join.
My machine does get the DHCP lease and acquire a proper IP, only it is not able to find its route to the internet, until the default router is set manually. So I am wondering if there is parameter to set, that will force to recognize and add the default router to the routing table automatically as expected.
Note that this issue is only happening with the ethernet network adapter.
wlan0 does get its default gateway set in the routing table properly.
any ideas? or command I could try to trouble shoot why the default gateway is not set automatically?