欢迎来到天天文库
浏览记录
ID:38992013
大小:57.50 KB
页数:5页
时间:2019-06-23
《不同vlan通讯实现备份冗余+STP》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、步骤:(从下向上)1、在s3和s4上划分vlan,将相应的接口分配到相应的vlan2、在s1和s2上划分vlan,将四个交换机之间的接口指定为trunk模式3、在四个交换机之间配置STP协议4、在s1和s2上配置vlan的ip地址,并启用路由功能,让不同的vlan相互通信5、在r1和s1、s2上启用rips3:s3#vlandatas3(vlan)#vlan10s3(vlan)#vlan20exitconfts3(config)#intf0/11switchaccessvlan10intf0/12switchaccessvlan20intf0/3switch
2、modetrunkintf0/6switchmodetrunks4:s4#vlandatas4(vlan)#vlan30s4(vlan)#vlan40exitconfts4(config)#intf0/13switchaccessvlan30intf0/14switchaccessvlan40intf0/4switchmodetrunkintf0/8switchmodetrunks1:s1#vlandatas1(vlan)#vlan10s1(vlan)#vlan20s1(vlan)#vlan30s1(vlan)#vlan40s1(vlan)#vlan100e
3、xitconfts1(config)#intf0/3switchmodetrunkintf0/4switchmodetrunkintf0/15switchtrunkencapdot1qswitchmodetrunks1(config)#spanning-treevlan20priority8192s1(config)#spanning-treevlan40priority8192s1(config)#spanning-treevlan10priority4096s1(config)#spanning-treevlan30priority4096s1(conf
4、ig)#intvlan10ipaddress192.168.10.253255.255.255.0intvlan20ipaddr192.168.20.253255.255.255.0intvlan30ipaddr192.168.30.253255.255.255.0intvlan40ipaddr192.168.40.253255.255.255.0intvlan100ipaddr200.1.1.1255.255.255.0s1(config)#iproutings1(config)#routerrips1(config-router)#ver2noauton
5、et192.168.10.0net192.168.20.0net192.168.30.0net192.168.40.0net200.1.1.0net192.168.1.0s1(config)#intf0/0noswitchportipaddr192.168.1.2255.255.255.0s2:s2#vlandatas2(vlan)#vlan10s2(vlan)#vlan20s2(vlan)#vlan30s2(vlan)#vlan40s2(vlan)#vlan100exitconfts2(config)#intf0/6switchmodetrunkintf0
6、/8switchmodetrunkintf0/15switchtrunkencapdot1qswitchmodetrunks2(config)#spanning-treevlan20priority4096s2(config)#spanning-treevlan40priority4096s2(config)#spanning-treevlan10priority8192s2(config)#spanning-treevlan30priority8192s2(config)#intvlan10ipaddress192.168.10.254255.255.25
7、5.0intvlan20ipaddr192.168.20.254255.255.255.0intvlan30ipaddr192.168.30.254255.255.255.0intvlan40ipaddr192.168.40.254255.255.255.0intvlan100ipaddr200.1.1.2255.255.255.0s2(config)#iproutings2(config)#routerrips2(config-router)#ver2noautonet192.168.10.0net192.168.20.0net192.168.30.0ne
8、t192.168.40.0net200.1.1.0n
此文档下载收益归作者所有