Professional Documents
Culture Documents
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Skip to content Home About CCENT CCNA CCNA Security CCNP CCNP Security Cisco Certification ICND2 Security Specialist Certification Cisco Networking Blog This site is a collection of technical notes and practical exam advice for those persuing Cisco's Exam Certification. Feel free to leave your feedback by adding a comment or connect with me using the contact page. Enjoy! (Most of the contents publish here are shared from Other Sites for Educational Purpose, If somebody has objection please feel free to Contact Admin. ) adsense CCNA CCNP Cisco Packet Tracer Downloads Installing GNS3 JUNOS My Research video Posts from the Rapid Spanning Tree Category
Subscribe
14 Feb
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Discarding Merges the former disabled, blocking, and listening states Prevents the forwarding of frames Seen in both stable/active and synchronization/changes Learning Receives frames to populate the MAC table Seen in both stable/active and synchronization/changes Forwarding Forwarding ports determine the active topology An agreement process between switches occurs before frames can be forwarded Only seen in stable/active topologies Note: In every RSTP port state, BPDU frames are accepted and processed. Operational Status STP Port State RSTP Port State Port Included in Active Topology Enabled Blocking Discarding No Enabled Listening Discarding No Enabled Learning Learning Yes Enabled Forwarding Forwarding Yes Disabled Discarding Discarding No
Root port (active) On non-root bridges only Best port towards the root bridge Only one per switch Is always in forwarding state in an active/stable topology Designated port (active) On root and non-root bridges All ports on root bridge are designated ports
2 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Receives and forwards frames towards the root bridge as needed Only one per segment Alternate (inactive) Offers an alternate path towards the root bridge, but is in discarding state in an active topology Present on nondesignated switches and becomes designated if path fails Backup (inactive) An additional switch port on a redundant (and designated) link It has a higher port ID than its redundant peer port, so it assumes the discarding state Disabled port No role in spanning tree
3 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Synchronization
Synchronization is term used to describe the RSTP network convergence process. Nonedge ports begin in the discarding state. It then performs a handshake to determine the state of each end of the link. Each switch assumes that its port should become the designated port for the link, and so it sends a proposal message (a configuration BPDU) to its neighbor switch. When a switch recieves a proposal message, the following events occur: 1. If the sender has a superior BPDU, the local switch realizes that the sender should be the designated switch (thus have the designated port) and its own port should then become a new root port. 2. Before the switch agrees to anything, it must sncronize itself with the topology. 3. All nonedge ports are moved to discarding stae to prevent loops from forming. 4. An agreement message is sent back to the sender, affirming the new designated port choice. This also lets the sender switch know that it is in the process of syncronizing itself. 5. The root port is moved into forwarding state. The senders port can begin forwarding. 6. For each nonedge port in discarding state, a proposal message is sent to the respective neighbor. 7. An agreement message is expected and recieved. 8. The nonedge port is moved to forwarding state. Because the recipient of a sync prosal isolate itself from the rest of the network (all other nonedge ports are temporarily in blocking state), the nearest neighbors must also syncronize themselves. This creates a rippling wave of sayncronizing switches throughout the network which occurs very quickly. Because timers are not used, changes occur at the speed of BPDU transmissions.
Bridge IDs
In 802.1D, each switch was required to have a unique bridge ID, consisting of a priority value + MAC address. PVST+ and PVRST+ also require the BID, but they must also include VLAN information within the BID because a unique instance must run for each VLAN on each switch. Tp accomplish this, a portion of the
4 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
priority field is used to carry the VID. Old bridge priority: Priority value (default 32,768 increments of one) + MAC address New bridge priority: Priority value (default 32,768 increments of 4,096) + Extended system ID (12 bit field carrying the VID) + MAC Address Remember that if the priority value is not manually configured, the root bridge for each VLAN will be determined by lowest MAC address. Also, keep in mind that the priority value you configure is only half of the actual priority value used by the switch because the VLAN ID is also attached. Heres an example: Default priority field for VLAN 11: 32768 + 11 = 32779 Higher priority for VLAN 11: 28672 + 11 = 28683
Switch A Configuration: Switch A# conf t Switch A(config)# interface fa 0/1 Switch A(config-if)# spanningtree vlan 1-10 port priority 20
5 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Switch A(config-if)# switchport mode trunk Switch A(config-if)# interface fa 0/2 Switch A(config-if)# spanningtree vlan 11-20 port priority 20 Switch A(config-if)# switchport mode trunk In this example, VLANs 1-10 would traverse the left link (priority of 20 is less than default of 32)and use the right link as a backup only, while VLANs 11-20 would prefer the right uplink and use the left link as a backup only. This way both uplinks are being used, but only one for each VLAN. Make sure you understand how this works because this is a very common implementation design.
PortFast
Spanning Tree Portfast causes layer 2 switch interfaces to enter forwarding state immediately, bypassing the listening and learning states. It should be used on ports connected directly to end hosts like servers or workstations. Note: If it isnt enabled, DHCP timeouts can occur while STP converges, causing more problems. To configure PortFast Switch# conf t Switch (config)# int fa 3/1 Switch (config-if)# [no] spanning-tree portfast To verify PortFast on an interface: Switch# sh spanning-tree int fa 3/1 portfast PortFast can be configured globally on an access switch for all interfaces to save configurations. Also, it only applies to access interfaces, not trunks. Use the spanning-tree portfast trunk command if it is required on a trunk. If you do so, make sure to disable it explicitly on uplink interfaces. To configure PortFast globally: Switch# spanning-tree portfast default
RPVST+ Configuration
1. 2. 3. 4. Enable RPVST+ globally on all switches Switch(config)#spanning-tree mode rapid-pvst Designate and configire a primary root brigde Switch(config)#spanning-tree vlan 2 root primary Designate and configire a secondary root brigde Switch(config)#spanning-tree vlan 2 root secondary Verify the configuration Switch#show spanning-tree vlan 2
http://www.freeccnaworkbook.com/videos/
6 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Categories
adsense CCNA ICND1 Fundamentals of LANs The TCP/IP and OSI Networking Models CCNP CCNP Build Lists CCNP SWITCH (642-813) EtherChannel High-Availability Protocols GLBP HSRP Redundant Supervisor Engines VRRP Implementing DHCP in a Multilayer Switch Environment Planning Design Recommended Books Security Topics IP Source Guard and ARP Spoofing MAC Address Attacks Port-Based Authentication VACLs and DHCP Spoofing VLAN Attacks SNMP, Syslog, & IP SLA IP Service Level Agreement SNMP Syslog Spanning Tree Protocol (STP) Common Spanning Tree Multiple Spanning Tree Rapid Spanning Tree Spanning Tree Enhancements Troubleshooting Spanning Tree Switch Forwarding Architectures
7 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Vlans Inter-VLAN Routing Private Vlan Vlan Trunking Vlan VTP Vlans Implementation Wireless Cisco Unified Wireless Network Switch Configuration for Wireless WLAN Components CCNP Topologies Cisco Packet Tracer Downloads Installing GNS3 Cisco IOS Pagent Installing GNS3 in Win 7 What IS GNS3 JUNOS My Research Configuring Protected Ports Understanding Storm Control Unique MAC Address Configuration on VLAN or L3 Interfaces for Catalyst Switches Working with the Cisco IOS File System video
NetworkedBlogs Blog: network classes Cisco Topics: Cisco, networking, tutorial
Follow my blog
About
Did you know you can write your own about section just like this one? It's really easy. Head into the the Traction Options menu and check out the footer section. Type some stuff in the box, click save, and your new about section shows up in the footer.
Recent Posts
IP SLA with HSRP Installing GNS3 in Win 7 596 Juniper Network (JUNOS) adsense
8 of 9
8/6/2011 11:16 AM
http://www.networkclasses.in/category/ccnp/ccnp-switch-642-813/spanni...
Tags
EtherChannel
Traction Theme by The Theme Foundry Copyright 2011 Your Name Here. All rights reserved.
Content Protected Using Blog Protector By: PcDrome.
9 of 9
8/6/2011 11:16 AM