Chapter 7 Service Configuration
When configuring one port, only one of the three protections can
be configured: BPDU protection, root protection and loop protec-
tion.
Basic Configuration of STP
In the default configuration, the MSTP only has the instance with
ins_id as 0. This instance always exists and user cannot manually
delete it. This instance is mapped with VLANs 1 to 4094.
Command
Function
zte(cfg)#
clear stp instance
<
1-15
>
This clears the STP
instance.
zte(cfg)#
clear stp instance
<
0-15
>
port
<
portid
>
cost
This clears the cost
value of STP instance
port.
zte(cfg)#
clear stp instance
<
0-15
>
trunk
<
trunkid
>
cost
This clears the
trunkcost value of
instance.
zte(cfg)#
clear stp name
This clears the STP area
name.
zte(cfg)#
set stp
{
enable
|
disable
}
This enables or disables
STP. The default setting
is disabled.
zte(cfg)#
set stp name
<
name
>
This sets the area name
of MST. The size of the
name is no more than
32 characters.
zte(cfg)#
set stp forceversion
{
mstp
|
rstp
|
stp
}
This sets the forced STP
type to mstp/rstp/stp.
The default forced type
is mstp.
zte(cfg)#
set stp instance
<
0-15
>[
add
|
de
lete
]
vlan
<
vlanlist
>
This sets the mapping
relationship between
VLAN and instance.
zte(cfg)#
set stp instance
<
0-15
>
priority
<
0-61440
>
This sets the instance
bridge priority.
zte(cfg)#
set stp instance
<
0-15
>
port
<
portname
>
priority
<
0-240
>
This sets the instance
port priority.
zte(cfg)#
set stp instance
<
0-15
>
trunk
<
trunkid
>
priority
<
0-240
>
This sets the instance
trunk priority.
zte(cfg)#
set stp instance
<
0-15
>
port
<
portname
>
cost
<
1-200000000
>
This sets the instance
port cost.
zte(cfg)#
set stp instance
<
0-15
>
port
<
portname
>
root-guard
{
enable
|
disable
}
This enables/disables
instance port root
protection.
Confidential and Proprietary Information of ZTE CORPORATION
97