20-28
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
Enabling MSTP
Configuration procedure
Follow these steps to enable MSTP in system view:
To do...
Use the
command...
Remarks
Enter system view
system-view
—
Enable MSTP
stp enable
Required
MSTP is enabled globally by default.