Oracle® Switch ES2-72 和 Oracle Switch ES2-64 配置指南

退出打印视图

更新时间: 2015 年 4 月
 
 

配置 RSTP

此任务显示了在交换机目标上运行的 SEFOS 中的 RSTP 配置中的通信流。此任务将验证在拓扑中是否存在环路,如果检测到环路,则验证是否阻止了备用端口的通信。

有关此任务的拓扑,请参见Switching Feature Topology

  1. 配置初始设置。

    请参见Configure Initial Settings

  2. 配置 SEFOS-1 和 SEFOS-2 中的 VLAN 转发。

    请参见Configure VLAN Forwarding

  3. 在 SEFOS-1 上,在 RSTP 模式下验证端口状态。
    SEFOS-1# show spanning-tree
    Root Id          Priority   32768
                     Address    00:14:4f:6c:63:0f 
                     Cost       0
                     Port       0 [0]
                     Max Age 20 Sec, Forward Delay 15 Sec
     
    Spanning tree Protocol Enabled.
    Bridge is executing the rstp compatible Rapid Spanning Tree Protocol
    Bridge Id        Priority 32768
                       Address    00:14:4f:6c:63:0f
                       Cost       0
                       Port       0 [0]
                       Max Age 20 Sec, Forward Delay 15 Sec
     
    Spanning tree Protocol Enabled.
     
    Bridge is executing the rstp compatible Rapid Spanning Tree Protocol
    Bridge Id          Priority 32768
                       Address 00:14:4f:6c:63:0f
                       Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
                       Dynamic Path Cost is Disabled
                       Dynamic Path Cost Lag-Speed Change is Disabled
    Name              Role         State        Cost     Prio   Type
    ----              ----         -----        ----     ----   ----
    X10/1            		Designated 	 Forwarding   2000     128 	 P2P
    X10/2 	           	Designated 	 Forwarding   2000     128 	 P2P
    X10/21           		Designated 	 Forwarding   2000     128 	 P2P
    X10/22           		Designated 	 Forwarding   2000     128  	P2P
    ...
    
  4. 在 SEFOS-2 上,在 RSTP 模式下验证端口状态。
    SEFOS-2# show spanning-tree
    Root Id         Priority   32768
                    Address    00:14:4f:6c:63:0f
                    Cost       4000
                    Port       X10/1
                    Max Age 20 Sec, Forward Delay 15 Sec
     
    Spanning tree Protocol Enabled.
     
    Bridge is executing the rstp compatible Rapid Spanning Tree Protocol
    Bridge Id       Priority 32768
                    Address 00:14:4f:6c:6e:0e
                    Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
                    Dynamic Path Cost is Disabled
                    Dynamic Path Cost Lag-Speed Change is Disabled
    Name              Role         State        Cost     Prio   Type
    ----              ----         -----        ----     ----   ------
    X10/1            		Designated  Forwarding   2000     128 	 P2P
    X10/21           		root	        Forwarding   2000     128 	 P2P
    X10/22           		Alternate   Discarding   2000     128 	P2P
    ...
    
  5. 从主机 A 对主机 C 执行 ping 命令。
    # ping -s 20.0.0.30
    

    通信将通过 SEFOS-1 上的 xl-ethernet 0/21 端口转发到 SEFOS-2 端口 21。

  6. 从 SEFOS-2 关闭 xl-ethernet 0/21 端口并验证端口状态。
    SEFOS-2# configure terminal
    SEFOS-2(config)# int xl 0/1
    SEFOS-2(config)# shut
    SEFOS-2(config)# exit
    SEFOS-2# show spanning-tree
    Root Id         Priority   32768
                    Address    00:14:4f:6c:69:0f
                    Cost       4000
                    Port       Xl0/2
                    Max Age 20 Sec, Forward Delay 15 Sec
     
    Spanning tree Protocol Enabled.
     
    Bridge is executing the rstp compatible Rapid Spanning Tree Protocol
    Bridge Id       Priority 32768
                    Address 00:14:4f:6c:6e:0e
                    Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec
                    Dynamic Path Cost is Disabled
                    Dynamic Path Cost Lag-Speed Change is Disabled
    Name              Role         State        Cost     Prio   Type
    ----              ----         -----        ----     ----   ------
    Xl0/2             root         Forwarding   2000     128    P2P
    Xl0/25            root         Forwarding   2000     128    P2P
    Xl0/25            root         Forwarding   2000     128    P2P
    ...
    
  7. 从主机 A 对主机 C 执行 ping 命令。
    # ping 20.0.0.30
    

    通信应当通过 SEFOS-1 上的 xl-ethernet 0/2 端口进行转发。如果 RSTP 正在工作,则端口状态会更改。

相关信息