ECS2020 Series CLI Reference Guide-R04
87
NULL
Port configuration mode
Enter the port configuration mode and enable and disable the spanning tree function of the
port
Enable and disabled the spanning tree function of GigabitEthernet0/1:
ECS2020-10P(config-if-GigabitEthernet0/1)# spanning-tree enable
ECS2020-10P(config-if-GigabitEthernet0/1)# no spanning-tree enable
spanning-tree bpdu
Configures the ports to handle BPDU.
spanning-tree bpdu [filter|guard]
NULL
Port configuration mode
Enters the port configuration mode and set the port's BPDU processing mode.
Set the BPDU setting of GigabitEthernet0/1 to guard.
ECS2020-10P(config-if-GigabitEthernet0/1)# spanning-tree bpdu guard
Parameter
Parameter
Description
enable
Enables the port spanning tree function,
the default is all ports opened to using
the spanning tree
function.
Command
Command
Description
show spanning-tree interface gigabitEthernet
0/1
Display the spanning tree status and
configuration of
GigabitEthernet0/1.
Description
Parameter
Description
filter
Configures the port to neither receive nor
send BPDU messages.
guard
Do not receive BPDU messages.
Default
Mode
Usage
Example
Default
Mode
Usage
Example