10-13-2010 06:45 AM - edited 03-06-2019 01:29 PM
Hi,
Let's say I have one switch named SwitchA and we have two vlans, vlan 51 (data vlan) and vlan 722 (voice vlan) configured. In order to view which port is configured with vlan 51, we can use command line as below:-
SwitchA>show int status
Port Name Status Vlan Duplex Speed Type
Fa0/1 connected 51 a-full a-100 10/100BaseTX
Fa0/2 connected 51 a-full a-100 10/100BaseTX
If we would like to view which switch port is configured with voice vlan 722, how are we going to archive that? What command we need to issue?
Thanks
10-13-2010 06:52 AM
One command that will show it is show vlan
10-13-2010 06:54 AM
other than command "show vlan", is there any command we can use?
10-13-2010 06:54 AM
Please try "show vlan id 722". This should provide you list of ports assigned to vlan 722. - Yogesh
10-13-2010 07:08 AM
If we are using Catalyst 4506, it would be time-consuming if we have to check the switch port vlan one by one, using command show interface switchport. Is there any command like below:-
So that at the same we can also know the status, duplex and speed info for the voice port at the same time?
SwitchA>show int status | i 51
Port Name Status Vlan Duplex Speed Type
Fa0/1 connected 51 a-full a-100 10/100BaseTX
Fa0/2 connected 51 a-full a-100 10/100BaseTX
10-13-2010 08:09 AM
If you just want to see what ports are configured for VLAN 722 and do not want to use show vlan you could try
4506-E#show run | inc interface|voice vlan 722
interface GigabitEthernet1/3
interface GigabitEthernet1/4
interface GigabitEthernet1/5
interface GigabitEthernet1/6
interface GigabitEthernet2/1
switchport voice vlan 722
interface GigabitEthernet2/2
switchport voice vlan 722
interface GigabitEthernet2/3
switchport voice vlan 722
You would get the following output but you could see Gi1/3 through 1/6 are not configured for vlan 722 and the rest are.
Is that what you are looking to accomplish?
Mike
10-13-2010 02:27 PM
Lim,
To my knoeledge, there is no such command to list ports assigned to a voice vlan, port status, speed/duplex in one single command.
We have to do multiple commands as follows:
sh vlan id 722, show spanning-tree vlan 722, show int status etc
- Yogesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide