Chapter 34: Spanning Tree Commands
– 1034 –
C
OMMAND
U
SAGE
•
An edge port should only be connected to end nodes which do not
generate BPDUs. If a BPDU is received on an edge port, this indicates
an invalid network configuration, or that the switch may be under
attack by a hacker. If an interface is shut down by BPDU Guard, it must
be manually re-enabled using the
no
spanning-tree spanning-disabled
command if the auto-recovery interval is not specified.
•
Before enabling BPDU Guard, the interface must be configured as an
edge port with the
command. Also note that if
the edge port attribute is disabled on an interface, BPDU Guard will also
be disabled on that interface.
E
XAMPLE
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree edge-port
Console(config-if)#spanning-tree bpdu-guard
Console(config-if)#
R
ELATED
C
OMMANDS
spanning-tree edge-port (1035)
spanning-tree spanning-disabled (1043)
spanning-tree cost
This command configures the spanning tree path cost for the specified
interface. Use the
no
form to restore the default auto-configuration mode.
S
YNTAX
spanning-tree
cost
cost
no spanning-tree cost
cost
- The path cost for the port. (Range: 0 for auto-configuration,
1-65535 for short path cost method, 1-200,000,000 for long path
cost method)
1
D
EFAULT
S
ETTING
By default, the system automatically detects the speed and duplex mode
used on each port, and configures the path cost according to the values
shown below. Path cost “0” is used to indicate auto-configuration mode.
Table 34-2: Recommended STA Path Cost Range
Port Type
Short Path Cost
(IEEE 802.1D-1998)
Long Path Cost
(IEEE 802.1D-2004)
Ethernet
50-600
200,000-20,000,000
Fast Ethernet
10-60
20,000-2,000,000
Gigabit Ethernet
3-10
2,000-200,000
1. Use the
command to set the path cost method.
The range displayed in the CLI prompt message shows the maximum value for path
cost. However, note that the switch still enforces the rules for path cost based on the
specified path cost method (long or short).
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...