AR1配置GE 0/0/0接口IP
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]ip add 1.1.1.1 24
[Huawei]iP route-static 192.168.0.0 16 1.1.1.2
三层交换机配置如下
创建vlan
[Huawei]vlan batch 10 20
配置接口ip
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 1.1.1.2 24
配置trunk端口
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
配置网关
[Huawei]int Vlanif 10
[Huawei-Vlanif10]ip address 192.168.10.254 24
[Huawei-Vlanif10]q
[Huawei]int Vlanif 20
[Huawei-Vlanif20]ip address 192.168.20.254 24
[Huawei]ip route-static 0.0.0.0 0.0.0.0 1.1.1.1
二层交换机配置如下
创建vlan
[Huawei]vlan batch 10 20
配置trunk端口
[Huawei]int G0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
配置接入端口
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 20
PC1
192.168.10.1
255.255.255.0
192.168.10.254
PC2
192.168.20.1
255.255.255.0
192.168.20.254
S5700模拟器貌似接口不能配置IP1.1.1.2,真机能配置IP1.1.1.2
参考官网答疑