版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、内容:1RSTP配置案例指南2接入冗余链路配置指南 Redundant Trunk Links for Faster Recovery(12页)注意:上述两种链路冗余方式同一个交换机上只能够用一种。几种查看STP状态的命令:show spanning-tree bridge 查看网络拓扑信息show spanning-tree interface 查看端口信息 show spanning-tree bridge detail 查看拓扑改变信息monitor interface traffic 查看端口转发数据包的信息1、Example: Configuring Faster Conv
2、ergence and Improving Network Stability with RSTP on EX Series SwitchesEX Series switches use Rapid Spanning Tree Protocol (RSTP) by default to provide a loop-free topology. RSTP works by identifying certain links as point to point links and blocking other possible paths. When one of the point-to-po
3、int links fails, a designated alternate link transitions to the forwarding state and take over. When switches that support redundant routing engines use RSTP, it is important to keep RSTP synchronized on both Routing Engines so that no loss of service occurs after a Routing Engine switchover. Config
4、uring nonstop bridging (NSB) on a switch with redundant Routing Engines keeps RSTP synchronized on both Routing Engines. This way, RSTP remains active immediately after a switchover because it is already synchronized to the backup Routing Engine. RSTP does not have to reconverge after a Routing Engi
5、ne switchover when NSB is enabled because the neighbor devices do not detect an RSTP change on the switch.This example describes how to configure RSTP and NSB on four EX Series switches:· Requirements· Overview and Topology· Configuring RSTP and NSB on Switch 1· Configuring RSTP
6、and NSB on Switch 2· Configuring RSTP and NSB on Switch 3· Configuring RSTP and NSB on Switch 4· VerificationRequirementsThis example uses the following hardware and software components:· Junos OS Release 9.0 or later for EX Series switches· Four EX Series switchesBefore you
7、 configure the switches for RSTP, be sure you have:· Installed the four switches. See Connecting and Configuring an EX Series Switch (J-Web Procedure).· Performed the initial software configuration on all switches. See Installing and Connecting an EX3200 Switch.Overview and TopologyIn this
8、 example, four EX Series switches are connected in the topology displayed in Figure 1 to create a loop-free topology.Figure 1: Network Topology for RSTPTable 1: Components of the Topology for Configuring RSTP on EX Series SwitchesPropertySettingsSwitch 1The following ports on Switch 1 are connected
9、in this way:· ge-0/0/9 is connected to Switch 2· ge-0/0/13 is connected to Switch 4· ge-0/0/11 is connected to Switch 3Switch 2The following ports on Switch 2 are connected in this way:· ge-0/0/14 is connected to Switch 1· ge-0/0/18 is connected to Switch 3Switch 3The follow
10、ing ports on Switch 3 are connected in this way:· ge-0/0/26 is connected to Switch 1· ge-0/0/28 is connected to Switch 2· ge-0/0/24 is connected to Switch 4Switch 4The following ports on Switch 4 are connected in this way:· ge-0/0/19 is connected to Switch 1· ge-0/0/23 is co
11、nnected to Switch 3VLAN names and tag IDsvoice-vlan, tag 10employee-vlan, tag 20guest-vlan, tag 30camera-vlan, tag 40 Configuring RSTP and NSB on Switch 1CLI Quick ConfigurationTo quickly configure interfaces and RSTP on Switch 1, copy the following commands and paste them into the switch terminal w
12、indow:editset vlans voice-vlan description “Voice VLAN” set vlans voice-vlan vlan-id 10 set vlans employee-vlan description “Employee VLAN” set vlans employee-vlan vlan-id 20 set vlans guest-vlan description “Guest VLAN” set vlans guest-vlan vlan-id 30 set vlans camera-vlan description “Camera VLAN”
13、 set vlans camera-vlan vlan-id 40 set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge0/0/9 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge0/0/11 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge0/0
14、/13 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/9 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/11 unit 0 family ethernet-switching port-mode trunk set protocols rstp bridge-priority 16k set protocols rstp interface ge-0/0/13.0 cost 1000 set protoc
15、ols rstp interface ge-0/0/13.0 mode point-to-point set protocols rstp interface ge-0/0/9.0 cost 1000 set protocols rstp interface ge-0/0/9.0 mode point-to-point set protocols rstp interface ge-0/0/11.0 cost 1000 set protocols rstp interface ge-0/0/11.0 mode point-to-point If Switch 1 includes dual r
16、outing engines, configure NSB. To quickly configure nonstop bridging on Switch 1, copy the following commands and paste them into the switch terminal window:edit chassis redundancy set graceful switchoveredit protocols layer-2-control set commit synchronize edit system set nonstop-bridgingStep-by-St
17、ep ProcedureTo configure interfaces and RSTP on Switch 1:1. Configure the VLANs voice-vlan, employee-vlan, guest-vlan, and camera-vlan: edit vlansuserswitch1# set voice-vlan description “Voice VLAN”userswitch1# set voice-vlan vlan-id 10userswitch1# set employee-vlan description “Employee VLAN”usersw
18、itch1# set employee-vlan vlan-id 20userswitch1# set guest-vlan description “Guest VLAN”userswitch1# set guest-vlan vlan-id 30userswitch1# set camera-vlan description “Camera VLAN”userswitch1# set guest-vlan vlan-id 402. Configure the VLANs on the interfaces, including support for the Ethernet Switch
19、ing protocol: edit interfacesuserswitch1# set ge-0/0/13 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch1# set ge-0/0/9 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch1# set ge-0/0/11 unit 0 family ethernet-switching vlan members 10 20 30 403. Configure the por
20、t mode for the interfaces: edit interfacesuserswitch1# set ge-0/0/13 unit 0 family ethernet-switching port-mode trunkuserswitch1# set ge-0/0/9 unit 0 family ethernet-switching port-mode trunkuserswitch1# set ge-0/0/11 unit 0 family ethernet-switching port-mode trunk 4. Configure RSTP on the switch:
21、edit protocolsuserswitch1# rstp bridge-priority 16kuserswitch1# rstp interface ge-0/0/13.0 cost 1000userswitch1# rstp interface ge-0/0/13.0 mode point-to-pointuserswitch1# rstp interface ge-0/0/9.0 cost 1000userswitch1# rstp interface ge-0/0/9.0 mode point-to-pointuserswitch1# rstp interface ge-0/0/
22、11.0 cost 1000userswitch1# rstp interface ge-0/0/11.0 mode point-to-pointStep-by-Step ProcedureIf Switch 1 includes dual routing engines, configure nonstop bridging. To configure NSB on Switch 1:1. Enable graceful Routing Engine switchover (GRES): edit chassis redundancy userswitch1# set graceful-sw
23、itchover2. Configure the switch to always synchronize configuration changes between the Routing Engines: edit system userswitch1# set commit synchronizeIf you try to commit a configuration in which nonstop bridging is configured but synchronization of configuration changes is not configured, the con
24、figuration is not committed.3. Enable nonstop bridging: edit ethernet-switching-optionsuserswitch1# set nonstop-bridgingNote: This process enables NSB for all NSB-supported Layer 2 protocols on the switch, including RSTP.Configuring RSTP and NSB on Switch 2CLI Quick ConfigurationTo quickly configure
25、 interfaces and RSTP on Switch 2, copy the following commands and paste them into the switch terminal window:editset vlans voice-vlan description “Voice VLAN” set vlans voice-vlan vlan-id 10 set vlans employee-vlan description “Employee VLAN” set vlans employee-vlan vlan-id 20 set vlans guest-vlan d
26、escription “Guest VLAN” set vlans guest-vlan vlan-id 30 set vlans camera-vlan description “Camera VLAN” set vlans camera-vlan vlan-id 40 set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge-0/0/18 unit 0 family ethernet-switching vlan members 10 20 30
27、40 set interfaces ge-0/0/14 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/18 unit 0 family ethernet-switching port-mode trunk set protocols rstp bridge-priority 32k set protocols rstp interface ge-0/0/14.0 cost 1000 set protocols rstp interface ge-0/0/14.0 mode point-to-poin
28、t set protocols rstp interface ge-0/0/18.0 cost 1000 set protocols rstp interface ge-0/0/18.0 mode point-to-point If Switch 2 includes dual routing engines, configure NSB. To quickly configure nonstop bridging on Switch 2, copy the following commands and paste them into the switch terminal window:ed
29、it chassis redundancy set graceful switchoveredit protocols layer-2-control set commit synchronize edit system set nonstop-bridgingStep-by-Step ProcedureTo configure interfaces and RSTP on Switch 2:1. Configure the VLANs voice-vlan, employee-vlan, guest-vlan, and camera-vlan: edit vlansuserswitch2#
30、set voice-vlan description “Voice VLAN”userswitch2# set voice-vlan vlan-id 10userswitch2# set employee-vlan description “Employee VLAN”userswitch2# set employee-vlan vlan-id 20userswitch2# set guest-vlan description “Guest VLAN”userswitch2# set guest-vlan vlan-id 30userswitch2# set camera-vlan vlan-
31、description “Camera VLAN”userswitch2# set guest-vlan vlan-id 402. Configure the VLANs on the interfaces, including support for the Ethernet Switching protocol: edit interfacesuserswitch2# set ge-0/0/14 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch2# set ge-0/0/18 unit 0 family
32、ethernet-switching vlan members 10 20 30 403. Configure the port mode for the interfaces: edit interfacesuserswitch2# set ge-0/0/14 unit 0 family ethernet-switching port-mode trunkuserswitch2# set ge-0/0/18 unit 0 family ethernet-switching port-mode trunk 4. Configure RSTP on the switch: edit protoc
33、olsuserswitch2# rstp bridge-priority 32kuserswitch2# rstp interface ge-0/0/14.0 cost 1000userswitch2# rstp interface ge-0/0/14.0 mode point-to-pointuserswitch2# rstp interface ge-0/0/18.0 cost 1000userswitch2# rstp interface ge-0/0/18.0 mode point-to-pointStep-by-Step ProcedureIf Switch 2 includes d
34、ual routing engines, configure nonstop bridging. To configure NSB on Switch 2:1. Enable graceful Routing Engine switchover (GRES): edit chassis redundancy userswitch2# set graceful-switchover2. Configure the switch to always synchronize configuration changes between the Routing Engines: edit system
35、userswitch2# set commit synchronizeIf you try to commit a configuration in which nonstop bridging is configured but synchronization of configuration changes is not configured, the configuration is not committed.3. Enable nonstop bridging: edit ethernet-switching-optionsuserswitch2# set nonstop-bridg
36、ingNote: This process enables NSB for all NSB-supported Layer 2 protocols on the switch, including RSTP.Configuring RSTP and NSB on Switch 3CLI Quick ConfigurationTo quickly configure interfaces and RSTP on Switch 3, copy the following commands and paste them into the switch terminal window:editset
37、vlans voice-vlan description “Voice VLAN” set vlans voice-vlan vlan-id 10 set vlans employee-vlan description “Employee VLAN” set vlans employee-vlan vlan-id 20 set vlans guest-vlan description “Guest VLAN” set vlans guest-vlan vlan-id 30 set vlans camera-vlan description “Camera VLAN” set vlans cam
38、era-vlan vlan-id 40 set interfaces ge-0/0/26 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge-0/0/28 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge-0/0/24 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge-0/0/26 unit 0
39、 family ethernet-switching port-mode trunk set interfaces ge-0/0/28 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/24 unit 0 family ethernet-switching port-mode trunk set protocols rstp bridge-priority 8k set protocols rstp interface ge-0/0/26.0 cost 1000 set protocols rstp i
40、nterface ge-0/0/26.0 mode point-to-point set protocols rstp interface ge-0/0/28.0 cost 1000 set protocols rstp interface ge-0/0/28.0 mode point-to-point set protocols rstp interface ge-0/0/24.0 cost 1000 set protocols rstp interface ge-0/0/24.0 mode point-to-point If Switch 3 includes dual routing e
41、ngines, configure NSB. To quickly configure nonstop bridging on Switch 3, copy the following commands and paste them into the switch terminal window:edit chassis redundancy set graceful switchoveredit protocols layer-2-control set commit synchronize edit system set nonstop-bridgingStep-by-Step Proce
42、dureTo configure interfaces and RSTP on Switch 3:1. Configure the VLANs voice-vlan, employee-vlan, guest-vlan, and camera-vlan: edit vlansuserswitch3# set voice-vlan description “Voice VLAN”userswitch3# set voice-vlan vlan-id 10userswitch3# set employee-vlan description “Employee VLAN”userswitch3# s
43、et employee-vlan vlan-id 20userswitch3# set guest-vlan description “Guest VLAN”userswitch3# set guest-vlan vlan-id 30userswitch3# set camera-vlan description “Camera VLAN”userswitch3# set guest-vlan vlan-id 402. Configure the VLANs on the interfaces, including support for the Ethernet Switching prot
44、ocol: edit interfacesuserswitch3# set ge-0/0/26 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch3# set ge-0/0/28 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch3# set ge-0/0/24 unit 0 family ethernet-switching vlan members 10 20 30 403. Configure the port mode
45、for the interfaces: edit interfacesuserswitch3# set ge-0/0/26 unit 0 family ethernet-switching port-mode trunkuserswitch3# set ge-0/0/28 unit 0 family ethernet-switching port-mode trunkuserswitch3# set ge-0/0/24 unit 0 family ethernet-switching port-mode trunk 4. Configure RSTP on the switch: edit p
46、rotocolsuserswitch3# rstp bridge-priority 8kuserswitch3# rstp interface ge-0/0/26.0 cost 1000userswitch3# rstp interface ge-0/0/26.0 mode point-to-pointuserswitch3# rstp interface ge-0/0/28.0 cost 1000userswitch3# rstp interface ge-0/0/28.0 mode point-to-pointuserswitch3# rstp interface ge-0/0/24.0
47、cost 1000userswitch3# rstp interface ge-0/0/24.0 mode point-to-pointStep-by-Step ProcedureIf Switch 3 includes dual routing engines, configure nonstop bridging. To configure NSB on Switch 3:1. Enable graceful Routing Engine switchover (GRES): edit chassis redundancy userswitch3# set graceful-switcho
48、ver2. Configure the switch to always synchronize configuration changes between the Routing Engines: edit system userswitch3# set commit synchronizeIf you try to commit a configuration in which nonstop bridging is configured but synchronization of configuration changes is not configured, the configur
49、ation is not committed.3. Enable nonstop bridging: edit ethernet-switching-optionsuserswitch3# set nonstop-bridgingNote: This process enables NSB for all NSB-supported Layer 2 protocols on the switch, including RSTP.Configuring RSTP and NSB on Switch 4CLI Quick ConfigurationTo quickly configure inte
50、rfaces and RSTP on Switch 4, copy the following commands and paste them into the switch terminal window:editset vlans voice-vlan description “Voice VLAN” set vlans voice-vlan vlanid 10 set vlans employee-vlan description “Employee VLAN” set vlans employee-vlan vlan-id 20 set vlans guest-vlan descrip
51、tion “Guest VLAN” set vlans guest-vlan vlan-id 30 set vlans camera-vlan description “Camera VLAN” set vlans camera-vlan vlan-id 40 set interfaces ge-0/0/23 unit 0 family ethernet-switching vlan members 10 20 30 40 set interfaces ge-0/0/19 unit 0 family ethernet-switching vlan members 10 20 30 40 set
52、 interfaces ge-0/0/23 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/19 unit 0 family ethernet-switching port-mode trunk set protocols rstp bridge-priority 16k set protocols rstp interface ge-0/0/23.0 cost 1000 set protocols rstp interface ge-0/0/23.0 mode point-to-point set
53、protocols rstp interface ge-0/0/19.0 cost 1000 set protocols rstp interface ge-0/0/19.0 mode point-to-point If Switch 4 includes dual routing engines, configure NSB. To quickly configure nonstop bridging on Switch 4, copy the following commands and paste them into the switch terminal window:edit cha
54、ssis redundancy set graceful switchoveredit protocols layer-2-control set commit synchronize edit system set nonstop-bridgingStep-by-Step ProcedureTo configure interfaces and RSTP on Switch 4:1. Configure the VLANs voice-vlan, employee-vlan, guest-vlan, and camera-vlan: edit vlansuserswitch4# set vo
55、ice-vlan description “Voice VLAN”userswitch4# set voice-vlan vlan-id 10userswitch4# set employee-vlan description “Employee VLAN”userswitch4# set employee-vlan vlan-id 20userswitch4# set guest-vlan description “Guest VLAN”userswitch4# set guest-vlan vlan-id 30userswitch4# set camera-vlan description
56、 “Camera VLAN”userswitch4# set guest-vlan vlan-id 402. Configure the VLANs on the interfaces, including support for the Ethernet Switching protocol: edit interfacesuserswitch4# set ge-0/0/23 unit 0 family ethernet-switching vlan members 10 20 30 40userswitch4# set ge-0/0/19 unit 0 family ethernet-sw
57、itching vlan members 10 20 30 403. Configure the port mode for the interfaces: edit interfacesuserswitch4# set ge-0/0/23 unit 0 family ethernet-switching port-mode trunkuserswitch4# set ge-0/0/19 unit 0 family ethernet-switching port-mode trunk 4. Configure RSTP on the switch: edit protocolsuserswitch4# rstp bridge-priority 16kuserswitch4# rstp interface all cost 1000userswitch4# rstp interface ge-0/0/23.0 cost 1000userswitch4# rstp interfa
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2026学年巴西音乐说课稿教学
- 2025-2026学年大班数学说课稿认识单双数
- 2025-2026学年保护牙齿教育活动说课稿
- 2025-2026学年初三语文下册说课说课稿
- 2025-2026学年初中地理试卷说课稿
- 2026下半年下半年初中化学教资面试酸碱专项题库
- 2025-2026学年八年级地理下册说课稿人教版
- 2026下半年下半年高中化学教资面试计算解析
- 《形体与减肥》课件
- 2025-2026学年动作律动舞蹈说课稿
- 沉浸式数字艺术展策展、运营及衍生品开发指南
- 《安全生产责任保险事故预防服务规范 第3部分:危险化学品》AQ 9010.3-2026
- AI大模型安全评估及防护技术应用指南2026
- 安徽省合肥市肥东县2025-2026学年上学期七年级期末数学试卷(试卷+解析)
- 2026年及未来5年中国野猪行业市场深度研究及投资战略咨询报告
- 2025年东莞初中音乐考编笔试及答案
- 坦克课件教学课件
- 2026年及未来5年市场数据中国聚醚酰亚胺(PEI)行业市场需求预测及投资战略规划报告
- 絮凝技术应用
- 2026年湖南商务职业技术学院单招职业技能考试题库附答案解析
- DB3304∕T 087-2022 稻田退水零直排工程建设规范
评论
0/150
提交评论