cancel
Showing results for 
Search instead for 
Did you mean: 

Show Port with VLAN name instead of # of VLANs

Show Port with VLAN name instead of # of VLANs

Terren_Crider
Contributor
I have EXOS 21.1. I would like to know if there is any way to get the output of show port to show all of the VLAN names instead of the number of VLANs on a port? If there is a single VLAN, it shows the name, but just knowing the number of VLANs assigned to a port doesn't really do me any good.

Port Display VLAN Name Port Link Speed Duplex
# String (or # VLANs) State State Actual Actual
=======================================================================
1:1 (0002) E A 1000 FULL
1:2 (0002) E R
1:3 (0002) E R
1:4 (0002) E R

19 REPLIES 19

modris_bernands
New Contributor II
@Erik - that's smart way. Nice example, how brains can help 😉
and Yes it is working on 12.6 too.

Erik_Auerswald
Contributor II
Can you test the following command on EXOS 12.6?
show vlan detail | include "^VLAN|((Ports|[Tt]ag(ging)?):)"
This works on EXOS 15.3 and produces useful VLAN info. 🙂

Erik

Erik. I find your very command very helpful, but it doesn't show all port numbers of a VLAN . For instances, it says that one VLAN is on 19 (tagged) ports but reports only 7 tagged port numbers. Another VLAN is on 16 (untagged )ports, but the command shows only 5 ports with numbers. It seems that the command output line shows only the the first line of port numbers (of the "show vlan detail" command) but not the following lines.
Cheers.

modris_bernands
New Contributor II
If need see both Tag and Untag ports for each vlan, then

show vlan detail | include g:Output is little bit more,

Admin State: Enabled Tagging: 802.1Q Tag 14
IPv4 Forwarding: Disabled
IPv6 Forwarding: Disabled
Tag: *37(UzAmbSwitch4),*46(UzSwitch3), *2g
Admin State: Enabled Tagging: 802.1Q Tag 15
IPv4 Forwarding: Disabled
IPv6 Forwarding: Disabled
Untag: *18(ekonomisti)
Tag: *37(UzAmbSwitch4),*46(UzSwitch3), *2g
GTM-P2G8KFN