<Huawei>SY
Enter system view, return user view with Ctrl+Z.
[Huawei]SY LSW1
[LSW1]V
[LSW1]vlan 10 给交换机设置vlan起到路由作用
[LSW1-vlan10]Q
[LSW1]int Vlanif 10
[LSW1-Vlanif10]ip add 10.1.1.1 24 进入虚接口配置IP地址
[LSW1-Vlanif10]
LSW1]INT G0/00/1
[LSW1-GigabitEthernet0/0/1]port link-type access
[LSW1-GigabitEthernet0/0/1]port default vlan 10
[LSW1-GigabitEthernet0/0/1]Q
LSW1]INT Vlanif 1
[LSW1-Vlanif1]IP ADD 192.168.1.254 24
[LSW1-Vlanif1]Q
[LSW1]IP route-static 192.168.2.0 24 10.1.1.2
<Huawei>u t m
Info: Current terminal monitor is off.
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy R1
[R1]INT G0/0/0
[R1-GigabitEthernet0/0/0]IP ADD 10.1.1.2 24
[R1-GigabitEthernet0/0/0]INT G0/0/1
[R1-GigabitEthernet0/0/1]IP ADD 12.1.1.1 24
[R1-