




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第第页三层交换机配置文档STP、vlan、HSRP
目次
一、拓扑图1二、IP规划1三、VLAN划分2四、二层交换机VLAN配置内容2五、三层交换机STP配置内容…………………3六、三层交换机HSRP配置内容……………10
STP、vlan、HSRP
一、拓扑图
二、IP规划
STP、vlan、HSRP
三、vlan的划分
四、二层交换机VLAN配置内容
S3vlan划分状况:
30VLAN0030activeFa0/0,Fa0/140VLAN0040activeFa0/4,Fa0/550VLAN0050activeFa0/6,Fa0/760VLAN0060activeFa0/8,Fa0/9
S4vlan划分状况:
30VLAN0030activeFa0/0,Fa0/140VLAN0040activeFa0/2,Fa0/350VLAN0050activeFa0/5,Fa0/660VLAN0060activeFa0/7,Fa0/8
S5vlan划分状况:
30VLAN0030activeFa0/0,Fa0/140VLAN0040activeFa0/2,Fa0/350VLAN0050activeFa0/6,Fa0/760VLAN0060activeFa0/8,Fa0/9
S6vlan划分状况:
30VLAN0030activeFa0/0,Fa0/140VLAN0040activeFa0/2,Fa0/350VLAN0050activeFa0/4,Fa0/560VLAN0060activeFa0/7,Fa0/8
STP、vlan、HSRP
五、三层交换机STP配置内容
1-1三层交换机1配置内容:
S1#shrun
spanning-treevlan30priority8192//修改优先级,使其在vlan30和vlan40中成为spanning-treevlan40priority8192跟桥,在vlan50和vlan60中成为从属。指令:spanning-treevlan50priority16384#spanning-treevlan30rootprimaryspanning-treevlan60priority16384!#spanning-treevlan50rootsecondary!!!
interfacePort-channel1switchportmodetrunk!
interfaceFastEthernet0/0switchportmodetrunkchannel-group1modeon
spanning-treevlan30port-priority100spanning-treevlan40port-priority100!
interfaceFastEthernet0/1switchportmodetrunkchannel-group1modeon!
interfaceFastEthernet0/3switchportmodetrunk!
interfaceFastEthernet0/4switchportmodetrunk!
interfaceFastEthernet0/5switchportmodetrunk!
interfaceFastEthernet0/6switchportmodetrunk
interfaceVlan30
ipaddress192.168.3.254255.255.255.0!interfaceVlan40
ipaddress192.168.4.254255.255.255.0!
//修改优先级,使F0/0端口在vlan30和vlan40中成为根端口
STP、vlan、HSRP
interfaceVlan50
ipaddress192.168.5.254255.255.255.0!
interfaceVlan60
ipaddress192.168.6.254255.255.255.0
1-2三层交换机1STP状态:
S1#shspanning-treebriVLAN30
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0e40.0001Thisbridgeistheroot
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority8192
Addresscc00.0e40.0001
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/3128.412819FWD08192cc00.0e40.0001128.4FastEthernet0/4128.512819FWD08192cc00.0e40.0001128.5FastEthernet0/5128.612819FWD08192cc00.0e40.0001128.6FastEthernet0/6128.712819FWD08192cc00.0e40.0001128.7Port-channel1129.6512812FWD08192cc00.0e40.0001129.65
VLAN40
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0e40.0002Thisbridgeistheroot
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority8192
Addresscc00.0e40.0002
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
STP、vlan、HSRP
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/3128.412819FWD08192cc00.0e40.0002128.4FastEthernet0/4128.512819FWD08192cc00.0e40.0002128.5FastEthernet0/5128.612819FWD08192cc00.0e40.0002128.6FastEthernet0/6128.712819FWD08192cc00.0e40.0002128.7Port-channel1129.6512812FWD08192cc00.0e40.0002129.65
VLAN50
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0f30.0003Cost12
Port321(Port-channel1)
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority16384
Addresscc00.0e40.0003
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/3128.412819FWD1216384cc00.0e40.0003128.4FastEthernet0/4128.512819FWD1216384cc00.0e40.0003128.5FastEthernet0/5128.612819FWD1216384cc00.0e40.0003128.6FastEthernet0/6128.712819FWD1216384cc00.0e40.0003128.7Port-channel1129.6512812FWD08192cc00.0f30.0003129.65
VLAN60
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0f30.0004Cost12
Port321(Port-channel1)
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority16384
Addresscc00.0e40.0004
STP、vlan、HSRP
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/3128.412819FWD1216384cc00.0e40.0004128.4FastEthernet0/4128.512819FWD1216384cc00.0e40.0004128.5FastEthernet0/5128.612819FWD1216384cc00.0e40.0004128.6FastEthernet0/6128.712819FWD1216384cc00.0e40.0004128.7Port-channel1129.6512812FWD08192cc00.0f30.0004129.65
2-1三层交换机2配置内容:
S2#shrun
spanning-treevlan30priority16384//修改优先级,使其在vlan30和vlan40中成为spanning-treevlan40priority16384从属,在vlan50和vlan60中成为跟桥。spanning-treevlan50priority8192spanning-treevlan60priority8192!!!!!!
interfacePort-channel1switchportmodetrunkchannel-group1modeon!
interfaceFastEthernet0/0switchportmodetrunkchannel-group1modeon!
interfaceFastEthernet0/1switchportmodetrunk
spanning-treevlan50port-priority100//修改优先级,使F0/1端口在vlan50和vlan60中spanning-treevlan60port-priority100成为根端口。!
interfaceFastEthernet0/10switchportmodetrunk!
interfaceFastEthernet0/13switchportmodetrunk!
interfaceFastEthernet0/14switchportmodetrunk
STP、vlan、HSRP
interfaceFastEthernet0/15switchportmodetrunk!
interfaceVlan30
ipaddress192.168.3.253255.255.255.0!
interfaceVlan40
ipaddress192.168.4.253255.255.255.0!
interfaceVlan50
ipaddress192.168.5.253255.255.255.0!
interfaceVlan60
ipaddress192.168.6.253255.255.255.0
2-2三层交换机2STP状态:
S2#shspanning-treebrie
VLAN30
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0e40.0001Cost12
Port321(Port-channel1)
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority16384
Addresscc00.0f30.0001
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/10128.1112819FWD1216384cc00.0f30.0001128.11FastEthernet0/13128.1412819FWD1216384cc00.0f30.0001128.14FastEthernet0/14128.1512819FWD1216384cc00.0f30.0001128.15FastEthernet0/15128.1612819FWD1216384cc00.0f30.0001128.16Port-channel1129.6512812FWD08192cc00.0e40.0001129.65
STP、vlan、HSRP
VLAN40
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0e40.0002Cost12
Port321(Port-channel1)
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority16384
Addresscc00.0f30.0002
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/10128.1112819FWD1216384cc00.0f30.0002128.11FastEthernet0/13128.1412819FWD1216384cc00.0f30.0002128.14FastEthernet0/14128.1512819FWD1216384cc00.0f30.0002128.15FastEthernet0/15128.1612819FWD1216384cc00.0f30.0002128.16Port-channel1129.6512812FWD08192cc00.0e40.0002129.65
VLAN50
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0f30.0003Thisbridgeistheroot
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority8192
Addresscc00.0f30.0003
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/10128.1112819FWD08192cc00.0f30.0003128.11FastEthernet0/13128.1412819FWD08192cc00.0f30.0003128.14FastEthernet0/14128.1512819FWD08192cc00.0f30.0003128.15FastEthernet0/15128.1612819FWD08192cc00.0f30.0003128.16
STP、vlan、HSRP
Port-channel1129.6512812FWD08192cc00.0f30.0003129.65
VLAN60
SpanningtreeenabledprotocolieeeRootIDPriority8192
Addresscc00.0f30.0004Thisbridgeistheroot
HelloTime2secMa*Age20secForwardDelay15sec
BridgeIDPriority8192
Addresscc00.0f30.0004
HelloTime2secMa*Age20secForwardDelay15secAgingTime300
InterfaceDesignated
NamePortIDPrioCostStsCostBridgeIDPortID
FastEthernet0/10128.1112819FWD08192cc00.0f30.0004128.11FastEthernet0/13128.1412819FWD08192cc00.0f30.0004128.14FastEthernet0/14128.1512819FWD08192cc00.0f30.0004128.15FastEthernet0/15128.1612819FWD08192cc00.0f30.0004128.16Port-channel1129.6512812FWD08192cc00.0f30.0004129.65
STP、vlan、HSRP
六、三层交换机HSRP配置内容
1三层交换机1:
S1#shrun
interfaceVlan30
ipaddress192.168.3.254255.255.255.0
standby3ip192.168.3.100//HSRP虚拟网关IPstandby3preempt//占先权
standby3trackFastEthernet0/450//端口追踪,监听内网线路standby3trackFastEthernet0/350standby3trackFastEthernet0/550standby3trackFastEthernet0/650!
interfaceVlan40
ipaddress192.168.4.254255.255.255.0standby4ip192.168.4.100standby4preempt
standby4trackFastEthernet0/450standby4trackFastEthernet0/350standby4trackFastEthernet0/550standby4trackFastEthernet0/650!
interfaceVlan50
ipaddress192.168.5.254255.255.255.0standby5ip192.168.5.100standby3preemptstandby5priority80!
interfaceVlan60
ipaddress192.168.6.254255.255.255.0standby6ip192.168.6.100standby3preemptstandby6priority80
S1#shstandbyB
Pindicatesconfiguredtopreempt.|
InterfaceGrpPrioPStateActiveStandbyVirtualIPVl303100PActivelocal192.168.3.253192.168.3.100Vl404100PActivelocal192.168.4.253192.168.4.100Vl50580PStandby192.168.5.253local192.168.5.100Vl60680PStandby192.168.6.253local192.168.6.100
STP、vlan、HSRP
2三层交换机2:
S2#shrun
interfaceVlan30
i
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2023四年级数学上册 六 可能性教学实录 苏教版
- 2024-2025学年高中历史下学期第1周教学实录(新中国初期的政治建设)
- 二零二四年十二月半包合同书墙纸铺贴验收流程
- 2025年电力电缆安装运维工(中级)职业技能考试题(附答案)
- 泉州疫情防控课件
- 猴年微信祝福语
- 河南疫情防控课件
- 大连城市榜样评选启动典礼活动策划案
- 2024年计算机二级考试强化训练试题及答案
- 工程质检员个人工作总结
- 最常用2000个英语单词-电子表格版
- 幼儿园消防安全演示
- 全球价值链嵌入度
- 人力资源六大模块课件
- 参军复检申请书范文
- 酒店保安服务投标方案
- 用人单位意见反馈表模板
- SVG无功补偿系统培训
- 兰州大学学生驾驶摩托车及其他机动车辆家长知情同意书
- 静脉治疗护理技术操作规范(2023版)理论考核试题及答案
- 施工质量标准及质量管理体系
评论
0/150
提交评论