R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
163
# Create GigabitEthernet 4/0/1.10, GigabitEthernet 4/0/1.20, GigabitEthernet 4/0/2.10,
and GigabitEthernet 4/0/2.20, and then assign IP addresses to them. Configure GigabitEthernet
4/0/1.10 and GigabitEthernet 4/0/2.10 to terminate packets tagged with VLAN 10, and
configure GigabitEthernet 4/0/1.20 and GigabitEthernet 4/0/2.20 to terminate packets tagged
with VLAN 20.
<Router> system-view
[Router] interface GigabitEthernet 4/0/1.10
[Router-GigabitEthernet4/0/1.10] ip address 1.0.0.1 255.0.0.0
[Router-GigabitEthernet4/0/1.10] vlan-type dot1q vid 10
[Router-GigabitEthernet4/0/1.10] quit
[Router] interface GigabitEthernet 4/0/1.20
[Router-GigabitEthernet4/0/1.20] ip address 2.0.0.1 255.0.0.0
[Router-GigabitEthernet4/0/1.20] vlan-type dot1q vid 20
[Router-GigabitEthernet4/0/1.20] quit
[Router] interface GigabitEthernet 4/0/2.10
[Router-GigabitEthernet4/0/2.10] ip address 3.0.0.1 255.0.0.0
[Router-GigabitEthernet4/0/2.10] vlan-type dot1q vid 10
[Router-GigabitEthernet4/0/2.10] quit
[Router] interface GigabitEthernet 4/0/2.20
[Router-GigabitEthernet4/0/2.20] ip address 4.0.0.1 255.0.0.0
[Router-GigabitEthernet4/0/2.20] vlan-type dot1q vid 20
[Router-GigabitEthernet4/0/2.20] quit
Ambiguous Dot1q termination configuration
example
Network requirements
As shown in Figure 59, Host A, Host B, and Host C belong to VLAN 11, VL A N 12, a nd VL A N 13 ,
respectively, and are connected to Switch A. The server group is connected to Switch B.
Configure ambiguous Dot1q termination so that the hosts can communicate with the server group.