The MAC address of IP phone B is 001 1-2200-0001. The phone connects to a downstream device
named PC B whose MAC address is 0022-2200-0002 and to Ethernet 1/0/2 on Device A.
Device A uses voice VLAN 2 to transmit voice packets for IP phone A, and uses voice VLAN 3 to
transmit voice packets for IP phone B.
Configure Ethernet 1/0/1 and Ethernet 1/0/2 to work in automatic voice VLAN assignment mode.
In addition, if one of them has not received any voice packet in 30 minutes, the port is removed from
the corresponding voice VLAN automatically.
Figure 36 Network diagram for automatic voice VLAN assignment mode configuration
IP phone A
# Create VLAN 2 and VLAN 3.
[DeviceA] vlan 2 to 3
# Set the voice VLAN aging time to 30 minutes.
[DeviceA] voice vlan aging 30
# Ethernet 1/0/1 might receive both voice traffic and data traffic at the same time. To ensure the quality
of voice packets and effective bandwidth use, configure voice VLANs to work in security mode to transmit
only voice packets. By default, voice VLANs work in security mode. (Optional)
[DeviceA] voice vlan security enable
# Configure the allowed OUI addresses as MAC addresses prefixed by 001 1- 1 100-0000 or
001 1-2200-0000. Device A identifies packets whose MAC addresses match any of the configured OUI
addresses as voice packets.
[DeviceA] voice vlan mac-address 0011-1100-0001 mask ffff-ff00-0000 description IP phone
[DeviceA] voice vlan mac-address 0011-2200-0001 mask ffff-ff00-0000 description IP phone
# Configure Ethernet 1/0/1 as a hybrid port.
[DeviceA] interface ethernet 1/0/1
[DeviceA-Ethernet1/0/1] port link-type hybrid
# Configure Ethernet 1/0/1 to operate in automatic voice VLAN assignment mode. By default, a port
operates in automatic voice VLAN assignment mode. (Optional)
[DeviceA-Ethernet1/0/1] voice vlan mode auto
# Configure VLAN 2 as the voice VLAN for Ethernet 1/0/1.
IP phone B