4-24
Description
Use the
stp loop-protection
command to enable the loop guard function on the port(s).
Use the
undo stp loop-protection
command to restore the system default.
By default, the loop guard function is disabled.
Note that:
z
Configured in Ethernet interface view, the setting takes effect on the current interface only;
configured in port group view, the setting takes effect on all ports in the port group.
z
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate
interface. Configured on the member port in an aggregation group, the setting can take effect only
after the port leaves the aggregation group.
Examples
# Enable the loop guard function on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp loop-protection
stp max-hops
Syntax
stp max-hops
hops
undo stp
max-hops
View
System view
Default Level
2: System level
Parameters
hops
: Maximum hops, in the range of 1 to 40
Description
Use the
stp max-hops
command to set the maximum hops of the MST region on the device.
Use the
undo stp max-hops
command to restore the maximum hops to the default setting.
Setting the maximum hops of MST regions is to limit the sizes of MST regions. By default, the
maximum number of hops of an MST region is 20.
Related commands:
display stp
.
Examples
# Set the maximum hops of the MST region on the device to 35.
<Sysname> system-view
[Sysname] stp max-hops 35
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...