1、EX交换机RSTP设置冗余链路配置内容: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
2、Faster Convergence 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
3、point-to-point 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 switcho
4、ver. Configuring 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 R
5、outing Engine 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 and NSB on Sw
6、itch 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 configure the switches for RSTP, be sure y
7、ou 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 example, four EX Series switches are connected in the
8、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 in this way: ge-0/0/9 is connected to Switch 2 ge-0/0/1
9、3 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 following ports on Switch 3 are connected in this way: ge-0/0/26 is connected to Switch 1 g
10、e-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 connected to Switch 3VLAN names and tag IDsvoice-vlan, tag 10employee-vlan, tag 20guest-vlan, tag 30camera-vlan, tag
11、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 window:editset vlans voice-vlan description “Voice VLAN” set vlans voice-vlan vlan-id 10 set vlans employee-vlan des
12、cription “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 camera-vlan vlan-id 40 set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members 10 20 30 4
13、0 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/13 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/9 unit 0 family ethernet-switching port-
14、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 protocols rstp interface ge-0/0/13.0 mode point-to-point set protocols rstp interface ge-0/0/9.0 cost 1000 set protocols
15、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 routing engines, configure NSB. To quickly configure nonstop bridging on Switch 1, copy the following commands and p
16、aste 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 ProcedureTo configure interfaces and RSTP on Switch 1:1. Configure the VLANs voice-vlan, employee-vlan, guest-vl
17、an, and camera-vlan: edit vlansuserswitch1# set voice-vlan description “Voice VLAN”userswitch1# set voice-vlan vlan-id 10userswitch1# set employee-vlan description “Employee VLAN”userswitch1# set employee-vlan vlan-id 20userswitch1# set guest-vlan description “Guest VLAN”userswitch1# set guest-vlan
18、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 Switching protocol: edit interfacesuserswitch1# set ge-0/0/13 unit 0 family ethernet-switching vlan members 10 20 30 40us
19、erswitch1# 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 port mode for the interfaces: edit interfacesuserswitch1# set ge-0/0/13 unit 0 family ethernet-switching port-mode tru
20、nkuserswitch1# 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: edit protocolsuserswitch1# rstp bridge-priority 16kuserswitch1# rstp interface ge-0/0/13.0 cost 1000userswitch1# rs
21、tp 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/11.0 cost 1000userswitch1# rstp interface ge-0/0/11.0 mode point-to-pointStep-by-Step ProcedureIf Switch 1 includes
22、 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-switchover2. Configure the switch to always synchronize configuration changes between the Routing Engines: edit syste
23、m 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 configuration is not committed.3. Enable nonstop bridging: edit ethernet-switching-optionsuserswitch1# set nonstop-bri
24、dgingNote: 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 interfaces and RSTP on Switch 2, copy the following commands and paste them into the switch terminal window:editse
25、t 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 c
26、amera-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 40 set interfaces ge-0/0/14 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/18 unit 0 family
27、 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-point set protocols rstp interface ge-0/0/18.0 cost 1000 set protocols rstp interface ge-0/0/18.0 mode point-to-point I
28、f 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:edit chassis redundancy set graceful switchoveredit protocols layer-2-control set commit synchronize edit system set
29、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# set voice-vlan description “Voice VLAN”userswitch2# set voice-vlan vlan-id 10userswitch2# set employee-vlan descrip
30、tion “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-description “Camera VLAN”userswitch2# set guest-vlan vlan-id 402. Configure the VLANs on the interfaces, including
31、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 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 protocols
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1