资源描述:
《思科交换机+vrrp+mstp配置实例》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、交换机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映射实例1、vlan20映射实例2其他vlan映射
2、默认实例0)。5、Vlan10业务以switcha为根桥;vlan20业务以switchb为根桥;实现阻断网络环路,并能实现不同vlan数据流负载分担功能。二、组网图三、配置步骤Switcha配置:s1#showrunBuildingconfiguration...Currentconfiguration:1651bytes!versionRGNOS10.2.00(2),Release(29287)(TueDec2520:39:14CST2007-ngcf49)hostnames1co-operateenable!!!vlan
3、1!vlan10!vlan20!!noservicepassword-encryption!spanning-tree开启生成树(默认为mstp)spanning-treemstconfiguration进入mst配置模式revision1指定MSTrevisionnumber为1nameregion1指定mst配置名称instance0vlan1-9,11-19,21-4094缺省情况下vlan都属于实例0instance1vlan10手工指定vlan10属于实例1instance2vlan20手工指定vlan20属于实例2
4、spanning-treemst1priority0指定实例1的优先级为0(为根桥)spanning-treemst2priority4096指定实例2的优先级为4096interfaceGigabitEthernet0/1switchportaccessvlan10配置g0/1属于vlan10!interfaceGigabitEthernet0/2switchportaccessvlan20配置g0/2属于vlan20!interfaceGigabitEthernet0/3!..interfaceGigabitEtherne
5、t0/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创建vlan20svi接口ipaddress192.168.20.1255.255.255.0
6、配置ip地址vrrp2ip192.168.20.254配置vrrp组2虚拟ip地址为192.168.20.254默认vrrp组的优先级为100默认不显示!linecon0linevty04logins1#showvlanVLANNameStatusPorts-------------------------------------------------------------------------------1VLAN0001STATICGi0/3,Gi0/4,Gi0/5,Gi0/6Gi0/7,Gi0/8,Gi0/9,Gi
7、0/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:1607bytes!versionRGNOS10.2.00(2),Release(27932)
8、(ThuDec1310:32:09CST2007-ngcf31)hostnames2!!!vlan1!vlan10!vlan20!!noservicepassword-encryption!spanning-treespanning-treemstconfigurationr