STP RSTP MSTP PVST+ѧϰ (3)
2007-09-11 19:46:38
Default STP Configuration
×Ô¶¨ÒåSTP ÅäÖÃ
Feature Default Value
¹¦ÄÜ È±Ê¡Öµ
Enable state STP enable for all VLANs
¿ªÆô״̬ ËùÓÐVLANĬÈÏ¿ªÆôSTP
Bridge priority 32768
ÍøÇÅÓÅÏȼ¶
STP port priority (configurable on 128
a per-port basis--used on LAN ports
configured as Layer2 access ports)
»ùÓÚ2²ã·ÃÎʶ˿ڵÄÿ¶Ë¿ÚÓÅÏȼ¶
STP prot cost (configurable on a per- Gigabit Ethernet :4
port basis--used on LAN ports Fast Ethernet :19
configured as Layer 2 access ports) Ethernet : 100
»ùÓÚ2²ã·ÃÎʶ˿ڵÄÿ¶Ë¿Ú³É±¾
STP VLAN port priority(configurble on 128
a per-VLAN basis--used on LAN ports
configured as Layer2 trunk ports)
»ùÓÚ2²ãtrunk¶Ë¿ÚµÄÿVLANÓÅÏȼ¶
STP VLAN port cost (configurable on a Gigabit Ethernet :4
per-VLAN basis--used on LAN ports Fast Ethernet :19
configured as Layer 2 trunk ports) Ethernet :100
»ùÓÚ2²ãtrunk¶Ë¿ÚµÄÿVLANÓÅÏȼ¶
Hello time 2 seconds
hello ʱ¼ä 2 Ãë
Forward delay time 15 seconds
ת·¢ÑÓʱ 15 Ãë
Maximum aging time 20 seconds
×î´óÉú´æÊ±¼ä 20 Ãë
Mode PVST
ģʽ ÿVLAN Éú³ÉÊ÷
Enabling STP
¿ªÆô STP
STP is enabled by default on VLAN 1 and on all newly created VLANs.
STP ÔÚVLAN1ºÍËùÓб»´´½¨µÄVLAN ÉÏ×Ô¶¯¿ªÆô¡£
You can eanble STP on a per-VLAN basis.The switch maintains a separate instance of STP for
each VLAN (except on VLANs on which you disable STP).
¿ÉÒÔ»ùÓÚVLAN ¿ªÆôSTP¡£»ùÓÚÿ¸öVLANʵÀýά»¤STP¡££¨³ý·ÇÄãÔÚVLANÉϹرÕSTP£©
To eanble STP on a per-VLAN basis, perform this task:
ÏÂÃæµÄÃüÁÆô»ùÓÚÿVLAN µÄSTP¡£
Router (config)#spanning-tree vlan vlan_id
Enable STP on a per-vlan basis. The vlan_id value can be 1 through 4096,except reserved VLANs
ÔÚ1µ½4096ÉÏ¿ªÆô³ý±£ÁôVLANÒÔÍâµÄÿVLAN STP¡£
Router(config)#default spanning-tree vlan vlan_id
Reverts all STP parameters to default values for the specified VLAN.
ÔÚÑ¡ÔñµÄVLANÉϻָ´ËùÓÐSTP×Ô¶¨ÒåÖµ
Router(config)#no spanning-tree vlan vlan_id
Disable STP on the specified VLAN; see the following Cautions for information regarding this command.
¹Ø±ÕÖ¸¶¨VLANÉϵÄSTP¡£×¢Òâ²é¿´ÃüÁîºóÏÔʾµÄ¾¯¸æÐÅÏ¢¡£
Router(config)#end
exits configuration mode
Í˳öÅäÖÃģʽ
Router# show spanning-tree vlan vlan_id
Verifies that STP is enabled.
ÑéÖ¤STP¿ªÆô
IEEE 802.1w RSTP
Ìæ»»¶Ë¿Ú ±¸·Ý¶Ë¿Ú
¶ªÆú״̬ ѧϰ״̬ ת·¢×´Ì¬
¿ìËÙ°æ±¾µÄPVST+ RPVST+ ÊÇRSTPʵÏֵİ´VLAN°æ±¾
RSTP Ö»¶Ô BPDU µÄ¸ñʽ×öÁËÉÙÁ¿µÄ±ä¸ü¡£
¶ÔBPDU ÖеĶ˿Ú״̬ºÍ½ÇÉ«½øÐбàÂë
´¦ÀíÌáÒéºÍж¨»úÖÆ
RSTP BPDU µÄÀàÐÍÊÇ2£¬°æ±¾ÊÇ2
7 ÍØÆÓ±ä¸ü
6 ÌáÒé
54 00 δ֪ 01 Ìæ´ú/±¸·Ý 10 ¸ù 11 Ö¸¶¨
3 ѧϰ
2 ת·¢
1 ж¨
0 ±ä¸üACK
±ßÔµ¶Ë¿Ú Á´Â·ÀàÐÍ
½»»»»úÄܹ»´Ó¶Ë¿ÚµÄË«¹¤Ä£Ê½ÖлñµÃÁ´Â·ÀàÐÍ£¬È«Ë«¹¤Ä£Ê½µÄ¶Ë¿Ú¾ÍÊǵ㵽µãµÄÁ´Â·¡£
|



7layer
²©¿Íͳ¼ÆÐÅÏ¢
ÈÈÃÅÎÄÕÂ
×îÐÂÆÀÂÛ
ÓÑÇéÁ´½Ó