Date: Thu, 21 Apr 2022 09:29:58 +0000 From: Benoit Chesneau <benoitc@enki-multimedia.eu> To: "freebsd-net@FreeBSD.org" <freebsd-net@FreeBSD.org> Subject: how to bridge "native" vlan? Message-ID: <mOEoiwDtLyUdBfav7_Ygz5qfW3nQuT7KM1CnKoXN4haHc-j3gQIYC5GK-eIsCWScLlBhntQNZr42XD-2txcOpHG1rykfrb8CbWvcP84iXxs=@enki-multimedia.eu>
next in thread | raw e-mail | index | archive | help
I have an interface on which multiple vlans are connected. I would like to bridge the vlan 100 and 200 but also have a bridge for the "native" vlan 1. I Can setup a bridge for vlan 100 and 200 the way below I think but how to create a bridge for the "native" vlan?
```
ETHER_IF=lagg0
ngctl -f- <<EOF
mkpeer ${ETHER_IF}: vlan lower downstream
name ${ETHER_IF}:lower vlan
connect ${ETHER_IF}: vlan: upper nomatch
EOF
ngctl mkpeer vlan: eiface vlan100 ether
ngctl msg vlan: addfilter '{ vlan=100 hook="vlan100" }'
ngctl mkpeer vlan: eiface vlan200 ether
ngctl msg vlan: addfilter '{ vlan=200 hook="vlan200" }'
ngctl -f- <<EOF
mkpeer vlan100: bridge lower link0
name bgp:lower vlan100bridge
connect vlan100: vlan100:lower upper link1
EOF
ngctl -f- <<EOF
mkpeer vlan10: bridge lower link0
name bgp:lower vla200bridge
connect vlan200: vlan200:lower upper link1
EOF
```
Benoît
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?mOEoiwDtLyUdBfav7_Ygz5qfW3nQuT7KM1CnKoXN4haHc-j3gQIYC5GK-eIsCWScLlBhntQNZr42XD-2txcOpHG1rykfrb8CbWvcP84iXxs=>
