Hi,
I'm again having this problem which I thought was thing of a past. My network config is missing the bridge0 needed by iocage jails at reboot. I'm running:
Freenas: the latest FreeNAS-11.3-U4
on mobo:
I have these two system tunables which used to enable the bridge at some version of freenas:
Variable: cloned_interfaces
Value: bridge0
Type: rc
Description: add bridge for jails
Enabled: yes
Variable: ifconfig_bridge0
Value: addm ix0 up
Type: rc
Description: Add ix0 as member to bridge
Enabled: yes
To recover this after reboot I do:
My ifconfig after the above commands:
How is this supposed to be done these days? I want to use the host's network with public IPs. Apparently the tunables trick doesn't work any longer.
This problem makes me avoid rebooting freenas, or upgrading, as it will never recover the services after reboot. Which makes freenas feel very unreliable. What should I do instead nowadays?
I'm again having this problem which I thought was thing of a past. My network config is missing the bridge0 needed by iocage jails at reboot. I'm running:
Freenas: the latest FreeNAS-11.3-U4
on mobo:
Base Board Information
Manufacturer: Supermicro
Product Name: A2SDi-4C-HLN4F
I have these two system tunables which used to enable the bridge at some version of freenas:
Variable: cloned_interfaces
Value: bridge0
Type: rc
Description: add bridge for jails
Enabled: yes
Variable: ifconfig_bridge0
Value: addm ix0 up
Type: rc
Description: Add ix0 as member to bridge
Enabled: yes
To recover this after reboot I do:
# ifconfig bridge create
# ifconfig bridge0 addm ix0
# iocage start dbs
* Starting dbs-11-2
+ Started OK
+ Using devfs_ruleset: 6
+ Using IP options: ip4.addr=bridge0|192.168.11.243/24 ip4.saddrsel=1 ip4=new ip6.saddrsel=1 ip6=new
+ Starting services OK
+ Executing poststart OK
My ifconfig after the above commands:
# ifconfig
ix0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: ix0
options=e403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:b1:e3:8c
hwaddr ac:1f:6b:b1:e3:8c
inet 192.168.11.252 netmask 0xffffff00 broadcast 192.168.11.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (1000baseT <full-duplex,rxpause,txpause>)
status: active
ix1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:b1:e3:8d
hwaddr ac:1f:6b:b1:e3:8d
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: no carrier
ix2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:b1:e3:8e
hwaddr ac:1f:6b:b1:e3:8e
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: no carrier
ix3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=e407bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:b1:e3:8f
hwaddr ac:1f:6b:b1:e3:8f
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:63:7b:f9:ea:00
inet 192.168.117.243 netmask 0xffffff00 broadcast 192.168.117.255
nd6 options=1<PERFORMNUD>
groups: bridge
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: ix0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000
How is this supposed to be done these days? I want to use the host's network with public IPs. Apparently the tunables trick doesn't work any longer.
This problem makes me avoid rebooting freenas, or upgrading, as it will never recover the services after reboot. Which makes freenas feel very unreliable. What should I do instead nowadays?