11
[Device-GigabitEthernet2/0/1.20] quit
Verifying the configuration
# Verify that Host A, Host B, Host C, and Host D can ping each other. (Details not shown.)
Ambiguous Dot1q termination configuration example
Network requirements
As shown in
, configure ambiguous Dot1q termination, so that hosts in different VLANs can
communicate with the server group.
Figure 4 Network diagram
Configuration procedure
In this example, L2 switch B uses the factory configuration.
1.
Configure Host A, Host B, and Host C:
# Assign 1.1.1.1/24, 1.1.1.2/24, and 1.1.1.3/24 to Host A, Host B, and Host C, respectively.
(Details not shown.)
# Specify 1.1.1.11/24 as the gateway IP address for the hosts. (Details not shown.)
2.
Configure Layer 2 Switch A:
# Create VLAN 11.
<L2_SwitchA> system-view
[L2_SwitchA] vlan 11
# Assign GigabitEthernet 1/0/1 to VLAN 11.
[L2_SwitchA-vlan11] port gigabitethernet 1/0/1
[L2_SwitchA-vlan11] quit
# Create VLAN 12.
[L2_SwitchA] vlan 12
# Assign GigabitEthernet 1/0/2 to VLAN 12.
[L2_SwitchA-vlan12] port gigabitethernet 1/0/2
[L2_SwitchA-vlan12] quit
# Create VLAN 13.