资源描述:
《交换机_vrrp+mstp配置实例》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、交换机_vrrp+mstp配置实例交换机vrrp+mstp配置实例一、组网需求1、switcha、switchb选用两台锐捷的s5750;switchc、shwichd选用锐捷的s3750和s37602、全网共有两个业务vlan,为vlan10、vlan203、switcha、switchb都分别对两vlan起用两vrrp组,实现两组的业务的负载分担和备份。4、switcha、switchb、switchc、switchd都起用mstp多生成数协议,并且所有设备都属于同一个mst域,且实例映射一致(vlan10映射实
2、例1、vlan20映射实例2其他vlan映射默认实例0)。5、Vlan10业务以switcha为根桥;vlan20业务以switchb为根桥;实现阻断网络环路,并能实现不同vlan数据流负载分担功能。二、组网图一、配置步骤Switcha配置:s1#showrunBuildingconfiguration...Currentconfiguration:1651bytes!versionRGNOS10.2.00(2),Release(29287)(TueDec2520:39:14CST2007-ngcf49)hostna
3、mes1co-operateenable!vlan1!vlan10!vlan20!!noservicepassword-encryption!spanning-tree开启生成树(默认为mstp)spanning-treemstconfiguration进入mst配置模式revision1指定MSTrevisionnumber为1nameregion1指定mst配置名称instance0vlan1-9,11-19,21-4094缺省情况下vlan都属于实例0instance1vlan10手工指定vlan10属于实例1
4、instance2vlan20手工指定vlan20属于实例2spanning-treemst1priority0指定实例1的优先级为0(为根桥)spanning-treemst2priority4096指定实例2的优先级为4096interfaceGigabitEthernet0/1switchportaccessvlan10配置g0/1属于vlan10!interfaceGigabitEthernet0/2switchportaccessvlan20配置g0/2属于vlan20!interfaceGigabitEt
5、hernet0/3!interfaceGigabitEthernet0/24设置g0/24为trunk接口且允许vlan10/20通过switchportmodetrunk!interfaceVLAN10创建vlan10svi接口ipaddress192.168.10.1255.255.255.0配置ip地址vrrp1priority120配置vrrp组1优先级为120vrrp1ip192.168.10.254配置vrrp组1虚拟ip地址为192.168.10.254!interfaceVLAN20创建vlan20s
6、vi接口ipaddress192.168.20.1255.255.255.0配置ip地址vrrp2ip192.168.20.254配置vrrp组2虚拟ip地址为192.168.20.254默认vrrp组的优先级为100默认不显示!linecon0linevty04logins1#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1VLAN0001STATICGi0
7、/3,Gi0/4,Gi0/5,Gi0/6Gi0/7,Gi0/8,Gi0/9,Gi0/10Gi0/11,Gi0/12,Gi0/13,Gi0/14Gi0/15,Gi0/16,Gi0/17,Gi0/18Gi0/19,Gi0/20,Gi0/21,Gi0/22Gi0/23,Gi0/2410VLAN0010STATICGi0/1,Gi0/2420VLAN0020STATICGi0/2,Gi0/24Switchb配置:s2#showrunBuildingconfiguration...Currentconfiguration:16
8、07bytesversionRGNOS10.2.00(2),Release(27932)(ThuDec1310:32:09CST2007-ngcf31)hostnames2vlan1!vlan10!vlan20!noservicepassword-encryption!spanning-treespanning-treemstconfigura