按照拓扑图使不同VLAN的7台PC互通(简要描述两台交换机vlan之间互通如何实现)

网友投稿 257 2022-09-26


按照拓扑图使不同VLAN的7台PC互通(简要描述两台交换机vlan之间互通如何实现)

SWITCH 5sys 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 vlan

SWITCH 1sys 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.1

r 1syssystem 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.2

r 2syssys 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.2

r 3syssys 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.3

SWITCH 7sys 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 7

SWITCH 2sys 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 6

SWITCH 3sys 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


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:按照要求使用vrrp配置内网,使不同VLAN的PC可以访问外网。(vrrp接口一定是vlan)
下一篇:Java SpringMVC自学自讲
相关文章

 发表评论

暂时没有评论,来抢沙发吧~