How to show which VLAN is bindling with Bridge?


Userlevel 1
Hello,

I would like to check which VLAN is bindling at Bridge.

However, I cannot see via using netshow CLI

Does anyway to check?

e.g. 'netshow interface all'

$ sudo netshow interface all

Name Speed MTU Mode Summary
----- ---------------------------------- ------- ----- ------------- -------------------------------------------
UP lo N/A 65536 Loopback IP: 127.0.0.1/8, ::1/128
UP eth0 100M 1500 Mgmt IP: 192.168.10.208/24
ADMDN eth1 0M 1500 Mgmt
DN swp1 (AA) 0M 1500 Access/L2 Untagged VLAN: 450
DN swp2 (AB) 0M 1500 Access/L2 Untagged VLAN: 450
UP bridge (0203-leaf-1 bridge) N/A 1500 Bridge/L2 Untagged Members: peerlink, swp1-48, uplink
802.1q Tag: Untagged
STP: peerlink(Root) 32768(Root Priority)
Vlan Aware Bridge

or using 'netshow interface bridge'

$ sudo netshow interface peerlink

Name MAC Speed MTU Mode
-- ---------------------------------- ----------------- ------- ----- ----------
UP peerlink (Peerlink to next1) 64:00:6a:d7:85:d1 20G 1500 Bond/Trunk

Bond Details
------------------ --------------------
Bond Mode: LACP
Load Balancing: Layer3+4
Minimum Links: 1
In CLAG: CLAG Inactive
LACP Sys Priority:
LACP Rate: Fast Timeout
LACP Bypass: LACP Bypass Inactive

Port Speed TX RX Err Link Failures
-- -------- ------- ---- ---- ----- ---------------
UP swp49(P) 10G 0 0 0 1
UP swp50(P) 10G 0 0 0 1

All VLANs on L2 Port
----------------------
450

Untagged
----------
1

Vlans in forwarding State
---------------------------
450

LLDP
-------- ---- --------------------------
swp49(P) ==== swp49(leaf-1)
swp50(P) ==== swp50(leaf-1)
========================================

Following is my config

=================
auto swp1
iface swp1
mstpctl-portadminedge yes
alias AA
bridge-pvid 450
mstpctl-portnetwork no
mstpctl-bpduguard yes

auto bridge
iface bridge
bridge-vlan-aware yes
mstpctl-treeprio 36864
bridge-vids 450
alias 0203-leaf-1 bridge
bridge-stp yes
bridge-ports glob swp1-48 peerlink uplink
===========================

Thanks!

3 replies

Userlevel 4
You can always use the original linux command "bridge vlan show" or "bridge -c vlan show"
Userlevel 1
Thanks for suggestion. But I only see it showing 'none' at bridge

---
$ sudo bridge -c vlan show
port vlan ids
swp1 450 PVID Egress Untagged

swp2 450 PVID Egress Untagged
peerlink 1 PVID Egress Untagged
450

uplink 1 PVID Egress Untagged
450

bridge None
----
$ sudo bridge -c vlan show
port vlan ids
swp1 450 PVID Egress Untagged

swp2 450 PVID Egress Untagged
peerlink 1 PVID Egress Untagged
450

uplink 1 PVID Egress Untagged
450

bridge None
-----

Does there something missing there?

Thanks!

Userlevel 4
The bridge is just a logical Linux port. The bridge != VLAN but rather allows us to configure VLANs and map them to ports or bonds. The output provided is correct for net show and bridge vlan show. You have only configured one VLAN (450) and make it the pvid (primary VLAN identifier) also known as the native VLAN (meaning untagged). The bridge maps ports to this VLAN but isn't mapped to a specific VLAN itself. Does that make sense?

Reply