Manual voice VLAN assignment mode configuration example

Network requirements

As shown in Figure 51:

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

Figure 51: Network diagram

Configuration procedure

# Configure the voice VLAN to operate in security mode.

<DeviceA> system-view
[DeviceA] voice-vlan security enable

# Add a MAC address 0011-2200-0000 with the mask FFFF-FF00-0000.

[DeviceA] voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000 description test

# Create VLAN 2.

[DeviceA] vlan 2
[DeviceA-vlan2] quit

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

[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] undo voice-vlan mode auto

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

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

# Configure VLAN 2 as the PVID of Ten-GigabitEthernet 1/0/1.

[DeviceA-Ten-GigabitEthernet1/0/1] port hybrid pvid vlan 2

# Configure Ten-GigabitEthernet 1/0/1 to forward the voice traffic from VLAN 2 without VLAN tags.

[DeviceA-Ten-GigabitEthernet1/0/1] port hybrid vlan 2 untagged

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

[DeviceA-Ten-GigabitEthernet1/0/1] voice-vlan 2 enable
[DeviceA-Ten-GigabitEthernet1/0/1] 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: 1
 Voice VLAN security mode: Security
 Voice VLAN aging time: 1440 minutes
 Voice VLAN enabled ports and their modes:
 Port                            VLAN        Mode        CoS        DSCP
 XGE1/0/1                        2           Manual      6          46