Network failing in VM after host network restarted

wintered

Cadet
Joined
Apr 19, 2018
Messages
8
Twice now I have observed that if my host networking is restarted (down then up, not really sure of the cause here), the networking in my jails ends up broken. Basically there are no longer IP address associated:
root@home_11:/ # ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:fd:45:fd:1a:ac
hwaddr 00:fd:45:fd:1a:ac
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:fd:45:fd:1a:ad
hwaddr 00:fd:45:fd:1a:ad
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo


After restarting the jail, everything is as expected:
root@home_11:/ # ifconfig
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:fd:45:fd:1a:ac
hwaddr 00:fd:45:fd:1a:ac
inet 10.0.0.20 netmask 0xffffffff broadcast 10.0.0.20
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:fd:45:fd:1a:ad
hwaddr 00:fd:45:fd:1a:ad
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>


Is there something I need to do to make sure that the jail networking restarts correctly?
 

bluonek

Dabbler
Joined
Oct 27, 2014
Messages
34
FWIW - I'm seeing the same behavior since I've upgraded to 11.1 and started using iocage (warden didn't seem to have this issue).

Maybe it's iocage specific?

Haven't found anything on the net regarding this issue.


thnx,
blu1k
 

bluonek

Dabbler
Joined
Oct 27, 2014
Messages
34
Did you find a solution to this? Seems odd that a jail is unable to recover automatically after an internet outage. The host server doesn't have any issues.

Could this be due to the way networking is setup? Is there a more preferred way to setup networking for an iocage jail than the docs lay out? Does a newer version fix this issue?

thnx,
blu1k
 

bluonek

Dabbler
Joined
Oct 27, 2014
Messages
34
Sweet, thanks for the heads up!
 
Top