3-6Voice VLAN Configuration ExamplesAutomatic Voice VLAN Mode Configuration ExampleNetwork requirementsAs shown in Figure 3-1,z The MAC address of IP phone A is 0011-1100-0001. The phone connects to a downstream devicenamed PC A whose MAC address is 0022-1100-0002 and to GigabitEthernet 1/0/1 on an upstreamdevice named Device A.z The MAC address of IP phone B is 0011-2200-0001. The phone connects to a downstream devicenamed PC B whose MAC address is 0022-2200-0002 and to GigabitEthernet 1/0/2 on Device A.z Device A uses voice VLAN 2 to transmit voice packets for IP phone A and voice VLAN 3 to transmitvoice packets for IP phone B.Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to work in automatic voice VLANassignment mode. In addition, if one of them has not received any voice packet in 30 minutes, the portis removed from the corresponding voice VLAN automatically.Figure 3-1 Network diagram for automatic voice VLAN assignment mode configurationDevice A Device BGE1/0/1GE1/0/1IP phone B010-1002MAC: 0011-2200-0001Mask: ffff-ff00-0000 0755-2002GE1/0/2IP phone A010-1001MAC: 0011-1100-0001Mask: ffff-ff00-0000InternetPC AMAC: 0022-1100-0002PC BMAC: 0022-2200-0002VLAN 3VLAN 2Configuration procedure# Create VLAN 2 and VLAN 3. system-view[DeviceA] vlan 2 to 3# Set the voice VLAN aging time to 30 minutes.[DeviceA] voice vlan aging 30# Since GigabitEthernet 1/0/1 may receive both voice traffic and data traffic at the same time, to ensurethe quality of voice packets and effective bandwidth use, configure voice VLANs to work in securitymode, that is, configure the voice VLANs to transmit only voice packets. (Optional. By default, voiceVLANs work in security mode.)[DeviceA] voice vlan security enable# Configure the allowed OUI addresses as MAC addresses prefixed by 0011-1100-0000 or0011-2200-0000. In this way, Device A identifies packets whose MAC addresses match any of theconfigured OUI addresses as voice packets.