华为单臂路由配置

华为单臂路由配置

R1:

sys
[R1]sys R1
[R1]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]dot1q termination vid 100
[R1-GigabitEthernet0/0/0.1]arp broadcast enable
[R1-GigabitEthernet0/0/0.1]ip add 1.1.1.254 24
[R1-GigabitEthernet0/0/0.1]quit
[R1]int g0/0/0.2
[R1-GigabitEthernet0/0/0.2]dot1q termination vid 200
[R1-GigabitEthernet0/0/0.2]arp broadcast enable
[R1-GigabitEthernet0/0/0.2]ip add 2.2.2.254 24
[R1-GigabitEthernet0/0/0.2]quit
[R1]

Sw1:

sys
[Huawei]sys Sw1
[Sw1]vlan batch 100 200
[Sw1]int e0/0/1
[Sw1-Ethernet0/0/1]port link-type trunk
[Sw1-Ethernet0/0/1]port trunk allow-pass vlan all
[Sw1-Ethernet0/0/1]quit
[Sw1]int e0/0/2
[Sw1-Ethernet0/0/2]port link-type access
[Sw1-Ethernet0/0/2]port def vlan 100
[Sw1-Ethernet0/0/2]quit
[Sw1]int e0/0/3
[Sw1-Ethernet0/0/3]port link-type access
[Sw1-Ethernet0/0/3]port def vlan 200
[Sw1-Ethernet0/0/3]quit
[Sw1]