Automatic voice VLAN assignment mode configuration example

Network requirements

As shown in Figure 50, Device A transmits traffic from IP phones and hosts.

For correct voice traffic transmission, perform the following tasks on Device A:

Figure 50: Network diagram

Configuration procedure

  1. Configure voice VLANs:

    # Create VLANs 2 and 3.

    <DeviceA> system-view
    [DeviceA] vlan 2 to 3
    

    # Set the voice VLAN aging timer to 30 minutes.

    [DeviceA] voice-vlan aging 30
    

    # Configure voice VLANs to operate in security mode to transmit only voice packets.

    [DeviceA] voice-vlan security enable
    

    # Add MAC addresses of IP phones A and B to the device with the mask FFFF-FF00-0000.

    [DeviceA] voice-vlan mac-address 0011-1100-0001 mask ffff-ff00-0000 description IP phone A
    [DeviceA] voice-vlan mac-address 0011-2200-0001 mask ffff-ff00-0000 description IP phone B
    
  2. Configure Ten-GigabitEthernet 1/0/1:

    # Configure Ten-GigabitEthernet 1/0/1 as a hybrid port.

    [DeviceA] interface ten-gigabitethernet 1/0/1
    [DeviceA-Ten-GigabitEthernet1/0/1] port link-type hybrid
    

    # Configure Ten-GigabitEthernet 1/0/1 to operate in automatic voice VLAN assignment mode.

    [DeviceA-Ten-GigabitEthernet1/0/1] voice-vlan mode auto
    

    # Enable voice VLAN on Ten-GigabitEthernet 1/0/1 and configure VLAN 2 as the voice VLAN for it.

    [DeviceA-Ten-GigabitEthernet1/0/1] voice-vlan 2 enable
    [DeviceA-Ten-GigabitEthernet1/0/1] quit
    
  3. Configure Ten-GigabitEthernet 1/0/2:

    # Configure Ten-GigabitEthernet 1/0/2 as a hybrid port.

    [DeviceA] interface ten-gigabitethernet 1/0/2
    [DeviceA-Ten-GigabitEthernet1/0/2] port link-type hybrid
    

    # Configure Ten-GigabitEthernet 1/0/2 to operate in automatic voice VLAN assignment mode.

    [DeviceA-Ten-GigabitEthernet1/0/2] voice-vlan mode auto
    

    # Enable voice VLAN on Ten-GigabitEthernet 1/0/2 and configure VLAN 3 as the voice VLAN for it.

    [DeviceA-Ten-GigabitEthernet1/0/2] voice-vlan 3 enable
    [DeviceA-Ten-GigabitEthernet1/0/2] quit
    

Verifying the configuration

# Display the OUI addresses and their masks and descriptions.

[DeviceA] display voice-vlan mac-address
OUI Address     Mask            Description
0001-e300-0000  ffff-ff00-0000  Siemens phone
0003-6b00-0000  ffff-ff00-0000  Cisco phone
0004-0d00-0000  ffff-ff00-0000  Avaya phone
000f-e200-0000  ffff-ff00-0000  H3C Aolynk phone
0060-b900-0000  ffff-ff00-0000  Philips/NEC phone
00d0-1e00-0000  ffff-ff00-0000  Pingtel phone
00e0-7500-0000  ffff-ff00-0000  Polycom phone
00e0-bb00-0000  ffff-ff00-0000  3Com phone

# Display the voice VLAN state.

[DeviceA] display voice-vlan state
 Current Voice VLANs: 2
 Voice VLAN security mode: Security
 Voice VLAN aging time: 30 minutes
 Voice VLAN enabled ports and their modes:
 Port                            VLAN        Mode        COS        DSCP
 XGE1/0/1                        2           AUTO        6          46
 XGE1/0/2                        3           AUTO        6          46