111
Displaying and maintaining loop detection
Execute
display
commands in any view.
Task Command
Display the loop detection configuration and status.
display loopback-detection
Loop detection configuration example
Network requirements
As shown in
, configure loop detection on Device A to meet the following requirements:
•
Device A generates a log as a notification.
•
Device A automatically shuts down the port on which a loop is detected.
Figure 35 Network diagram
Configuration procedure
1.
Configure Device A:
# Create VLAN 100, and globally enable loop detection for the VLAN.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] quit
[DeviceA] loopback-detection global enable vlan 100
# Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as trunk ports, and assign them to
VLAN 100.
[DeviceA] interface GigabitEthernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 100
[DeviceA-GigabitEthernet1/0/1] quit
Eth1/1
Device A
Device B
Device C
Eth1/2
VLAN 100
Содержание H3C S7500E-X
Страница 70: ...57 ...