Solved ipv4 Network Issues after Upgrade from 12.1->12.2

After updating to 12.2-RELEASE my box no longer can reach a default route for ipv4. ipv6 seems to autoconfigure, but ifconfig does not show an inet entry. I have been able to fix it manually, but it requires me to do it after every reboot.

Manual Fix after reboot:
Code:
sudo setfib 0 route add default 172.16.0.1
sudo service netif restart
sudo dhclient em0

My /etc/rc.conf:
Code:
ifconfig_em0="inet 172.16.0.3 netmask 255.255.255.0"
ifconfig_em0_ipv6="inet6 accept_rtadv"
defaultrouter="172.16.0.1"
iocage_enable="YES"

# set up bridge interface for iocage
cloned_interfaces="bridge0"

# plumb interface em0 into bridge0
ifconfig_bridge0="addm em0 up"
ifconfig_em0="up"

Can anyone help with this?
 
Why are you running dhclient(8) when you have set a static IP address? Also note that restarting netif will result in routes getting removed, so you're undoing the previous route(8) command.

Your second ifconfig_em0 in your rc.conf overrules the first. Remember that rc.conf is basically just a shell script and you're only setting variables there. The second assignment of the variable simply overwrites whatever the first did. Remove the ifconfig_em0="up".
 
Back
Top