Configuration example – H3C Technologies H3C S3100 Series Switches User Manual

Page 247

Advertising
background image

1-28

You can determine whether or not the link connected to a port is a point-to-point link in one of the
following two ways.

Setting the Link Type of a Port to P2P in system view

Follow these steps to specify whether the link connected to a port is point-to-point link in system view:

To do...

Use the command...

Remarks

Enter system view

system-view

Specify whether the link
connected to a port is
point-to-point link

stp interface

interface-list

point-to-point

{ force-true |

force-false

| auto }

Required
The auto keyword is adopted
by default.

Setting the Link Type of a Port to P2P in Ethernet port view

Follow these steps to specify whether the link connected to a port is point-to-point link in Ethernet port
view:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter Ethernet port view

interface

interface-type

interface-number

Specify whether the link
connected to a port is a
point-to-point link

stp point-to-point

{ force-true

| force-false | auto }

Required
The auto keyword is adopted
by default.

z

If you configure the link connected to a port in an aggregation group as a point-to-point link, the
configuration will be synchronized to the rest ports in the same aggregation group.

z

If an auto-negotiating port operates in full duplex mode after negotiation, you can configure the link
of the port as a point-to-point link.

After you configure the link of a port as a point-to-point link, the configuration applies to all the MSTIs the
port belongs to. If the actual physical link of a port is not a point-to-point link and you forcibly configure
the link as a point-to-point link, loops may occur temporarily.

Configuration example

# Configure the link connected to Ethernet 1/0/1 as a point-to-point link.

1) Perform this configuration in system view

<Sysname> system-view

[Sysname] stp interface Ethernet 1/0/1 point-to-point force-true

2) Perform this configuration in Ethernet port view

<Sysname> system-view

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] stp point-to-point force-true

Advertising