1-11Voice VLAN Configuration ExampleVoice VLAN Configuration Example (Automatic Mode)Network requirementsAs shown in Figure 1-2,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 Ethernet GigabitEthernet1/0/2 onDevice A.z Device A uses voice VLAN 2 to transmit voice packets for IP phone A and IP phone B.z 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, theport is removed from the corresponding voice VLAN automatically.Network diagramDevice 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 2Figure 1-2 Network diagram for voice VLAN configuration (automatic mode)Configuration procedure# Create VLAN 2. system-view[DeviceA] vlan 2# Set the voice VLAN aging time to 30 minutes.[DeviceA] voice vlan aging 30# Configure VLAN 2 as a voice VLAN.[DeviceA] voice vlan 2 enable# 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