sw1:
[Huawei]vlan batch 10 20
[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
Huawei]int Vlanif 10
[Huawei-Vlanif10]ip address 192.168.1.254 24
Huawei]int Vlanif 20
[Huawei-Vlanif10]ip address 192.168.2.254 24
标签:20,int,Ethernet0,vlan,Huawei,交换机,port,路由 From: https://www.cnblogs.com/Wesuiliye/p/17197502.html