I am trying touse netgraph for the bhyve vms with the following goals:
rc.conf is the following :
and for netgraph:
- I setup 2 bridge using an LACP bond
- one dedicated bridge for the vlan 1002
- one bridge for all others vlans
rc.conf is the following :
Code:
ifconfig_ix0="up"
ifconfig_ix1="up"
cloned_interfaces="lagg0 vlan1002 lo1"
ifconfig_lagg0="laggproto lacp laggport ix0 laggport ix1"
ifconfig_vlan1002="vlan 1002 vlandev lagg0"
and for netgraph:
Code:
ngctl -f- <<EOF
mkpeer lagg0: bridge lower link0
name lagg0:lower public
connect lagg0: lagg0:lower upper link1
mkpeer vlan1002: bridge lower link0
name vlan1002:lower vlan1002bridge
connect vlan1002: vlan1002:lower upper link1
msg lagg0: setpromisc 1
msg lagg0: setautosrc 0
msg vlan1002: setpromisc 1
msg vlan1002: setautosrc 0
EOF