Bug 1025188 - bridge vlan doesn't show vlan ids
Summary: bridge vlan doesn't show vlan ids
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iproute
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1110700 1191021
TreeView+ depends on / blocked
 
Reported: 2013-10-31 08:14 UTC by David Spurek
Modified: 2015-04-23 09:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-23 09:42:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description David Spurek 2013-10-31 08:14:03 UTC
Description of problem:
bridge vlan doesn't show vlan ids

Version-Release number of selected component (if applicable):
iproute-3.10.0-5.el7
kernel-3.10.0-37.el7

How reproducible:
always

Steps to Reproduce:
1.ip link add testbridge type bridge
2.ip link add dummy0 type dummy
3.ip link add link dummy0 name dummy0.10 type vlan id 10
4.ip link set dummy0.10 master testbridge
5.bridge vlan

Actual results:
[test]bridge vlan
port	vlan ids
dummy0.10	None

Expected results:
[test]bridge vlan
port	vlan ids
dummy0.10	10

Additional info:
results with ip link add link dummy0 name dummy0.10 type vlan id 10 reorder_hdr off|on are the same

Comment 1 Petr Šabata 2013-11-19 09:45:38 UTC
'bridge' is a new tool.  This will be fixed in the next release.

Comment 3 Vlad Yasevich 2014-09-10 15:56:14 UTC
Not sure this is a valid bug.

'bridge vlan show' will show the vlan information that the bridge will
see comming from each port.

In the configuration from Comment 0, port dummy0.10 will not pass any vlan
information to the bridge and the port is a vlan and by the type the
packet gets to the bridge it contains no vlan information.

And, no you can't work around this by doing

# ip l a testbridge type bridge
# ip l a dummy0 type dummy
# ip l s dummy0 master testbridge
# ip l a link dummy0 type vlan id 10

In this configuration, the bridge will not see any vlan tagged traffic
at all, as vlan processing takes priority over the bridge and the packets
will be handed to the vlan device for processesing.

Now what can be done is something like

# ip l a testbridge type bridge
# ip l a dummy0 type dummy
# ip l s dummy0 master testbridge
# ip l a link testbridge type vlan id 10

# bridge vlan show
port    vlan ids
testbridge  10

This would require a kernel change.

-vlad

Comment 7 Pavel Šimerda (pavlix) 2015-04-23 09:42:02 UTC
(In reply to Vlad Yasevich from comment #3)
> Not sure this is a valid bug.
> 
> 'bridge vlan show' will show the vlan information that the bridge will
> see comming from each port.
> 
> In the configuration from Comment 0, port dummy0.10 will not pass any vlan
> information to the bridge and the port is a vlan and by the type the
> packet gets to the bridge it contains no vlan information.
> 
> And, no you can't work around this by doing
> 
> # ip l a testbridge type bridge
> # ip l a dummy0 type dummy
> # ip l s dummy0 master testbridge
> # ip l a link dummy0 type vlan id 10
> 
> In this configuration, the bridge will not see any vlan tagged traffic
> at all, as vlan processing takes priority over the bridge and the packets
> will be handed to the vlan device for processesing.
> 
> Now what can be done is something like
> 
> # ip l a testbridge type bridge
> # ip l a dummy0 type dummy
> # ip l s dummy0 master testbridge
> # ip l a link testbridge type vlan id 10
> 
> # bridge vlan show
> port    vlan ids
> testbridge  10
> 
> This would require a kernel change.
> 
> -vlad

Thanks for information. We discussed it and agreed that the reported issue is not a bug.

Cheers,

Pavel


Note You need to log in before you can comment on or make changes to this bug.