Netgraph VLAN in VLAN (q-in-q)

Patrick Tracanelli eksffa at freebsdbrasil.com.br
Wed Dec 28 14:59:19 UTC 2011


Hello,

I need to setup a typical q-in-q environment, here's what I am working on:

ngctl mkpeer em2: vlan lower downstream
ngctl name em2:lower vlanL1
ngctl connect em2: vlanL1: upper nomatch
ngctl mkpeer vlanL1: eiface vlan2589 ether
ngctl msg vlanL1: addfilter '{ vlan=2589 hook="vlan2589" }'

# assign em2 mac address
ifconfig ngeth0 lladdr 00:21:5e:8a:0e:73

# Do everything again but the new vlan will have the previous
# as parent...
ngctl mkpeer ngeth0: vlan lower downstream
ngctl name ngeth0:lower vlanL2
ngctl connect ngeth0: vlanL2: upper nomatch
ngctl mkpeer vlanL2: eiface vlan110 ether
ngctl msg vlanL2: addfilter '{ vlan=110 hook="vlan110" }'

ifconfig ngeth1 lladdr 00:21:5e:8a:0e:73

But when I run:

# ngctl mkpeer ngeth0: vlan lower downstream

I get:

ngctl: send msg: Protocol family not supported

I am clueless what I am doing wrong at this point. Can someone help me with this little ng problem?

Its an 8.2-STABLE on i386 box.

Thank you :)

--
Patrick Tracanelli





More information about the freebsd-net mailing list