交换机⽣成树协议STP的配置命令》打开或关闭STP
Catalyst 3548(Csico IOS系统)
命令格式:spanning-treevlan <vlan> //启⽤STP
nospanning-tree vlan <vlan> // 关闭STP
Switch-PHY-3548(config)#spanning-tree vlan 3
Switch-PHY-3548(config)#no spanning-tree vlan 3
超级恐怖Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:t spantree enable //启⽤STP
t spantree disable //关闭STP
Switch-PHY-6500>(enable)t spantree enable 3
VLAN 3 bridgespanning tree enabled
Switch-PHY-6500>(enable)
Switch-PHY-6500>(enable)t spantree disable 3
VLAN 3 bridgespanning tree disable
Switch-PHY-6500>(enable)
》配置根⽹桥和备份根⽹桥
Catalyst 3548(Csico IOS系统)
命令格式:spanning-treevlan <vlans> root primary //设置主ROOT(primaryroot)Switch-PHY-3548(config)#spanning-tree vlan 3 root primary
Switch-PHY-3548(config)#
命令格式:spanning-treevlan <vlans> root condary //设置备份ROOT(cond root)Switch-PHY-3548(config)#spanning-tree vlan 3 root condary
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree root <vlans> //设置主ROOT
Switch-PHY-6500>(enable)t spantree root 1,200-204
VLANS1,200-204 bridge priority t to 8189.
VLANS1,200-204 bridge max aging time t to 20.
VLANS1,200-204 bridge hello time t to 2.
VLANS1,200-204 bridge forward delay t to 15.
Switch isnow the root switch for active VLANS 1,200-204.
Switch-PHY-6500>(enable)
命令格式:tspantree root condary <vlans> //设置备份ROOT
Switch-PHY-6500>(enable)t spantree root condary 1,200-204
VLANS1,200-204 bridge priority t to 8189.
VLANS1,200-204 bridge max aging time t to 20.
VLANS1,200-204 bridge hello time t to 2.
VLANS 1,200-204 bridge forward delay t to15.
Switch isnow the root switch for active VLANS 1,200-204.
Switch-PHY-6500>(enable)
》配置⽣成树优先级(取值范围是0-61440,增量是4096)
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:spanning-treevlan <vlans> priority <0-61440>世界四大文明古国
Switch-PHY-3548(config)#spanning-treevlan 3 priority 8192
羽绒服怎么洗好
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree priority <priority>
Switch-PHY-6500>(enable)t spantree priority 8192
spantree bridgepriority t to 8192.
Switch-PHY-6500>(enable)
》配置BackboneFast⽣成树可选功能
Catalyst 6500(Catalyst OS(CatOS)系统)
海南省简称命令格式:spanning-treebackbonefast //允许backbonefast功能Switch-PHY-3548(config)#spanning-tree backbonefast
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree backbonefast enable //允许backbonefast功能
命令格式:tspantree backbonefast disable //不允许backbonefast功能Switch-PHY-6500>(enable)t spantree backbonefast enable
下颚骨错位Switch-PHY-6500>(enable)
大唐西域记》配置UplinkFast⽣成树可选功能
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:spanning-treeuplinkfast <cr>
spanning-tree uplinkfast max-update-rate <0-32000> <cr>
//注:max-update-rate的值是0-32000,单位是packet/s(每秒更新的包数)
Switch-PHY-3548(config)#spanning-tree uplinkfast 32000
Switch-PHY-3548(config)#spanning-tree uplinkfast
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree uplinkfast enable <cr>
tspantree uplinkfast enable rate <station_update_rate> <cr>
//注:<station_update_rate>的缺省值是15packets/100ms,单位是packet/ms.
Switch-PHY-6500>(enable)t spantree uplinkfastenable
VLANs 1-1005bridge priorityt to 49152.
The port costand portvlancost of all ports t to above 3000.
Station update rate t to 15 packets/100ms,
Uplinkfast all-portocols field t to off.
你的名字台词
Uplinkfastenable for bridge.
Switch-PHY-6500>(enable)
Switch-PHY-6500>(enable)t spantreeuplinkfast enable rate 40
VLANs 1-4096bridge priorityt to 49152.
中国画The port costand portvlancost of all ports t to above 3000.
Station update rate t to 40 packets/100ms,
Uplinkfast all-portocols field t to off.
Uplinkfastenable for bridge.
Switch-PHY-6500>(enable)
》配置PortFast⽣成树可选功能
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:spanning-treeportfast default
Switch-PHY-3548(config)#spanning-tree portfast default
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree portfast <mod/port> enable //打开portfast
tspantree portfast <mod/port> disable //关闭portfast
tspantree portfast <mod/port> default //缺省启⽤portfast
Switch-PHY-6500>(enable)t spantree portfast3/2 enable
Warning:Connecting Layer 2 devices to a fast start port can cau
temporaryspanning tree loops.U with caution.
Spantree ports3/2fast start enabled
Switch-PHY-6500>(enable)t spantree portfast 4/1-24 enable
Warning:Connecting Layer 2 devices to a fast start port can cau
temporaryspanning tree loops.U with caution.
Spantree ports3/2fast start enabled
Switch-PHY-6500>(enable)
》配置BPDUFilter⽣成树可选功能
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:spanning-treeportfast bpdufilter default <cr>
Switch-PHY-3548(config)#spanning-tree portfast bpdufilter default
Switch-PHY-3548(config)#
Catalyst 6500(Catalyst OS(CatOS)系统)
命令格式:tspantree portfast bpdu-filter enable<cr> //所有端⼝启⽤bpdu-filter
tspantree portfast bpdu-filter disable<cr> //关闭bpdu-filter
tspantree portfast bpdu-filter <mod/port> enable <cr> //打开bpdu-filter
tspantree portfast bpdu-filter <mod/port> disable <cr> // 关闭bpdu-filter
tspantree portfast bpdu-filter <mod/port>default <cr> //设置为缺省
Switch-PHY-6500>(enable)t spantree portfastbpdu-filter enable
Switch-PHY-6500>(enable)t spantree portfast bpdu-filter 3/1-24 enable
Warning:Portnabled with bpdu filter will not nd BPDUs and drop all received
BPDUs.You may cau loops in the bridge network if youmisu this feature.
Switch-PHY-6500>(enable)