本文共 2570 字,大约阅读时间需要 8 分钟。
一.要求
按照拓扑图使不同VLAN的7台PC互通二.拓扑图SWITCH 5
sys sys s5vlan batch 3 4int e0/0/1port link-type accessport default vlan 3int e0/0/2port link-type accessport default vlan 4int e0/0/3port link-type trunk port trunk allow-pass vlan 3 4dis port vlanSWITCH 1
sys sys s1vlan batch 1 2 3 4 8int g0/0/1port link-type trunk port trunk allow-pass vlan 1 2int g0/0/2port link-type trunk port trunk allow-pass vlan 3 4int g0/0/3port link-type accessport default vlan 8qdis port vlan int vlanif 1ip addr 192.168.1.2 24int vlanif 2ip addr 192.168.2.2 24dis port vlan int vlanif 3ip addr 192.168.3.2 24int vlanif 4ip addr 192.168.4.2 24int vlanif 8ip addr 192.168.8.2 24qip route-s 0.0.0.0 0.0.0.0 192.168.8.1r 1
syssystem r1int g0/0/0ip addr 192.168.8.1 24int g0/0/1 ip addr 192.168.9.1 24qip route-s 192.168.1.0 24 192.168.8.2ip route-s 192.168.2.0 24 192.168.8.2ip route-s 192.168.3.0 24 192.168.8.2ip route-s 192.168.4.0 24 192.168.8.2ip route-s 192.168.5.0 24 192.168.9.3ip route-s 192.168.6.0 24 192.168.9.2ip route-s 192.168.7.0 24 192.168.9.2r 2
syssys r2int g0/0/1ip addr 192.168.9.3 24int g0/0/0ip addr 192.168.5.2 24qip route-s 192.168.1.0 24 192.168.9.1ip route-s 192.168.2.0 24 192.168.9.1ip route-s 192.168.3.0 24 192.168.9.1ip route-s 192.168.4.0 24 192.168.9.1 ip route-s 192.168.6.0 24 192.168.9.2ip route-s 192.168.7.0 24 192.168.9.2r 3
syssys r3int g0/0/1ip addr 192.168.9.2 24int g0/0/0.1ip addr 192.168.6.2 24dot1q termination vid 6arp broadcast enableint g0/0/0.2ip addr 192.168.7.2 24dot1q termination vid 7arp broadcast enableqip route-s 192.168.1.0 24 192.168.9.1ip route-s 192.168.2.0 24 192.168.9.1ip route-s 192.168.3.0 24 192.168.9.1ip route-s 192.168.4.0 24 192.168.9.1 ip route-s 192.168.5.0 24 192.168.9.3SWITCH 7
sys sys sw7vlan batch 6 7int e0/0/3port link-type trunk port trunk allow-pass vlan 6 7int e0/0/2port link-type trunk port trunk allow-pass vlan 6int e0/0/1port link-type trunk port trunk allow-pass vlan 7SWITCH 2
sys sys sw2vlan batch 6 int e0/0/2port link-type trunk port trunk allow-pass vlan 6int e0/0/1port link-type access port default vlan 6SWITCH 3
sys sys sw3vlan batch 7 int e0/0/2port link-type trunk port trunk allow-pass vlan 7int e0/0/1port link-type access port default vlan 7四.验证
转载于:https://blog.51cto.com/14162269/2342691