beautypg.com

Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual

Page 151

background image

117

Figure 37 Network diagram

Configuration procedure

1.

Configure Device A:
# Create VLAN 100, and globally enable loop detection for the VLAN.

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

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 100

[DeviceA-GigabitEthernet1/0/2] quit

# Configure the global loop protection action as shutdown.

[DeviceA] loopback-detection global action shutdown

# Set the loop detection interval to 35 seconds.

[DeviceA] loopback-detection interval-time 35

2.

Configure Device B:
# Create VLAN 100.

system-view

[DeviceB] vlan 100

[DeviceB–vlan100] quit

GE1/0/1

Device A

Device B

Device C

GE1/0/2

VLAN 100