CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure a Voice-VLAN to Automatic Mode

Network Requirements

  • IP Phone and PC access IP Network through port gigabitethernet0/1 of Device. The MAC address of IP Phone is 0001.0001.0001, and the MAC address of PC is 0002.0002.0002.
  • The voice-VLAN in automatic mode has been configured. In this way, 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 Automatic Mode

Figure 7-2 Networking for Configuring a Voice-VLAN to Automatic 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 Device, configure the link type of port gigabitethernet0/1 to Trunk and allow services of VLAN2 to pass.

Device(config)#interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)# switchport mode trunk
Device(config-if-gigabitethernet0/1)# switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/1)#exit

#On Device, configure the link type of port gigabitethernet0/2 to Trunk and allow services of VLAN2 to pass.

Device(config)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)#switchport mode trunk
Device(config-if-gigabitethernet0/2)#switchport trunk allowed vlan add 2
Device(config-if-gigabitethernet0/2)#exit

Step 2: Configure the voice-VLAN function.

#On Device, configure VLAN2 to voice-VLAN, and modify the Cos value to 7.

Device(config)#voice vlan 2 cos 7

#On port gigabitethernet0/1 of Device, configure the voice-VLAN mode to automatic mode.

Device(config)# interface gigabitethernet 0/1
Device(config-if-gigabitethernet0/1)#voice vlan enable
Device(config-if-gigabitethernet0/1)#voice vlan mode auto
Device(config-if-gigabitethernet0/1)#exit

#On Device, configure the OUI address corresponding to the MAC address 0001.0001.0001 of IP Phone.

Device(config)#voice vlan oui-mac 0001.0001.0001 mask ffff.ffff.0000 name voice-vlan

#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: 1 
 
 Voice vlan interface information: 
  Interface     Mode 
------------------------------------
  gi0/1        Auto-Mode 
 
 Voice Vlan OUI information: Total: 6 
  MacAddr     Mask      Name 
------------------------------------------------ 
  0001.0001.0000 ffff.ffff.0000 voice-vlan 
  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.