Configure a Voice-VLAN to Manual Mode
Network Requirements
- IP Phone and PC can access IP Network through Device.
- The voice-VLAN in manual mode has been configured on Device. If the network is normal, IP Phone and PC can normally access IP Network. If the network is congested, IP Phone has a higher priority than PC in accessing IP Network.
Network Topology
![Networking for Configuring a Voice-VLAN to Manual Mode](/storage/images/Document/Maipu/ethernet-switching/topology-for-voice-vlan-to-manual-mode.jpg)
Figure 7-1 Networking for Configuring a Voice-VLAN to Manual Mode
Configuration Steps
Step 1: Configure a VLAN, and configure the link type of the ports.
#On Device, create VLAN2.
Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit
|
#On Device2, configure the link type of ports gigabitethernet0/1 and gigabitethernet0/2 to Access and allow services of VLAN2 to pass.
Device(config)#interface gigabitethernet 0/1,0/2
Device(config-if-range)#switchport mode access
Device(config-if-range)#switchport access vlan 2
Device(config-if-range)#exit
|
#On Device, configure the link type of port gigabitethernet0/3 to Trunk and allow services of VLAN2 to pass.
Device(config)#interface gigabitethernet 0/3
Device(config-if-gigabitethernet0/3)#switchport mode trunk
Device(config-if-gigabitethernet0/3)#switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/3)#exit
|
Step 2: Configure the voice-VLAN function.
#On Device, configure VLAN2 to voice-VLAN, and configure the Cos value to 7.
Device(config)#voice vlan 2 cos 7
|
#On port gigabitethernet0/1 of Device, configure the voice-VLAN mode to manual mode.
Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#voice vlan enable
Device(config-if-gigabitethernet0/1)#no voice vlan mode auto
Device(config-if-gigabitethernet0/1)#exit
|
#On Device, query the voice-VLAN information.
Device#show voice vlan all
Voice Vlan Global Information: Voice Vlan enable Voice Vlan security: disable
Voice Vlan lldp-med authentication: disable
Voice Vlan VID: 2, Cos: 7
Default OUI number: 5
User config OUI number: 0
Voice vlan interface information:
Interface Mode
----------------------------------------
gi0/1 Manual-Mode
Voice Vlan OUI information: Total: 5
MacAddr Mask Name
---------------------------------------------
0003.6b00.0000 ffff.ff00.0000 Cisco-phone default
006b.e200.0000 ffff.ff00.0000 H3C-Aolynk-phone default
00d0.1e00.0000 ffff.ff00.0000 Pingtel-phone default
00e0.7500.0000 ffff.ff00.0000 Polycom-phone default
00e0.bb00.0000 ffff.ff00.0000 3Com-phone default
Step 3: Check the result.
#The 802.1 priority of the packets that are sent to IP Phone is modified to 7, and the 802.1P priority of the packets sent by PC to IP Network is not modified.
#When the network is normal, IP Phone and PC can normally access IP Network.
#If the network is congested, IP Phone can access IP Network with a priority higher than PC.