Professional Documents
Culture Documents
30-10-2020-5PM
1
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Trainer Profile
Work Experience : (5 Years of Experience in MNC as a Network Engineer)
Trained More than 25000 people CCNA,CCNP(R&S) and CCNA,CCNP(SP), CCNA,CCNP (Enterprise), Security, Palo Alto, Checkpoint, AWS,
Python
Certificate Examinations
• CCIE (Written - Certified) (R&S)
• CCNP Certified (Cisco Certified Network Professional) (Cisco ID- CSCO12744986) (R & S)
• CCNA Certified (Cisco Certified Network Associate) (Cisco ID- CSCO12744986) (R & S)
• CCNA (SP) Training completed
• CCNP (SP) Training Completed
• CCNA (Enterprise) training completed
• CCNP (Enterprise) training completed
• CCNA (Security) Training Completed
• CCNP (Security) Training completed
• Amazon AWS (Training Completed)
• Python core, advance and Automation training completed
• Palo Alto Training Completed
• Check point Training Completed 2
STP & RSTP
3
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Webinar Objectives
4
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Bridging loops
5
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Bridging loops (solution)
6
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP
► STP stop the loops which occurs when you have multiple links between switches
► STP stops Broadcast Storms, Multiple Frame Copies & Database instability.
► STP is a open standard (IEEE 802.1D)
► STP is enabled by default on all Cisco Catalyst switches
7
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP Works
STP uses the Spanning-Tree Algorithm (SPA) to create a topology database of the
network. To prevent loops, SPA places some interfaces in forwarding state and some
interfaces in blocking state. All switches in a network elect a root bridge. All working
interfaces on the root bridge are placed in forwarding state.
8
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
What is Bridge Protocol Data Unit (BPDU) frame
• The Spanning Tree Protocol (STP) enabled switches in a redundant Local Area
Network (LAN) need to exchange information between each other for Spanning Tree
Protocol (STP) to work properly.
• Bridge Protocol Data Units (BPDUs) are messages exchanged between the switches
inside an interconnected redundant Local Area Network (LAN). Bridge Protocol Data
Units (BPDUs) frames contain information regarding the Switch ID, originating switch
port, MAC address, switch port priority, switch port cost etc.
• Bridge Protocol Data Units (BPDUs) frames are sent out as multicast messages
regularly at multicast destination MAC address 01:80:c2:00:00:00
• When Bridge Protocol Data Units (BPDUs) are received, the Switch uses a
mathematical formula called the Spanning Tree Algorithm (STA) to know when there
is a Layer 2 Switch loop in network and determines which of the redundant ports
needs to be shut down.
9
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Select Root Bridge
10
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How to Elect Root Bridge?
All Bridges (Switches) are assigned a numerical value called bridge priority. The Bridge
priority value is used to find the Bridge ID.
The Bridge ID. is made from two values.
• The Switch Priority, which is a numerical value defined by IEEE 802.1D, which is equal
to 32,768 by default.
• The MAC Address of the Switch.
If all the Switches in your Local Area Network (LAN) are configured with the default
Switch Priority (32,768), the Switch MAC address will become the decisive factor in
electing the Root Bridge. The Bridge with the lowest MAC Address is then elected as
Root Bridge.
11
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
What is a RP, DP, NDP?
• A Root Port is the port on the Switch with the least cost from the "Switch" to the
Root Bridge.
• A Designated Port is the port on a "Local Area Network (LAN) segment" with the
least cost to the root bridge.
• The other end of a Designated Port is called as Non Designated Port (marked as
NDP), if it is NOT a Root Port. Non Designated Port will be always in Blocking State,
to avoid Layer 2 Switching loops.
• Remember, a Root Port can never be a Designated Port and also there cannot be
any Root Port on a Root Bridge. All the ports on a Root Bridge are Designated Ports.
12
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Select Root Bridge (Cont.)
13
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Bandwidth & Cost
14
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Different Port States
15
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Different Port States
Disabled State
A port in the disabled state does not participate in frame forwarding or the operation
of STP because a port in the disabled state is considered non-operational.
Blocking State
The Switch Ports will go into a blocking state at the time of election process, when a
switch receives a BPDU on a port that indicates a better path to the Root Switch (Root
Bridge), and if a port is not a Root Port or a Designated Port.
A port in the blocking state does not participate in frame forwarding and also discards
frames received from the attached network segment. During blocking state, the port is
only listening to and processing BPDUs on its interfaces. After 20 seconds, the switch
port changes from the blocking state to the listening state.
16
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Different Port States
Listening State
After blocking state, a Root Port or a Designated Port will move to a listening state. All
other ports will remain in a blocked state. During the listening state the port discards
frames received from the attached network segment and it also discards frames
switched from another port for forwarding. At this state, the port receives BPDUs from
the network segment and directs them to the switch system module for processing.
After 15 seconds, the switch port moves from the listening state to the learning state.
17
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Different Port States
Learning State
A port changes to learning state after listening state. During the learning state, the port
is listening for and processing BPDUs . In the listening state, the port begins to process
user frames and start updating the MAC address table. But the user frames are not
forwarded to the destination. After 15 seconds, the switch port moves from the
learning state to the forwarding state
18
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Different Port States
Forwarding State
A port in the forwarding state forwards frames across the attached network
segment. In a forwarding state, the port will process BPDUs , update its MAC
Address table with frames that it receives, and forward user traffic through the
port. Forwarding State is the normal state. Data and configuration messages are
passed through the port, when it is in forwarding state.
19
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
What is extended system id in stp
The Bridge Priority value and the Extended System ID extension together make up a 16
bit (2-byte) value. The Bridge Priority making up the left most bits, is a value of 0 to
61440. The Extended System ID is a value of 1 to 4095 corresponding to the respective
VLAN participating in STP.
20
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning-Tree Operation
21
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
22
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
23
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
24
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
25
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
26
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
27
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
28
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
29
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
30
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
31
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
32
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
How STP works
Root bridge - central switch all the traffic forwarded from PcA to PcB
33
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU
► All switches exchange information through what is called as Bridge Protocol Data Units (BPDUs)
► BPDUs are sent every 2 sec and dead = 20 sec
► A BPDU contains information regarding ports, switches, port priority and addresses.
34
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP Convergence
35
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
# Show Spanning-tree
36
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
37
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
38
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
39
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
TASK: • To verify the STP convergence process shutdown the SW1 eth0/1 port and verify with Show
spanning-tree
Swl(config)#int eth0/1
Swl(config-if)#shutdown
Once eth0/1 interface of SW1 or SW2 goes down, the alternate port f0/1 (SW3) comes to forwarding
after delay of 50 sec
• BLK 20 sec
• LSN 15 sec
• LRN 15 sec
Swl(config)#int f0/1
Swl(config-if)#shutdown
SW1# Sh spanning tree
40
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
TASK: Configure eth0/1 port of SW1 back to normal state (no shutdown)
41
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
TASK:
• Configure SW2 to be the Root Bridge for Vlan1 by changing the Priority value
• Verify the STP port states changes once we change the Root bridge
42
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
43
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
By default STP is enabled for all active VLANs and on all ports of a switch. STP should remain
enabled in a network to prevent bridging loops from forming.
• However, you might find that STP has been disabled in some way. If an entire instance of STP has
been disabled, you can reenable it with the following global configuration command:
• if STP has been disabled for a specific VLAN on a specific port, you can reenable it with the
following interface configuration command:
44
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Tuning STP (cost/proirity/Timers)
45
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Tuning STP (cost/proirity/Timers)
46
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
TASK:
• Connect Swl and sw2 as per the digram on eth0/1, eth0/0 ports.
• Configure swl to be the root bridge for all vlans (also future vlan).
• Find what the root ports and Designated and blocking ports.
47
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
48
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
• As per the default configurations sw2 eth0/1 goes in to blocking state based on stp
root port, and designtated port conditions.
49
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
50
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
51
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
SW2(config)#int eth0/1
SW2(config-if)#no spanning-tree cost 4
SW2(config-if)# end
52
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
53
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
SW1(config)#int eth0/1
SWl(config-if)#spanning-tree port-priority ?
<0-240> port priority in increments of16
SWl(config-if)#spanning-tree port-priority 0
SW1(config-if)#end
54
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
55
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
56
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
57
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
Downstream devices from the root bridge inherit the timers configured on the root.
SW1(config)#spanning-tree vlan1-4094 hello-time 3
SW1(config)#spanning-tree vlan1-4094 forward-time10
SW1(config)#spanning-tree vlan1-4094 max-age10
SW1(config)#end
58
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
59
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Lab: verifying spanning-tree
60
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Hierarchical Campus Model
61
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Hierarchical Campus Model
Change Priority Value *:• Priority values can be only multiples of 4096
62
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP: Selecting Root Bridge
OR
NOTE:
•Primary reduces priority by 8192 from default priority
•secondary reduces priority 4096 from default priority
63
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
64
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
65
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
66
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
67
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
68
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
• In this example, SW1 is the root Bridge and you can verify the root ports and
alternate ports in the above outputs
• As per your topology it can vary as it based onMac- address (vary from switch to
switch)
69
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
70
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
71
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
SW1(config)#vlan10
SWl(config-vlan)#vlan 20
SW1(config-vlan)#vlan 30
SW1(config-vlan)#vlan 40
SW1(config-vlan)#exit
72
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
73
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
TASK: • Configure SW1 should be the Root Bridge for VLAN10,20 and Backup for VLAN
30,40
• Configure SW2 should be the Root Bridge for VLAN 30,40 and Backup for VLAN10,20
Note: • By default here SW1 will be the root bridge for all vlan as the priority value is
same, and Swl is having the least MAC address of all ( this may vary in your labs)
74
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
75
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
76
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
You can configure a Catalyst switch to become the root bridge using one of two
methods,
2. Causing the would-be root bridge switch to choose its own priority, based on some
assumptions about other switches in the network using primary and secondary
options. You can accomplish this with the following command:
77
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
• The bridge-priority value defaults to 32,768, but you can also assign a value of 0 to
65,535.
• If STP extended systemID is enabled (default is most switches),the default bridge-
priority is 32,768 plus the VLAN number.
• In that case, the value can range from 0 to 61,440, but only as multiples of 4096. A
lower bridge priority is preferable.
• If the current root priority is less than that,the local switch sets its priority to 4096
less than the current root For the secondary root bridge, the root priority is set to an
artificially low value of 28,672.
78
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
OnSWl
SW1(config)#spanning-tree vlan10,20 priority 0
SW1(config)#spanning-tree vlan 30,40 priority 4096
OR
SWl(config)#spanning-tree vlan10,20 root primary
SWl(config)#spanning-tree vlan 30.40 root secondary
On SW2
SW2(config)#spanning-tree vlan 30,40priority 0
SW2(config)#spanning-tree vlan10,20 priority 4096
OR
SW2(config)#spanning-tree vlan 30,40 root primary
SW2(config)#spanning-tree vlan 10.20 root secondary
79
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
TASK: • Check SW1 will be primary root for vlan 10 and 20 and not root bridge for vlan 30 and 40. But SW2 will be the
primary root switch for vlan 30,40 and not root for vlan 10, 20.
80
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
TASK: • Check SW1 will be primary root for vlan 10 and 20 and not root bridge for vlan 30 and 40. But SW2 will be the
primary root switch for vlan 30,40 and not root for vlan 10, 20.
81
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
TASK: • Check SW1 will be primary root for vlan 10 and 20 and not root bridge for vlan 30 and 40. But SW2 will be the
primary root switch for vlan 30,40 and not root for vlan 10, 20.
82
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: Per VLAN STP
TASK: • Check SW1 will be primary root for vlan 10 and 20 and not root bridge for vlan 30 and 40. But SW2 will be the
primary root switch for vlan 30,40 and not root for vlan 10, 20. (Check the port status also.)
83
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning Tree Root Port selection
1. Select the port connected to the path with the lowest accumulated Spanning Tree
Path Cost to the Root Bridge as the Root Port, when a Non-Root Switch has multiple
paths to reach the Root Switch.
84
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning Tree Root Port selection
2. If multiple paths are available to reach the Root Bridge with the same
accumulated Spanning Tree Path Cost in a Non-Root Switch, select the port
connected to the neighbor switch which has the lowest Switch ID value as the Root
Port.
85
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning Tree Root Port selection
3. If all the multiple paths go through the same neighboring switch to reach the Root
Bridge, Non-Root Switch will select the local port which receives the lowest port
Spanning Tree Port Priority value from neighbor Switch as the Root Port.
86
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning Tree Root Port selection
4. If the received Spanning Tree Port Priority value values are the same between the
connecting ports to reach the Root Bridge, Non-Root Switch will select the port which
receives the lowest physical port number from neighbor Switch as the Root Port.
87
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Types of Spanning-Tree Protocols
Spanning-tree standards:
• IEEE 802.1D: The legacy standard for bridging and STP
- CST: Assumes one spanning-tree instance for the entire bridged network,
regardless of the number of VLANs
88
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Types of Spanning-Tree Protocols (Cont.)
89
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Types of Spanning-Tree Protocols (Cont.)
• 802.1s (MSTP): Maps multiple VLANs into the same spanning-tree instance
• 802.1w (RSTP): Improves convergence over 1998 STP by adding roles to
ports and enhancing BPDU exchanges
• Rapid PVST+: A Cisco enhancement of RSTP using PVST+
90
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Comparison of Spanning-Tree Protocols
91
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Comparison of Spanning-Tree Protocols
92
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
What is EtherChannel
93
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Introducing EtherChannel
94
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Introducing EtherChannel (Cont.)
95
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Some guidelines for EtherChannels
96
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Some guidelines for EtherChannels
97
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
EtherChannel Protocols
• There are two protocols used for negotiating EtherChannel and Link Aggregation.
We can configure Etherchannel in three ways in Cisco Switches.
1- Port Aggregation Protocol (PAgP) - Cisco Proprietary protocol
2- IEEE Link Aggregation Protocol (LACP) - Industry Standard
3- Manual Etherchannel Configuration - Without using any negotiation protocol
listed above
98
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Port Aggregation Protocol (PAgP) Modes
• Auto Mode: Auto mode in Port Aggregation Protocol (PAgP)) does not initiate the
negotiation, but responds to Port Aggregation Protocol (PAgP) packets initiated by
other end. Auto mode in Port Aggregation Protocol (PAgP) does not start Port
Aggregation Protocol (PAgP) packet negotiation
• Desirable mode: Desirable mode in Port Aggregation Protocol (PAgP) initiates the
negotiation and tries to form EtherChannel with other end.
99
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Port Aggregation Protocol (PAgP) Modes (Cont.)
100
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Link Aggregation Control Protocol (LACP)
• Active Mode: Active Mode in Link Aggregation Control Protocol (LACP) initiates the
negotiation and tries to form EtherChannel with other end.
• Passive Mode: Passive Mode in Link Aggregation Control Protocol (LACP) does not
initiate the negotiation, but responds to Link Aggregation Control Protocol (LACP)
packets initiated by other end.
101
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Link Aggregation Control Protocol (LACP) (Cont.)
Passive Mode in Link Aggregation Control Protocol (LACP) does not start Link
Aggregation Control Protocol (LACP) packet negotiation.
102
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
EtherChannel "on" mode
• EtherChannel "on" mode makes the interface into an EtherChannel without any
negotiation protocols like Port Aggregation Protocol (PAgP) or Link Aggregation
Control Protocol (LACP). When using a EtherChannel "on" mode, EtherChannel
will be created only when another interface group in EtherChannel "on" mode.
103
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
EtherChannel "on" mode (Cont.)
• Switch interfaces exchange Port Aggregation Protocol (PAgP) packets only with
partner interfaces configured in the auto or desirable modes. Switch interfaces
exchange Link Aggregation Control Protocol (LACP) packets only with partner
interfaces configured in the active or passive modes. Interfaces configured in the
"on" Channel mode do not exchange Port Aggregation Protocol (PAgP) or Link
Aggregation Control Protocol (LACP).
104
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel
105
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel Port Aggregation Protocol (PAgP)
106
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel Port Aggregation Protocol (PAgP) (Cont..)
107
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel Port Aggregation Protocol (PAgP) (Cont..)
108
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel
109
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel (Cont.)
110
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel (Cont.)
Port-channel: Po1
------------
Age of the Port-channel = 00d:00h:05m:15s
Logical slot/port = 2/1 Number of ports = 4
GC Prepared
= 0x00000000 HotStandByMail:
by: Jagdish Rathod
portjagdishrj01@gmail.com
= null Mo: 7259459745/8779606604
111
Verify EtherChannel (Cont.)
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/1 Desirable-Sl 0
0 00 Fa0/3 Desirable-Sl 0
0 00 Fa0/4 Desirable-Sl 0
0 00 Fa0/2 Desirable-Sl 0
Time since last port bundled: 00d:00h:05m:15s Fa0/2 112
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel Link Aggregation Control Protocol (LACP)
114
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configure EtherChannel Link Aggregation Control Protocol (LACP)
(Cont..)
Step 2: Configure Lacp protocol on SW2
SW2(config)# interface range FastEthernet0/1 -4
SW2(config-if-range)# channel-group 1 mode Active
SW2(config-if-range)# channel protocol lacp
SW2(config-if-range)# exit
115
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel
116
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel (Cont.)
117
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel (Cont.)
Port-channel: Po1
------------
118
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Verify EtherChannel (Cont.)
Protocol = LACP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Fa0/1 Desirable-Sl 0
0 00 Fa0/3 Desirable-Sl 0
0 00 Fa0/4 Desirable-Sl 0
0 00 Fa0/2 Desirable-Sl 0
Time since last port bundled: 00d:00h:05m:19s Fa0/2
SW1#
119
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
EtherChannels Load Balancing
Switch(config)#port-channeIload-balance ?
• dst-ip Dst IP Addr
• dst-mac DstMac Addr
• src-dst-ip Src XOR Dst IP Addr
• src-dst-mac Src XOR Dst Mac Addr
• src-ip Src IP Addr src-mac
• Src Mac Addr
120
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruing Ether-Channel Using Pagp Protocol Negotiation
121
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruing Ether-Channel Using Pagp Protocol Negotiation
TASK • Configure the Four links (f0/20 - 23) should appear as one logical link
• Ports should negotiate using Cisco Proprietary method.
SW1
SW1(config)#int range f0/20 – 23
SW1(config-if-range)#channel-protocol pagp
SW1(config-if-range)#channel-group10 mode desirable
SW2
SW2(config)#int range f0/20 - 23
SW2(config-if-range)# channel-protocol pagp
SW2(config-if-range)# channel-group10 mode auto
122
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruring Ether-Channel Using Pagp Protocol Negotiation
123
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruring Ether-Channel Using Pagp Protocol Negotiation
124
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruring Ether-Channel Using Pagp Protocol Negotiation
125
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : Configruring Ether-Channel Using Pagp Protocol Negotiation
• Any changes applied on the port channel automatically effect on all the physical interfaces
• Port channel will work as long as at least one interface in the group is up and running
126
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Layer 3 Ether-Channel
• In order to configure layer 3 port channel interface, the member ports must be configured
with no switchport command before using port-channel commands.
• If the channel-group command is issued before the no switchport command on the
physical interfaces, the logical port-channel interface will be created as the default of Layer
2, and this cannot be changed afterward.
• To fix this problem, simply issue the no switchport command before the channelgroup
command.
• If configured properly, the state of the port-channel from the show etherchannel summary
command should show RU for routed and in use.
127
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP Link Convergence
128
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning tree Portfast
NOTE:
❖ PortFast should be used only when connecting a single end station to a switch port.
❖ If you enable PortFast on a port connected to another networking device, such as a
switch, you can create network loops
129
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Portfast Configuration
OR
130
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
131
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
TASK:
• Connect 3 PC in the LAN as per the Diagram.
• Shutdown the ports on Switch &reconfigure No shutdown and observer the ports going through
LSN & LRN stages of STP process before they come to FWD...
132
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
133
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
• All the ports connecting to end devices go through listening and Learning states by default
before they comes to Forwarding State
• This is the default STP Loop prevention mechanism on switches
• Here we want these access ports to bypass the LSN, LRN stages and transition to FWD
immediately
• To do this we configure portfast on these ports ( used only on access ports)
134
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
• All the ports connecting to end devices go through listening and Learning states by
default before they comes to Forwarding State
• This is the default STP Loop prevention mechanism on switches
• Here we want these access ports to bypass the LSN, LRN stages and transition to FWD
immediately
• To do this we configure portfast on these ports ( used only on access ports)
135
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
TO verify
Switch(config)#interface fast0/1
Switch(config-if-range)#shutdown
Switch(config-if-range)#no shutdown
136
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
Once port fast configured on the interfaces all the ports transitions to Forwarding
immediately without LSN, LRN states.
TASK: • Configure Switch to ensure that all future access ports should bypass LSN, LRN
states using single command.
137
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: STP Portfast
138
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Loss of BPDU Trouble shooting of BPDU
139
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Guard – On port fast –if bpdu received put in error disable mode
140
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Guard – On port fast –if bpdu received put in error disable mode
141
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Guard (port fast – bpdu received – put port in error disable mode)
OR
142
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Guard verification
143
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU Guard:
TASK:
• Connect link between SW1 and SW2 eth0/0 and shutdown all remaining ports.
• Configure SW2 eth0/0 as layer 3 ports to test BPDU guard feature.
• Enable BPDU Gaurd and portfast feature on SW1.
144
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU Guard:
SW2(config)#int eth0/0
SW2(config-if)#no switchport
SW2(config-if)#ip address10.0.0.1 255.0.0.0
SW2(config-if)#exit
SWl(config)#vlan 10
SW1(config-vlan)#exit
SW1(config)#int eth0/0
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan10
SW1(config-if)#spanning-tree portfast
SW1(config-if)#spanning-tree bpduguard enable
SW1(config-if)#exit
145
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU Guard:
146
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU Guard:
TASK: Reconfigure eth0/0 port on sw2 back to layer 2 port ( adding switchport)
SW2(config)#int eth0/0
SW2(config-if)#switchport
SW2(config-if)#exit
147
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU Guard:
TASK: Configure eth-0/0 port back to layer 3 port and ensure that port comes back up.
SW2(config-if)#int eth0/0
SW2(config-if)#no switchport
SW2(config-if)#ip address10.0.0.1 255.0.0.0
SW2(config-if)#exit
SW2(config)#int fO/19
SW2(config-if)#shutdown
SW2(config-if)#no shutdown
SW2(config-if)#end
TASK:
• Configure Err-disable recovery for BPDU GAURD such that port should come up automatcially after 60
sec of err-disable state.
149
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Filter
150
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Filtering (NO BPDU - STP disable) – Not used in LIVE Env.
151
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
•BPDU Filter is used to terminate the STP domain, but it has a different functionality:
• However, behavior is different based on this; this was not the case For BPDU Guard, this had the same
functionality regardless of how it was enabled.
•When configured at the interface level, BPDU Filter silently drops all received inbound BPDUs and does
not send any outbound BPDUs on the port.
•There is no violation option for BPDU Filter, so the port never goes into err-disabled state.
• BPDU Filter needs to be carefully enabled at the port level, because it will cause permanent loops if on
the other end of the link a switch is connected and the network is physically looped; in this case, STP will
not be able to detect the loop and the network will become unusable within seconds.
152
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Filtering (NO BPDU - STP disable) – Not used in LIVE Env.
❖ The interface doesn't send any BPDU and ignores the received ones.
❖ The port is not shutdown and this basically disables spanning-tree on the interface.
153
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
154
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
TASK:
• Connect link between SW1 and SW2 fO/1 and shutdown all remaining ports.
• Configure sw2 fO/1 as layer 3 ports to test BPDU guard feature.
• Enable BPDU Gaurd and portfast feature on swl.
SW2(config)#int eth0/0
SW2(config-if)#no switchport
SW2(config-if)#ip address10.0.0.1 255.0.0.0
SW2(config-if)#exit
SW1(config)#vlan10
SW1(config-vlan)#exit
SW1(config)#int eth0/0
SWl(config-if)#switchport mode access
SWl(config-if)#switchport access vlan10
SW1(config-if)#spanning-tree portfast
SW1(config-if)#spanning-tree bpdufilter enable 155
Prepared by: Jagdish Rathod
SW1(config-if)#exit Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
156
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
TASK: Configure SW2 eth0/0 as layer 2 ports so that it can start sending BPDU
SW2(config)#int eth0/0
SW2(config-if)#switchport
SW2(config-if)#end
157
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: BPDU filter (interface level)
TASK:
BPDU global configuration mode:
• Remove the Bpdu filter on the interface and enable it globally.
• Configure portfast on eth0/0 on Swl for verification.
SW1(config)#int eth0/0
SW1(config-if)#spanning-tree portfast
SW1(config-if)#no spanning-tree bpdufilter enable
SW1(config-if)#exit
SW1(config)#spanning-tree portfast bpdufilter default
SW1(config)#end
158
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Root Guard – No Old switch will be root - "root-inconsistent"
159
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Root Guard
160
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Root Guard
161
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Root Guard
162
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Root Guard
163
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Configuring Root Guard
164
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
• Root Guard is similar to the BPDU Guard feature in the manner in which it is used to detect STP packets and
disable the interface they were received on.
• The difference between them is that with Root Guard, the interface is only logically disabled (via Root
Inconsistentstate) if a superior BPDU is received on the port with Root Guard enabled.
• Root Inconsistentstate is similar to blocking state, in that BPDUs are not sent outbound but accepted inbound,
and of course all received frames are dropped.
• The switch automatically recovers the port from Root Inconsistentand starts negotiating the new port state and
role, as soon as superior BPDUs are no longer received inbound.
• A superior BPDU indicates a better cost to the root bridge than what is currently installed.
• Therefore, in terms of design, this feature is used to prevent a rogue device from announcing itself as the new
root bridge and possibly implementing a layer 2 man-in-the-middle attack. Root Guard can be enabled only at the
port level and basically prevents a Designated port from becoming Non-Designated.
• You will want to configure this functionality on the Root Bridge itself.
• Verify that Root Guard is enabled for all VLANs, for example on FastEthernetO/19 port.
165
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
166
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
TASK: • Configure SW1 so that STP logically blocks Ethernet links connected to SW2 if any of port on SW2
tries to become Root Bridge for any VLAN.
167
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
168
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
• In this lab here, SW1 is the default root bridge. Configure SW1 to use the prority value of 4096 to ensure
that SW1 should become Root Bridge.
SW1(config)#spanning-tree vlan1priority 4096
SW1(config)#exit
169
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
TASK: • Configure SW1 so that STP logically blocks Ethernet links connected to SW2 if any of port on SW2
tries to become Root Bridge for any VLAN
SW1(config)#int eth0/1
SW1(config-if)#spanning-tree guard root
SW1(config-if)#exit
170
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
Although Root Guard is enabled at the port level, it works on a per-VLAN basis.
TASK: Testing Root guard
• Configure sw2 with prority value of 0 to ensure that SW2 sends superior BPDU to swl
171
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
172
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
TASK: Remove the priority configuration on SW2 and ensuure that sw2 uses the default proirity values
173
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB : ROOT GUARD
When superior BPDUs are no longer received, SW1 will start to send BPDUs outbound on the ports to
negotiate the STP state and role.
174
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Protecting against sudden loss of BPDU
175
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Loop Guard
176
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Unidirectional link failure
• links for which one of the two transmission paths on the link has failed, but not both.
• This can happen as a result of miscabling, cutting one fiber cable, unplugging one fiber or
other reasons.
•no longer receives STP BPDUs
• Still link forwards Traffic.
• blocking port from the alternate or backup port becomes designated and moves to a
forwarding state. This situation creates a loop. This is called a unidirectionallink
Solution:
•Loopguard
•UDLD
177
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LOOPGAURD
Stops the loops which can occur because of unidirectional link failures. prevents switch ports from
wrongly moving from a blocking to a forwarding state when a unidirectional link exists in the network
178
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Loop Guard Configuration
OR
On Specific links
(config)#interface eth0/1
(config-if)#spanning-tree guard loop
180
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Unidirectional Link Detection
181
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Unidirectional Link Detection
182
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
UDLP & loop guard
183
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Err-Disable & Err-disable recovery
❖ the port is automatically disabled by the switch operating system software because of an
error condition that is encountered on the port.
❖ When a port is error disabled, it is effectively shut down and no traffic is sent or received on
that port.
The port LED is set to the color orange
# show interfacegigabit4/1
184
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Err-disable recovery
185
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Err-disable recovery
1.To recover a port that is in an Errdisable state, administrator must access the
switch and configure the specific port with shutdown' followed by the 'no
shutdown' command.
. Use Err-disable recovery option
186
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Errdisable recovery
• choose the type of errors that automatically reenable the ports after a
specified amount of time.
#show errdisable recovery
Errdisable autorecovery
To enable the Errdisable auto recovery feature for all supported reasons
(config)# errdisable recovery cause all
187
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Errdisable recovery
188
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
All in One
189
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP Flavours
190
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Comparison of Spanning-Tree Protocols
191
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
States
192
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
States
193
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Direct Topology Change – STP Convergence(802.1d)
194
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Indirect Topology Change – STP Convergence(802.1d)
195
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Packets
196
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Packets - TCN
197
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP Convergence - Indirect- link failure
198
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP Convergence - Direct- link failure
199
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning-tree Uplink-fast / Backbone-fast
200
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning-tree uplink-fast
201
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Spanning-tree Backbonefast
202
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Rapid STP (RSTP) 802.1 w
203
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Rapid STP (RSTP) 802.1 w
204
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Rapid Port Roles
205
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP Synchronization
206
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Changes in BPDU
207
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Rapid STP (RSTP) 802.1 w
208
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP Synchronization
209
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP Synchronization
210
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP Synchronization
211
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP Synchronization
212
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port States
213
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port roles
214
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port roles (Contd)
Alternate port:
❖ A backup to the root port
❖ Less desirable path to the root
❖ Operates in discarding state.
❖ Same as uplinkfast ( legacy)
215
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port roles (Contd)
Backup port:
❖ The backup port applies only when a single switch has two links to the same Segment
(collision domain).
❖ To have two links to the same collision domain, the switch must be attached to a hub. A
backup to the designated port Multiple links attached to the same network segment
❖ Activates if primary designated fails
216
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port roles (Contd)
Edge port:
❖ Equivalent to portfast in STP.
❖ Connected only to an end user .
❖ Maintain edge status as long as no BPDU received (with BPDU filter) .
217
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
BPDU Difference in RSTP
• In regular STP, BPDUs are originated by the root and relayed by each switch.
• In RSTP, each switch originates BPDUs, whether or not it receives a BPDU on its root port.
PVST is done by Rapid PVST+ on Catalyst switches.
• Hello= 2 sec , Dead = 6 sec
218
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
RSTP port costs
219
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Hierarchical Campus Model
220
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Hierarchical Campus Model
221
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
STP : Selecting Root Bridge
NOTE:
□ Primary reduces priority by 8192 from default priority
□ secondary reduces priority 4096 from default priority
222
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Per -VLAN STP
223
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
PVST& PVST+ differences
• Cisco proprietary. (PVST supports only ISL) PVST+ allows interoperability between CST
and PVST in Cisco switches and support the IEEE 802.1Q standard
224
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Common STP (CST)
225
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Multiple Spanning Tree ( MST)
226
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Multiple Spanning Tree ( MST)
227
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MSTP Regions
• collection of switches that have the same MST configuration comprises an MST region
1. Instance name (32 bytes)
2. Revision number (two bytes)
3. VLAN to STP instance mappings
228
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MSTP Configuration
229
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MSTP Configuration
NOTE:
• an instance must have the same MST name and revision number
• If not matches then they are considered as different instances and not the same, even if the
instances contain
the same vlans
230
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Intra vs Inter Region
Intra Region
• Details of the region are known within the
region
• VLAN to STPIs are manually defined
• Undefined VLANs fall into CIST (MST o)
Inter Region
• Details between regions are not known
• Different regions see each other as virtual
bridges
• Result is simplified Inter-Region calculation
• Intra-region MSTIs are collapsed into CIST
231
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MST Interoperability
232
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
LAB: MSTP (MULT1LPLE SPANN1NG-TREE)
233
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MSTP (MULT1LPLE SPANN1NG-TREE)
TASK:
• Configure manual trunk between swl and sw2 connected links
• Configure vtp to synchronize the vlan information between two switches
• Create vlan 10, 20,30, 40 on any one of the switch
SW1/SW2
SWx(config)#int range fO/23 - 24
SWx(config-if-range)#switchport trunk encapsulation dotlq
SWx(config-if-range)#switchport mode trunk
SWx(config-if-range)#switchport nonegotiate
SWx(config-if-range)#end
SWx(config)#vtp domain CCIE
234
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
MSTP (MULT1LPLE SPANN1NG-TREE)
SW1 or SW2
SW1(config)#vlan 10
SW1(config-vlan)#vlan 20
SW1(config-vlan)#vlan 30
SWl(config-vlan)#vlan 40
SW1(config-vlan)#end
SWl#sh spanning-tree vlan 10
235
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Contact Details
YouTubeChannel:
https://www.youtube.com/channel/UCSIt8Wocol4RhUy4EVp2pfg?view_as=subscri
ber
236
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604
Thank You
237
Prepared by: Jagdish Rathod Mail: jagdishrj01@gmail.com Mo: 7259459745/8779606604