Setup lagg0 using two physical devices bge0 and bge1.

Create a vlan0 device for network A and vlan1 device for network B. Both using the newly created lagg0 device as the parent.

Set the LAN interface to use the newly created vlan0 device.

The above config results in an incorrectly configured system at boot time.
Code: Select all
# ifconfig
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:21:5e:4d:61:98
hwaddr 00:21:5e:4d:61:98
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
bge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:21:5e:4d:61:99
hwaddr 00:21:5e:4d:61:99
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
vlan0: flags=8003<UP,BROADCAST,MULTICAST> metric 0 mtu 1500
ether 00:00:00:00:00:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vlan: 0 vlanpcp: 0 parent interface: <none>
groups: vlan
vlan1: flags=8002<BROADCAST,MULTICAST> metric 0 mtu 1500
ether 00:00:00:00:00:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vlan: 0 vlanpcp: 0 parent interface: <none>
groups: vlan
Code: Select all
# cat /etc/rc.conf
...
ifconfig_vlan0="inet 192.168.0.241/24 vlan 1 vlandev lagg0"
defaultrouter="192.168.0.100"
netwait_enable="YES"
netwait_ip="192.168.0.100"
netwait_if="vlan0"
cloned_interfaces="vlan0 vlan1"
...
