您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 冶金工业 > 思科交换机+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映射实例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)hostnames1co-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属于实例1instance2vlan20手工指定vlan20属于实例2spanning-treemst1priority0指定实例1的优先级为0(为根桥)spanning-treemst2priority4096指定实例2的优先级为4096interfaceGigabitEthernet0/1switchportaccessvlan10配置g0/1属于vlan10!interfaceGigabitEthernet0/2switchportaccessvlan20配置g0/2属于vlan20!interfaceGigabitEthernet0/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创建vlan20svi接口ipaddress192.168.20.1255.255.255.0配置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,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:1607bytes!versionRGNOS10.2.00(2),Release(27932)(ThuDec1310:32:09CST2007-ngcf31)hostnames2!!!vlan1!vlan10!vlan20!!noservicepassword-encryption!spanning-treespanning-treemstconfigurationrevision1nameregion1instance0vlan1-9,11-19,21-4094instance1vlan10instance2vlan20spanning-treemst1priority4096spanning-treemst2priority0interfaceGigabitEthernet0/1switchportaccessvlan10!interfaceGigabitEthernet0/2switchportaccessvlan20!..interfaceGigabitEthernet0/24switchportmodetrunk!interfaceVLAN10ipaddress192.168.10.2255.255.255.0vrrp1ip192.168.10.254!interfaceVLAN20ipaddress192.168.20.2255.255.255.0vrrp2priority120vrrp2ip192.168.20.254!linecon0linevty04login!!ends2#showvlanVLANNameStatusPorts--------------------------------------------------------------------------------1VLAN0001STATICGi0/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/24Switchc配置:s3#showrunBuildingconfiguration...Currentconfiguration:1540bytes!versionRGNOS10.2.00(2),Release(28794)(FriDec2109:27:15CST2007-ngcf32)hostnames3!vlan1!vlan10!!servicepassword-encryption!spanning-treespanning-treemstconfigurationrevision1nameregion1instance0vlan1-9,11-19,21-4094instance1vlan10instance2vlan20spanning-treemst1priority0spanning-treemst2priority4096interfaceFastEthernet0/1switchportaccessvlan10!interfaceFastEthernet0/2switchportaccessvlan10!..interfaceGigabitEthernet0/25!interfaceGigabitEthernet0/26!interfaceGigabitEthernet0/27!interfaceGigabitEthernet0/28!interfaceVLAN10ipaddress192.168.10.3255.255.255.0!iproute0.0.0.00.0.0.0192.168.10.254!!linecon0linevty04loginSwitchd配置:s4#showrunBuildingconfiguration...Currentconfiguration:1066bytes!versionRGNOS10.2.00(2),Release(27932)(ThuDec1310:31:41CST2007-ngcf32)hostnames4!vlan1!vlan20!!noservicepassword-encryption!spanning-treespanning-treemstconfigurationrevision1nameregion1instance0vlan1-9,11-19,21-4094instance1vlan10instance2vlan20spanning-treemst1priority4096spanning-treemst2priority0interfaceGigabitEthernet0/1switchportaccessvlan20!interfaceGigabitEthernet0/2switchportaccessvlan20!..interfaceGigabitEthernet0/12!interfaceVLAN20ipaddress192.168.20.3255.255.255.0!!!!iproute0.0.0.00.0.0.0192.168.20.254!!linecon0linevty04login!四、查看vrrp、mstp信息Switcha信息:s1#showvrrp查看vrrp信息VLAN10-Group1StateisMasterVirtualIPaddressis192.168.10.254configuredVirtualMACaddressis0000.5e00.0101Advertisementintervalis1secPreemptionisenabledmindelayis0secPriorityis120MasterRouteris192.168.10.1(local),priorityis120MasterAdvertisementintervalis1secMasterDownintervalis3secVLAN20-Group2StateisBackupVirtualIPaddressis192.168.20.254configuredVirtualMACaddressis0000.5e00.0102Advertisementintervalis1secPreemptionisenabledmindelayis0secPriorityis100MasterRouteris192.168.20.2,priorityis120MasterAdvertisementintervalis1secMasterDownintervalis3secs1#s1#s1#s1#showspanning-treeinterfacegigabitEthernet0/1查看g0/1接口stp状态信息PortAdminPortFast:DisabledPortOperPortFast:DisabledPortAdminAutoEdge:EnabledPortOperAutoEdge:DisabledPortAdminLinkType:autoPortOperLinkType:point-to-pointPortBPDUGuard:DisabledPortBPDUFilter:Disabled######MST0vlansmapped:1-9,11-19,2
本文标题:思科交换机+vrrp+mstp配置实例
链接地址:https://www.777doc.com/doc-5376451 .html