Sorry the right config is:

```
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 vlan100:lower vlan100bridge
connect vlan100: vlan100:lower upper link1
EOF


ngctl -f- <<EOF
mkpeer vlan200: bridge lower link0
name vlan200:lower vla200bridge
connect vlan200: vlan200:lower upper link1
EOF
```



Benoît Chesneau, Enki Multimedia
—
t. +33608655490 

Sent with ProtonMail secure email.
------- Original Message -------
On Thursday, April 21st, 2022 at 11:29, Benoit Chesneau 
<beno...@enki-multimedia.eu> wrote:


> 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

Reply via email to