Download 6 Switch Stack System
Transcript
Chapter 4 Interface Configuration Step Command Function 2 This configures the loopback detection of Vlan in one port. ZXR10(config)#loop-detect interface <port-name> vlan <vlan-id>[enable | disable] 3 ZXR10(config)#loop-detect protect-interface <port-name><enable | disable> This configures the loopback detection port interface. When a switch detects a loopback of one port, switch deal with it according to parameter protect-interface. When parameter protect-interface is enable, switch sets a alarm it has detected a loopback but there will be no operation. When the parameter protect-interface is disable, the switch will shutdown the port. After enabling loopback detection, the default parameter protect-interface is disable. 4 ZXR10(config)#loop-detect reopen-time <interval> This configures the reopen-time when the port was shut down as a result of loopback detection. 5 ZXR10(config)#show loop-detect interface This enables the loopback detection function. 6 ZXR10(config)#show loop-detect interface-detail This displays detail of port which enables loopback detection. <port-name> 7 ZXR10(config)#show loop-detect protect-interface This displays the port which enables loopback detection protection. 8 ZXR10(config)#show loop-detect reopen-time This displays the reopen-time when one port has been shutdown in result of loopback detection. Port Loop Detection Example As shown in Figure 17, port gei_1/3 is connected to a computer, telnet into the switch A. Port gei_1/1 is in Vlan1 and Vlan2. Enable loopback detection in port gei_1/1. Loopback detection is done in Vlan1 and Vlan2 at the same time. Switch A is connected to Switch B with gei_1/1 port. Switch B shuts spanning-tree protocol and loop two ports with one network line. The two ports in loop and the port which connect to switch are in the same Vlans as gei_1/1. Confidential and Proprietary Information of ZTE CORPORATION 41