Huawei Network-one-arm routing
Topological structure diagram
The first step of the experiment is to configure the R1 router sys [Huawei] sysname R1 [R1] int g0Accord 0.10 [R1-GigabitEthernet0/0/0.10] dot1q termination vid 10 / / encapsulated dot1q protocol This subinterface corresponds to vlan10 [R1-GigabitEthernet0/0/0.10] ip add 192.168.10.1 24 [R1-GigabitEthernet0/0/0.10] arp broadcast enable / / enable arp broadcast [R1-GigabitEthernet0/0/0.10] interface g0and0x0.20 [R1-GigabitEthernet0/0/0.20] dot1q termination vid 20 [R1-GigabitEthernet0/0/0.20] ip address 192.168.20.1 24 [R1-GigabitEthernet0/0/0.20] arp Step 2 of broadcast enable: configure the LSW1 switch sys [Huawei] sysname sw1 [SW1] vlan batch 10 20 int / create vlan10 20 [SW1] int e0 port link-type access / / configure the access link [SW1-Ethernet0/0/1] port default vlan10 / / interface into Vlan10 [SW1-Ethernet0/0/1] undo shutdown [SW1-Ethernet0/0/1] int e0UniUniUni2 [SW1-Ethernet0/0/2 ] port link-type access [SW1-Ethernet0/0/2] port default vlan 20 [SW1-Ethernet0/0/2undo shutdown [SW1-Ethernet0/0/2] int g0Accord 1 [SW1-GigabitEthernet0/0/1] port link-type trunk// configuration trunk Link [SW1-GigabitEthernet0/0/1] port trunk allow-pass vlan all// setting release all vlan [SW1-GigabitEthernet0/0/1] undo sh step 3: configure PC-side IP address and gateway
Step 4: test network interconnection