voice vlan port

Unanswered Question
Oct 13th, 2010
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Collin Clark Wed, 10/13/2010 - 06:52
User Badges:
  • Purple, 4500 points or more

One command that will show it is show vlan

Lim Seow Hua Wed, 10/13/2010 - 06:54
User Badges:

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

Yogesh Ramdoss Wed, 10/13/2010 - 06:54
User Badges:
  • Cisco Employee,

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

Lim Seow Hua Wed, 10/13/2010 - 07:08
User Badges:

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

burleyman Wed, 10/13/2010 - 08:09
User Badges:
  • Blue, 1500 points or more

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

Yogesh Ramdoss Wed, 10/13/2010 - 14:27
User Badges:
  • Cisco Employee,

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

Actions

This Discussion