交换机vrrp.docx
- 文档编号:30737221
- 上传时间:2023-08-20
- 格式:DOCX
- 页数:32
- 大小:17.39KB
交换机vrrp.docx
《交换机vrrp.docx》由会员分享,可在线阅读,更多相关《交换机vrrp.docx(32页珍藏版)》请在冰豆网上搜索。
交换机vrrp
交换机vrrp+mstp配置实例
默认分类2010-05-1116:
55:
28阅读40评论0 字号:
大中小 订阅
一、 组网需求
1、switcha、switchb选用两台锐捷的s5750;switchc、shwichd选
用锐捷的s3750和s3760
2、全网共有两个业务vlan,为vlan10、vlan20
3、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#showrun
Buildingconfiguration...
Currentconfiguration:
1651bytes
!
versionRGNOS10.2.00
(2),Release(29287)(TueDec2520:
39:
14CST2007-ngcf49)
hostnames1
co-operateenable
!
!
!
vlan1
!
vlan10
!
vlan20
!
!
noservicepassword-encryption
!
spanning-tree 开启生成树(默认为mstp)
spanning-treemstconfiguration 进入mst配置模式
revision1 指定MSTrevisionnumber为1
nameregion1 指定mst配置名称
instance0vlan1-9,11-19,21-4094 缺省情况下vlan都属于实例0
instance1vlan10 手工指定vlan10属于实例1
instance2vlan20 手工指定vlan20属于实例2
spanning-treemst1priority0 指定实例1的优先级为0(为根桥)
spanning-treemst2priority4096 指定实例2的优先级为4096
interfaceGigabitEthernet0/1
switchportaccessvlan10 配置g0/1属于vlan10
!
interfaceGigabitEthernet0/2
switchportaccessvlan20 配置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优先级为120
vrrp1ip192.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默认不显示
!
linecon0
linevty04
login
s1#showvlan
VLANName Status Ports
----------------------------------------------------------------------------
---
1VLAN0001 STATIC Gi0/3,Gi0/4,Gi0/5,Gi0/6
Gi0/7,Gi0/8,Gi0/9,Gi0/10
Gi0/11,Gi0/12,Gi0/13,Gi0/14
Gi0/15,Gi0/16,Gi0/17,Gi0/18
Gi0/19,Gi0/20,Gi0/21,Gi0/22
Gi0/23,Gi0/24
10VLAN0010 STATIC Gi0/1,Gi0/24
20VLAN0020 STATIC Gi0/2,Gi0/24
Switchb配置:
s2#showrun
Buildingconfiguration...
Currentconfiguration:
1607bytes
!
versionRGNOS10.2.00
(2),Release(27932)(ThuDec1310:
32:
09CST2007-ngcf31)
hostnames2
!
!
!
vlan1
!
vlan10
!
vlan20
!
!
noservicepassword-encryption
!
spanning-tree
spanning-treemstconfiguration
revision1
nameregion1
instance0vlan1-9,11-19,21-4094
instance1vlan10
instance2vlan20
spanning-treemst1priority4096
spanning-treemst2priority0
interfaceGigabitEthernet0/1
switchportaccessvlan10
!
interfaceGigabitEthernet0/2
switchportaccessvlan20
!
.
.
interfaceGigabitEthernet0/24
switchportmodetrunk
!
interfaceVLAN10
ipaddress192.168.10.2255.255.255.0
vrrp1ip192.168.10.254
!
interfaceVLAN20
ipaddress192.168.20.2255.255.255.0
vrrp2priority120
vrrp2ip192.168.20.254
!
linecon0
linevty04
login
!
!
end
s2#showvlan
VLANName Status Ports
-----------------------------------------------------------------------------
---
1VLAN0001 STATIC Gi0/3,Gi0/4,Gi0/5,Gi0/6
Gi0/7,Gi0/8,Gi0/9,Gi0/10
Gi0/11,Gi0/12,Gi0/13,Gi0/14
Gi0/15,Gi0/16,Gi0/17,Gi0/18
Gi0/19,Gi0/20,Gi0/21,Gi0/22
Gi0/23,Gi0/24
10VLAN0010 STATIC Gi0/1,Gi0/24
20VLAN0020 STATIC Gi0/2,Gi0/24
Switchc配置:
s3#showrun
Buildingconfiguration...
Currentconfiguration:
1540bytes
!
versionRGNOS10.2.00
(2),Release(28794)(FriDec2109:
27:
15CST2007-ngcf32)
hostnames3
!
vlan1
!
vlan10
!
!
servicepassword-encryption
!
spanning-tree
spanning-treemstconfiguration
revision1
nameregion1
instance0vlan1-9,11-19,21-4094
instance1vlan10
instance2vlan20
spanning-treemst1priority0
spanning-treemst2priority4096
interfaceFastEthernet0/1
switchportaccessvlan10
!
interfaceFastEthernet0/2
switchportaccessvlan10
!
.
.
interfaceGigabitEthernet0/25
!
interfaceGigabitEthernet0/26
!
interfaceGigabitEthernet0/27
!
interfaceGigabitEthernet0/28
!
interfaceVLAN10
ipaddress192.168.10.3255.255.255.0
!
iproute0.0.0.00.0.0.0192.168.10.254
!
!
linecon0
linevty04
login
Switchd配置:
s4#showrun
Buildingconfiguration...
Currentconfiguration:
1066bytes
!
versionRGNOS10.2.00
(2),Release(27932)(ThuDec1310:
31:
41CST2007-ngcf32)
hostnames4
!
vlan1
!
vlan20
!
!
noservicepassword-encryption
!
spanning-tree
spanning-treemstconfiguration
revision1
nameregion1
instance0vlan1-9,11-19,21-4094
instance1vlan10
instance2vlan20
spanning-treemst1priority4096
spanning-treemst2priority0
interfaceGigabitEthernet0/1
switchportaccessvlan20
!
interfaceGigabitEthernet0/2
switchportaccessvlan20
!
.
.
interfaceGigabitEthernet0/12
!
interfaceVLAN20
ipaddress192.168.20.3255.255.255.0
!
!
!
!
iproute0.0.0.00.0.0.0192.168.20.254
!
!
linecon0
linevty04
login
!
四、 查看vrrp、mstp信息
Switcha信息:
s1#showvrrp 查看vrrp信息
VLAN10-Group1
StateisMaster
VirtualIPaddressis192.168.10.254configured
VirtualMACaddressis0000.5e00.0101
Advertisementintervalis1sec
Preemptionisenabled
mindelayis0sec
Priorityis120
MasterRouteris192.168.10.1(local),priorityis120
MasterAdvertisementintervalis1sec
MasterDownintervalis3sec
VLAN20-Group2
StateisBackup
VirtualIPaddressis192.168.20.254configured
VirtualMACaddressis0000.5e00.0102
Advertisementintervalis1sec
Preemptionisenabled
mindelayis0sec
Priorityis100
MasterRouteris192.168.20.2,priorityis120
MasterAdvertisementintervalis1sec
MasterDownintervalis3sec
s1#
s1#s1#
s1#showspanning-treeinterfacegigabitEthernet0/1 查看g0/1接口stp状态信息
PortAdminPortFast:
Disabled
PortOperPortFast:
Disabled
PortAdminAutoEdge:
Enabled
PortOperAutoEdge:
Disabled
PortAdminLinkType:
auto
PortOperLinkType:
point-to-point
PortBPDUGuard:
Disabled
PortBPDUFilter:
Disabled
######MST0vlansmapped:
1-9,11-19,21-4094
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
8000.001a.a909.8fe0
PortDesignatedCost:
0
PortDesignatedBridge:
8000.00d0.f836.ed70
PortDesignatedPort:
8001
PortForwardTransitions:
6
PortAdminPathCost:
200000
PortOperPathCost:
200000
PortRole:
designatedPort
######MST1vlansmapped:
10
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
0001.00d0.f823.ef82
PortDesignatedCost:
0
PortDesignatedBridge:
0001.00d0.f823.ef82
PortDesignatedPort:
8001
PortForwardTransitions:
5
PortAdminPathCost:
200000
PortOperPathCost:
200000
PortRole:
rootPort
######MST2vlansmapped:
20
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
0002.001a.a909.8fe0
PortDesignatedCost:
0
PortDesignatedBridge:
1002.00d0.f836.ed70
PortDesignatedPort:
8001
PortForwardTransitions:
4
PortAdminPathCost:
200000
PortOperPathCost:
200000
PortRole:
designatedPort
s1#
s1#
s1#showspanning-treeinterfacegigabitEthernet0/2 查看g0/2接口stp状态信息
PortAdminPortFast:
Disabled
PortOperPortFast:
Disabled
PortAdminAutoEdge:
Enabled
PortOperAutoEdge:
Disabled
PortAdminLinkType:
auto
PortOperLinkType:
point-to-point
PortBPDUGuard:
Disabled
PortBPDUFilter:
Disabled
######MST0vlansmapped:
1-9,11-19,21-4094
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
8000.001a.a909.8fe0
PortDesignatedCost:
0
PortDesignatedBridge:
8000.00d0.f836.ed70
PortDesignatedPort:
8002
PortForwardTransitions:
5
PortAdminPathCost:
20000
PortOperPathCost:
20000
PortRole:
designatedPort
######MST1vlansmapped:
10
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
0001.00d0.f823.ef82
PortDesignatedCost:
0
PortDesignatedBridge:
0001.00d0.f836.ed70
PortDesignatedPort:
8002
PortForwardTransitions:
4
PortAdminPathCost:
20000
PortOperPathCost:
20000
PortRole:
designatedPort
######MST2vlansmapped:
20
PortState:
discarding
PortPriority:
128
PortDesignatedRoot:
0002.001a.a909.8fe0
PortDesignatedCost:
0
PortDesignatedBridge:
0002.00d0.f8d7.ae12
PortDesignatedPort:
8002
PortForwardTransitions:
3
PortAdminPathCost:
20000
PortOperPathCost:
20000
PortRole:
alternatePort
s1#
s1#
s1#showspanning-treeinterfacegigabitEthernet0/24g0/24接口stp状态信息
PortAdminPortFast:
Disabled
PortOperPortFast:
Disabled
PortAdminAutoEdge:
Enabled
PortOperAutoEdge:
Disabled
PortAdminLinkType:
auto
PortOperLinkType:
point-to-point
PortBPDUGuard:
Disabled
PortBPDUFilter:
Disabled
######MST0vlansmapped:
1-9,11-19,21-4094
PortState:
forwarding
PortPriority:
128
PortDesignatedRoot:
8000.001a.a909.8fe0
PortDesignatedCo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 交换机 vrrp