switch1,第6口,第七口设置vlan22,ip为192.168.1.2.switch2,第一口设置vlan22(同一vlan),ip为192.168.1.3。switch3第十二口设置vlan22,ip为192.168.1.3(同一段IP),这样应该也能通吧? vlan类型access就行,p a v 22 。各位大神请斧正!
switch1: sy vlan batch 1 2 3 interface range g0/0/1 to g0/0/5 port link-type access port default vlan 1 quit interface range g0/0/8 to g0/0/12 port link-type access port default vlan 1 quit interface g0/0/6 port link-type trunk port trunk allow-pass vlan 3 q interface g0/0/7 port link-ytpe trunk port trunk allow-pass vlan 2 q interface vlan 1 ip address 192.168.1.1 24 q interface vlan 2 ip address 192.168.1.2 24 q interface vlan 3 ip address 192.168.1.3 24 q save y