cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
788
Views
0
Helpful
6
Replies

voice vlan port

Lim Seow Hua
Level 1
Level 1

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

6 Replies 6

Collin Clark
VIP Alumni
VIP Alumni

One command that will show it is show vlan

other than command "show vlan", is there any command we can use?

Yogesh Ramdoss
Cisco Employee
Cisco Employee

Please try "show vlan id 722". This should provide you list of ports assigned to vlan 722.  - Yogesh

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

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

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

Review Cisco Networking for a $25 gift card