LSW2 system-view vlan batch 10 20 30 int e 0/0/4 port link-type access port default vlan 10 quit int e 0/0/3 port link-type access port default vlan 20 quit int e 0/0/2 port link-type access port default vlan 30 quit int e 0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 30 quit quit save LSW3 system-view vlan batch 10 20 30 int e 0/0/4 port link-type access port default vlan 10 quit int e 0/0/3 port link-type access port default vlan 20 quit int e 0/0/2 port link-type access port default vlan 30 quit int e 0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 30 quit quit save LSW4 system-view vlan batch 10 20 30 int e 0/0/4 port link-type access port default vlan 10 quit int e 0/0/3 port link-type access port default vlan 20 quit int e 0/0/2 port link-type access port default vlan 30 quit int e 0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 30 quit quit save core SW system-view vlan batch 10 20 30 40 int vlan 10 ip address 192.168.10.254 255.255.255.0 quit int vlan 20 ip address 192.168.20.254 255.255.255.0 quit int vlan 30 ip address 192.168.30.254 255.255.255.0 quit int vlan 40 ip address 10.0.0.2.254 255.255.255.252 quit int gi 0/0/2 port link-type trunk port trunk allow-pass vlan 10 20 30 quit int gi 0/0/3 port link-type trunk port trunk allow-pass vlan 10 20 30 quit int gi 0/0/4 port link-type trunk port trunk allow-pass vlan 10 20 30 quit int gi 0/0/1 port link-type access port default vlan 40 quit ip route-static 172.16.1.0 255,255,255,0 10.0.0.1 quit quit save LSW6-RT sys vlan batch 40 50 quit int vlan 40 ip add 10.0.0.1 255.255.255.252 quit int vlan 50 ip add 172.16.1.1 255.255.255.0 quit ip route-static 192.168.10.0 255,255,255,0 10.0.0.2 ip route-static 192.168.20.0 255,255,255,0 10.0.0.2 ip route-static 192.168.30.0 255,255,255,0 10.0.0.2 quit quit save