beautypg.com

Ii. configuration example, 5 configuring loop prevention, I. configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual

Page 212: 5 configuring loop prevention -37

background image

Operation Manual – MSTP
H3C S3100-52P Ethernet Switch

Chapter 1 MSTP Configuration

1-37

Table 1-32

Enable the root protection function in Ethernet port view

Operation

Command

Description

Enter system view

system-view

Enter Ethernet port view

Interface

interface-type

interface-number

Enable the root protection
function on the current
port

stp root-protection

Required
The root protection
function is disabled by
default.

II. Configuration example

# Enable the root protection function on Ethernet1/0/1.

1) Perform this configuration in system view.

system-view

[H3C] stp interface ethernet1/0/1 root-protection

2) Perform this configuration in Ethernet port view.

system-view

[H3C] interface ethernet1/0/1

[H3C-Ethernet1/0/1] stp root-protection

1.5.5 Configuring Loop Prevention

I. Configuration procedure

Table 1-33

Configure loop prevention

Operation

Command

Description

Enter system view

system-view

Enter Ethernet port view

interface

interface-type

interface-number

Enable the loop
prevention function on the
current port

stp loop-protection

Required
The loop prevention
function is disabled by
default.

II. Configuration example

# Enable the loop prevention function on Ethernet1/0/1.

system-view

[H3C] interface ethernet1/0/1

[H3C-Ethernet1/0/1] stp loop-protection