Configuration procedure, N in, Figure 13 – H3C Technologies H3C S12500 Series Switches User Manual
Page 54

41
(0011-2200-0001) connects to a downstream device named PC B (0022-2200-0002) and to
GigabitEthernet 3/0/2 on Switch A.
Switch A uses voice VLAN 2 to transmit voice packets for IP phone A and voice VLAN 3 to transmit voice
packets for IP phone B.
Configure GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 to operate 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 13 Network diagram
Configuration procedure
# Create VLAN 2 and VLAN 3.
[SwitchA] vlan 2 to 3
Please wait... Done.
# Set the voice VLAN aging time to 30 minutes.
[SwitchA] voice vlan aging 30
# Since GigabitEthernet 3/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 operate in
security mode, that is, configure the voice VLANs to transmit only voice packets. (Optional. By default,
voice VLANs operate in security mode.)
[SwitchA] voice vlan security enable
# Configure the allowed OUI addresses as MAC addresses prefixed by 0011-1100-0000 or
0011-2200-0000. In this way, Switch A identifies packets whose MAC addresses match any of the
configured OUI addresses as voice packets.
[SwitchA] voice vlan mac-address 0011-1100-0001 mask ffff-ff00-0000 description IP phone
A
[SwitchA] voice vlan mac-address 0011-2200-0001 mask ffff-ff00-0000 description IP phone
B
# Configure GigabitEthernet 3/0/1 as a hybrid port.
[SwitchA] interface gigabitethernet 3/0/1
[SwitchA-GigabitEthernet3/0/1] port link-type hybrid
# Configure GigabitEthernet 3/0/1 to operate in automatic voice VLAN assignment mode. (Optional.
By default, a port operates in automatic voice VLAN assignment mode.)