Tuesday, May 30, 2017

Re: Connecting two bridges for tagged + untagged traffic

Re,

just for the records and to stop anyone wasting time into this issue:

It looks like it's woking now, when I use pair-interfaces to connect the
two bridges and use one pair as parent-interface for a new
vlan-interface with the same vlan-id.

---cut---
# ifconfig bridge
bridge0: flags=41<UP,RUNNING>
description: L2-Trunk-Ports-with-RSTP-and-VLAN123-parent-IF
index 24 llprio 3
groups: bridge
priority 16384 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto
rstp
designated: id 00:90:0b:4f:5d:dc priority 16384
em9 flags=ab<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
port 10 ifpriority 128 ifcost 55 discarding role disabled
em10 flags=ab<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
port 11 ifpriority 128 ifcost 55 discarding role disabled
em11 flags=ab<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
port 12 ifpriority 128 ifcost 55 discarding role disabled
em15 flags=eb<LEARNING,DISCOVER,STP,AUTOEDGE,PTP,AUTOPTP>
port 16 ifpriority 128 ifcost 20000 forwarding role
designated
vether0 flags=bb<LEARNING,DISCOVER,STP,EDGE,AUTOEDGE,AUTOPTP>
port 19 ifpriority 128 ifcost 55 forwarding role designated
pair0 flags=ab<LEARNING,DISCOVER,STP,AUTOEDGE,AUTOPTP>
port 31 ifpriority 128 ifcost 55 forwarding role designated
Addresses (max cache: 100, timeout: 5):
18:a9:9b:a1:35:31 em15 1 flags=0<>
02:de:ac:10:65:5b em15 0 flags=0<>
02:de:ac:10:65:51 em15 0 flags=0<>
18:a9:9b:a1:35:16 em15 0 flags=0<>
02:de:ac:10:65:5c em15 1 flags=0<>
02:de:ac:10:65:52 em15 0 flags=0<>
00:25:46:6e:5e:c1 em15 1 flags=0<>
00:25:46:70:d3:01 em15 0 flags=0<>
18:a9:9b:a1:35:09 em15 0 flags=0<>
bridge1: flags=41<UP,RUNNING>
description: L2-Access-Ports-in-VLAN123
index 25 llprio 3
groups: bridge
priority 16384 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto
rstp
designated: id 00:90:0b:4f:5d:e1 priority 16384
em12 flags=f3<LEARNING,DISCOVER,EDGE,AUTOEDGE,PTP,AUTOPTP>
port 13 ifpriority 0 ifcost 0
em13 flags=a3<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
port 14 ifpriority 0 ifcost 0
em14 flags=f3<LEARNING,DISCOVER,EDGE,AUTOEDGE,PTP,AUTOPTP>
port 15 ifpriority 0 ifcost 0
vlan1232 flags=b3<LEARNING,DISCOVER,EDGE,AUTOEDGE,AUTOPTP>
port 34 ifpriority 0 ifcost 0
Addresses (max cache: 100, timeout: 5):
00:25:46:6e:5e:c1 vlan1232 1 flags=0<>
18:a9:9b:a1:35:09 vlan1232 0 flags=0<>
18:a9:9b:a1:35:16 vlan1232 0 flags=0<>
fe:e1:ba:d0:87:5c vlan1232 1 flags=0<>
00:00:5e:00:01:01 vlan1232 1 flags=0<>
18:a9:9b:a1:35:31 vlan1232 1 flags=0<>
# ifconfig vlan



vlan123: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr fe:e1:ba:d0:87:5c
index 20 priority 0 llprio 3
vlan: 123 parent interface: vether0
vnetid: 123
parent: vether0
groups: vlan
status: active
inet 10.20.30.2 netmask 0xfffffc00 broadcast 10.20.30.255
vlan1232: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu
1500
lladdr fe:e1:ba:d4:39:d9
index 34 priority 0 llprio 3
vlan: 123 parent interface: pair1
vnetid: 123
parent: pair1
groups: vlan
status: active
# ifconfig pair



pair0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr fe:e1:ba:d3:cb:d1
index 31 priority 0 llprio 3
patch: pair1
groups: pair
media: Ethernet autoselect
status: active
pair1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr fe:e1:ba:d4:39:d9
index 32 priority 0 llprio 3
patch: pair0
groups: pair
media: Ethernet autoselect
status: active
#
---cut---



Again, sorry for the noise !

And last but not least - thanks for all the great code !


Cheers,
Marco

No comments:

Post a Comment