CCNP Switching
CCNP Switching
Duplex
o Simplex
Only one device transmit data and other is only receiver
o Half Duplex
Two way communication, but only one device can send and receive data at a
time
o Full Duplex
2 way communication in which both device can send or receive at same time
On Switchport,
o Auto
This is enabled by default
o Half Duplex
o Full Duplex
o Switch(config-if)#duplex auto/half/full
o
Speed
o Auto
This is negotiate with other device
10 mbps ( ethernet)
100 mbps (fast ethernet)
1000 mbps ( giga)
They are sending electrical signal with maximum speed
If device are using same speed link then they support maximum speed only but
if devices are belong to different speed they will negotiate according to the
lowest speed on that link.
o Switch(Config-if)#speed 10/100/1000/auto
Switch
It is a layer 2 device.
It is full duplex device.
Forward data on the basis of MAC address information
Maintain a MAC table
It can perform unicast and broadcast
It working is depend on ASIC Chips (Application specific Integrated circuit)
Per port collision and One broadcast domain
It is a transparent Device
o End Users are not aware about the presence of switch.
o Switch never makes any changes in the data.
Switch first time do broadcast and after that always perform unicasting.
It is also known as Plug and play device (P to P).
Switching
It is process in which data will be transmit from source to destination is called switching.
Types of Switch
Ethernet switch
L2 switch
L3 switch
Multilayer switch
Types of layer 2 switching
Data will be switch from source to destination on the basis of layer 2 switching.
2950 and 2960 catalyst
Layer 3 switch
Data will be switch from source to destination on the basis of layer2 and layer 3 addresses.
3550 , 3560 , 3750 , 3850
Multilayer Switch
Data will be switch from source to destination on the basis of layer 3 and layer 4 addresses.
They can also check TCP and UDP header for data forwarding.
4500 , 6500 , 9000
MAC ADDRESS
Operations of a switch L2 / L3
Address learning
Forwarding
Filtering
Loop avoidance
How switch learn Mac address
1) Dynamic Entries
a. Switch can learn mac address automatically of devices in its cam table.
2) Static Entries
a. We can manually enter the mac address of devices in cam table we can
generate cam table manually to stop unknown unicast broadcasting.
Switch#show mac-address-table dynamic
Switch#show mac-address-table interface fa1/ 0/1
Switch#show mac-address-table address 0018.18ba.3b60
Switch#show mac-address-table static
Switch#show mac-address-table
Switch# Clear mac-address-table dynamic
Addressing Learning
Whenever a switch receives any frame, it learns the mac add from source mac
address field in ethernet header.
Mac address will be learned and stores in a table called Mac-address table.
Switch memories
CAM (Content addressable Memory) MAC Address in the form of MAC table
TCAM(Ternary Content addressable Memory)
o Security ACL
o QOS ACL’s
Forwarding:-
Unknown Unicast Flooding If destination mac address is unicast and switch does
not have the entry for the mac, then switch will copy and forward frame according to number
of active ports excepts the port on which frame was received.
o If timer is infinity then mac address table will be full after a timer,
then switch is not able to learn new mac address so switch forward
those frame without learn mac address then again unknown unicast
flooding start in network .
What is problem with static mac address entry?
o If mac is binded with wrong interface then host is not able to
communicate with anyone in network.
Multicast
o Routing / protocols
o Switch always floods out multicast traffic.
o Any device that sends multicast traffic is attaching multicast mac in destination
mac address field which switch never get to learn.
Can be enable multicasting on a switch?
o Yes ( you have to configure IGMP snooping)
Broadcast when destination mac is broadcast then switch will copy the frame
according to the number of active ports and then frame will be forwarded to those ports
Switch will never forward the frames on those port on which it was received.
Any end devices keep the Arp entry in its table for 4 hr.
Rack Access
Topology
o Router
4 Router (1800 , 2600)
o Switch (MLS)
4 Switch (3550 , 3750)
CDP (Cisco Discovery Protocols)
o It is a layer 2 device
o Will encapsulate in Ethernet Header.
o Cisco Proprietary Protocols
Can only run on cisco devices.
o By default
o To identify Physical topology
o To convert physical topology into logical topology
o Cdp Packet à these packets are advertised through each and every link
between the devices.
o SMACàint Mac add
o DMAC à Multicast add à0100.0ccc.cccc
o Cisco ID à 0100.0C à 24 bits
o CDP , DTP ,VTP,UDLD,PAGP àCC.CCCC – LAST 24 bits
Timers à
o hello à 60 sec
o Hold à 180 sec
show cdp entry *
Vlan states
Active (Default)
o Data forwarding can be done for that vlan.
Shutdown
o Will stop data forwarding for a vlan on a local switch.
Suspend
o Will stop forwarding for a vlan in entire VTP domain.
o Switch(config-vlan)#state suspend
Inactive
o Any ports assigned into a vlan but that vlan is not available in vlan database.
o Switch#show interfaces fa1/0/1 switchport ( to check inactive )
Switch(Config)#Vlan 10
Switch(Config-vlan)#name sales
Switch# Show vlan brief
Switch(Config)#no Vlan 10( delete vlan )
1) Local Vlans
a. Ports of a vlan which are available on one switch only.
2) End to End Vlans
a. Ports of a vlan which are available on two or more switches.
Extended Vlans
o Use In ISP Networks
o Range ( 1006-4094)
No Switchport
o To make Layer 2 port into Layer 3 port on switch
o In order to make any Port on Layer 3, the switch automatically assigns that port
into one extended range of vlan
o If any extended vlan is available in local vlan database then next available
extended vlan will be assigned to the port to separate it from other broadcast
domain.
o Ascending (Default) Start from 1006
o Descending start from 4094
Switchport
Ports which transmit data on the basis of layer 2 address are called
Switchport.
By default all interfaces of a switch are operating in layer 2 mode known
as Switchports
There are 2 types of Switchport.
o Access Port
Access Port is a member of one vlan.
It is transmit only one vlan traffic.
o Trunk Port
Trunk Ports are members of all Vlans.
It can transmit multiple vlan traffic at the same time.
Tag can be transmitted only a single collision domain and that too
over trunk link only.
Retagging
o In order to perform retagging on transitory switches (switch which receives
tag on one port and needs to forward on another trunk port), that switch
must have that vlan in vlan table.
All transitory switches should have Vlans available for retagging no matter that
switch has any access port for that vlan or not.
Tag / Frame encapsulation
Inter-vlan routing
Routers or layer 3 switches are used for intercommunication between the different
VLANs. The process of intercommunication of the different Vlans is known as Inter
Vlan Routing (IVR).
There are two types of IVR
o Traditional Router
o Router on Stick
o Switch Virtual Interfaces (SVI)
Router on stick
o When the Inter vlan routing is done through Router then it is known
as Router on Stick
o The Router’s Interface is divided into sub-interface , which acts as a
default gateway to their respective Vlans
o Here encapsulation type dot 1 q is used for frame tagging between
the different Vlans, which the switch forward packet of one vlan into
another vlan, it inserts a vlan into ethernet header.
SVI is a logical Interface on a multilayer switch that provides layer 3 processing for packets to all
switchport associated with that vlan.
A single SVI can be created for a vlan
SVI on layer 3 switches provides both management and routing services while SVI on layer 2
switch provides only management services like Vlan or telnet/ssh services
Case 5
o Non cisco (Static)--------DA/DD
o No trunk
Case 6
o Static Trunk -----Static Trunk
o Trunk will be form
o We can turn off the negotiation.
Case 7
o Router --------Trunk(Cisco)
o DA/DD both expects DTP message in return which they will never get from
router.
o No trunk
o It is recommend to configuration manual trunk always towards router
o We should turn off the negotiation.
How to create manual access port or trunk Port
o Switch(Config-if)#switchport mode access
o Switch(Config-if)#switchport mode trunk
o Sw1#show interface fastethernet 1/0/1 switchport
o #show interface trunk
o Switch#show interface fastethernet fa0/1 trunk
How to create dynamic access port or trunk Port
o Sw1(config-if)#switchport mode dynamic desirable
o Switch(Config-if)#switchport mode dynamic auto
How to disable DTP
o Switch(config-if)#switchport mode access
o Switch(config-if)#switchport mode dynamic auto
Note If we create manual access port , DTP will get disable
How to change encapsulation type
o Switch(config-if)#switchport trunk encapsulation dot1q/ISL
VTP Requirements
VTP Modes
1. Server Mode
2. Client Mode
3. Transparent Mode
Server Mode
Transparent Mode
It is 32 bits
This number is always represented in decimal.
By default C.R number is 0.
It is used to notify whether the summary adv/Update is a latest one or an old
one.
Every switch update its self from a higher CR number, if any switch receive
update with lower CR number it will discard.
Whenever you create, delete or modify any vlan CR will increment by 1
In transparent Mode CR is always is 0.
How to reset CR
2. Subset Advertisement
It contain actual information of vlan
It will generate when vlan changes will occur in the response of
subset req.
Triggered when any change will occur.
It carries version, type, subset sequence number, management domain
name, CR number and vlan information.
The size of the subset header is 40 bytes. 20 bytes are hidden which is
for accommodating vlan information.
Subset header size = 20 + 40 = 60 bytes.
MTU = 1500 bytes
1500 – 60 = 1440 (vlan info)
1 vlan info = 20 bytes
1 subset consists of = 1440/20 = 72 vlan information.
Followers: how many subsets can be advertised within a single summary
advertisement?
Number of subsets
1005 /72 = 14 subsets.
3. Advertisement Request
a. This is used to get update from server switch if client or server
missed any update in vtp.
b. It is used when a new switch is added into the vtp domain. Only the
client can generate an advertisement request.
c. In reply to the advertisement request the switch either client or
server forwards the summary and subset advertisement.
d. Switch# debug Sw-vlan vtp ( for Debug VTP )
MD5 digest
A. It is use to secure a vtp domain.
B. It is shared in summary advertisement.
C. This digest value is used to authenticate vtp information btw switch
1. VTP domain name
2. CR number
3. Vtp password (optional)
D. If domain name is null, then switch never start sending vtp msg.
E. If you change domain name (null to ccna) then it will not increase CR
value.
F. Switch will only calculate MD5 digest value
When you manually configure domain name.
When there is change in CR number.
If there is password
Not automatically
Vtp version
G. After 5 min there is 2nd summary advertisement packet
H. Show vtp status | in MD5|ox
I. SHOW VTP Counters
J. Clear vtp Counters
K. VTP password cisco@123
1. Press ctrl + v
2. Release keys
3. Shift + question mark?
If multiple vtp server are exist in vtp domain, how to get know which server
update vtp database.
Updater Identifier :- Its a 32 bits length value in dotted decimal (it’s an ip address of
switch SVI Interface)
Updater id is always elected lowest SVI interface number
Int vlan 10
Ip address 10.10.10.10
SW1(config)#vtp interface Vlan10
VTP Synchronization
When a higher CR number client update the VTP domain with its database.
This happens when the new added switch (client) as a higher CR Number
than the server; so it will start updating the client and the client will
further update the server too.
VTP Pruning
Prune filter
VTP VERSION
IN version 1 and 2
i. Server and client
1. Those switches only support standard Vlans
2. Those have vlan information in vlan.dat file
ii. Transparent
1. Those switches can support standard and extended
Vlans
2. Those have vlan information in vlan.dat file also in
running-config
iii. Password is in plain text
iv. VTP version 2
1. Support Token Ring
1) Synchronization Issue
2) Only standard Vlans supported
3) Password in plain text
4) VTP version 2 cannot distribute MSTP instances configuration.
VTP version 3
No synchronization ( only master server switch can change
database)
Password Protected/ hidden
Use both types of vlan ( standard and extended )
VTP mode
Server
o Primary server: -
Only this server can change in vtp database.
Only one server can become primary server.
This server is configured manually
o Secondary server
All servers are by default secondary server.
If you want to configure primary server first it would be secondary.
This server cannot change in vtp database.
o Client
This is still same as version 1 and 2
o Transparent
Still same as previous
o OFF mode
To disable vtp on switch
LAN Architecture
1) 2 tier
a. Access Layer
i. Access Layer Switches are only connected with distribution layer switches.
ii. High port density switches are required at access layer
iii. They should have high speed redundant uplinks to connect with distribution
layer switches.
iv. Layer 2 configuration like Vlans, trunk, Port-security, portfast, bpdu guard,
bpdu filter.
b. Distribution Layer
i. The switch who provides connectivity to access layer 2 switches.
ii. Access Layer switches traffic merged on distribution layer switches
iii. High port density switches required.
iv. High speed links are needed because amount of traffic is more than the
access layer switches.
v. Routing is configured at layer.
vi. QOS , FHRP , ACL , SVI etc
2) 3 tier
a. Access Layer
b. Distribution Layer
c. Core Layer
STP Types
1) Common Spanning-Tree (CST)
2) Per vlan Spanning-tree Protocols (PVST)
3) PVST+
4) Rapid PVST+
5) Rapid STP (Open standard)
6) Multiple Spanning Tree Protocol (MSTP)
STP Terminology
o Root Bridge
o BPDU
o Root Port/ designated Port
o Cost
o AlterNet Port/Blocking Port
o Flag
1) Root Bridge
a. The main switch in STP that is providing loop free path and topology.
b. Only one switch can become RB.
c. A switch which has best bridge id (lowest/Superior) will become Root Bridge.
d. In a single switched topology, there cannot be more than one RB.
e. By default , before election of RB , every switch in the topology consider themselves On
RB
f. BPDU’s will be sent through each and every Port of the RB.
Election Criteria:
Notes:-
1) Priority can be changed on switches.
2) Priority can only be changed in the increment of 4096.
3) Every Port of switch has a buffer memory.
4) All BPDU of RB is shared in that buffer memory.
5) One buffer can only keep one BPDU at a time.
BPDU will share Best Bridge ID between Switches to elect the root bridge.
STP generate hello msg after every 2 sec that is called BPDU msg.
A BPDU which has best Bridge-id (Lowest) will always superior BPDU.
Configuration BDPU
o Is used for election
o This BPDU msg will be generated periodically in every 2 second.
o First time all switches will send this BPDU.
o After election only RB will generate it and relay it on all interface toward all
connected switches.
o Periodic & Triggered
o Triggered BPDU
When a switch send a configuration bpdu to participate in STP election
o Periodic BPDU
After Root bridge election, only the RB will generate conf. BPDU in every 2
seconds.
Port Role
o Root Port
o Designated Port
o Blocked Port
Alternate
Backup
2) Root Port
a. Every Non Root Bridge will elect their root path, which can only be one per non root
bridge.
b. Root port
i. Shortest port/Link connected towards Root Bridge.
c. RB cannot have root port.
d. A port which receives superior BPDU will become Root Port.
e. There can be only single Port on Non-root Bridge.
3) Designated Port:
A port which transmits superior BPDU will become DP.
To send or relay BPDU’s
Send RB
Relay NRB
Are not meant to receive BPDU but meant to send/relay BPDU’s
All port of RB are DP
Every collision domain have one DP only
On a single segment both end can’t be either DP or non-DP
DP and RP will always remain in Forwarding State.
TCN will be send after learning state.
4) Blocked Port
a. Alternate Blocking Redundant to RP (Non-Root Bridge)
b. Backup Blocking Redundant to DP (RB or NRB)
It is a Backup port of Non RB which is receiving C-BPDU and this configuration BPDU is Inferior.
Ports which are not elected as RP/DP will be elected as blocked Port
Blocked Port can receive BPDU but cannot send / relay BPDU
To Prevent loop in layer 2 network
Link cost
o Cost associated with an interface.
o It is not carried in BPDU
Root path cost
o Total cost to reach the root bridge.
Whenever the cost is sent, cost will be added on the receiving and not sending int.
RB always sends the cost on zero.
STP States
a) Disable When Port is Down
b) Blocking To Prevent Loop
o BPDU received only not send
o Never Learn User MAC Address
o No User Data Forwarding
o L2 control plane traffic is allowed to send and receive (CDP , DTP, etc)
c) Listening
o BPDU send And Received Both
o Election is Done in this State
o 15 sec (by default) equal forward delay timer
o NO User Data Forwarding
o Never Learn User MAC Address
d) Learning
o BPDU send and Received Both
o Learn user mac address
o No user data forwarding
o 15 sec (by default )
e) Forwarding
o BPDU received and Send Both
o Learn user mac address
o User data forwarding
STP Timers
o Show Spanning-tree root
o Hello 2 sec
BPDU are sent or received every 2 sec.
It help to keep track of STP topology
A switch will detect a failure when BPDU will be missing.
Spanning-tree vlan 1-4094 hello-time 1
o Max Age 20 sec
How long a BPDU will be kept in buffer?
Spanning-tree vlan 1-4094 max-age 10
o Forward Delay
Time taken by a port to get into forwarding state
This timer will run twice each for listening (15 sec) + learning state (15 sec) = 30
sec.
Spanning-tree vlan 1-4094 forward-time 7
o Message Age
Retransmission time of BPDU
o Diameter
Min =2
Max = 7
Time synchronization Problem
o Diameter= max Age on 7th switch / BPDU timer.
o SW1(config)#spanning-tree vlan 1 root primary diameter
o Show spanning-tree interface fastethernet 1/0/19 detail | in BPDU
Types of STP
Open standard
Layer 2 protocols ---802.1d
BPDU are untagged
There is a single loop free topology for all.
1) You can have only one RB per topology
2) BPDU encapsulate in Ethernet header 802.3 header
3) SMInt mac address
4) DM0180.c200.0000
5) If active link never goes down, this link will be considered as wastage of
resource.
6) In CST, which ever the switch is RB for vlan 1 will be RB for all the Vlans.
7) There will be only single instance for all the vlan.
8) There will be only one BPDU for all the Vlans.
9) One interface in CST will store only one BPDU and that too far only one vlan.
10) No capability for load balancing.
11) Slow convergence
Cisco Proprietary
by default , it is enabled on cisco switches.
BPDU’s are tagged
1) Encapsulate in SNAP Header
2) SMInt Mac address
3) DM0100.0CCC.CCCD
It operates a separate instance of STP for each individual vlan.
It can also offer load –balancing means you can utilize all available links and switches
in the topology.
Only support ISL
PVST will gen. BPDU for each vlan
We can have multiple loop free topology
1) Multiple Root Bridges in a single topology
2) Can be done on the basis of per vlan RB
PVST is not compatible with CST
PVST is not more use in CISCO
ADV
1) Load balancing
No wastage of resources
BPDU’s are being distributed B/w the switches.
Disadvantage
1) CPU utilization is high.
2) Single instance for each vlan.
PVST+
It stand for Per Vlan Spanning tree plus
It operates a separate instance of STP for each individual vlan
Capability for load balancing
It support ISL and Dot 1Q both tagging methods on trunk port.
Works same as PVST
It is default on every cisco switches.
System id ext
o will be added into the priority
o Because of this we have increment of 4096 in Bridge Priority.
0-65535 = eg. 47692
47692/4096 = 11.64(ignore .64)
4096*11= 45056
Step1 – step 2= 47692-45056 = 2636 vlan id
STP interoperability
CST
1) Open standard
2) Untagged
3) 802.1q
PVST
1) Cisco
2) Tagged
3) ISL
Because of these three reasons, interoperability cannot be done b/w CST and PSVT.
Problem
Vlan 1 Priority 10 Priority 11
Vlan 3 Priority 8 Priority 11
Solution
Vlan 1 priority 0 Priority 1
Vlan 2 priority 0 Priority 2
Vlan 3 priority 0 Priority 3
Vlan 4 priority 4096 priority 5000
Vlan 5 Priority 4096 Priority 5001
Bits
1 System extended ID
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
0*4096
1*4096
2*4096
15*4096= 61440
61440 + 4095 (vlan) = 65535
Switch (config)#Spanning-tree vlan 1-10 Priority 4096
Sw1(Config-if)#Spanning-tree cost 18
Sw1(config-if)#Spanning-tree vlan 6-10 cost 18
Sw2#Show spanning-tree vlan 1 interface fastethernet 0/21 details
o It will show path cost 19
UPLINK FAST
When Buffer on SW1 gets empty it will store the BPDU of Sw2
SW1 will consider BPDU of Sw2 as inferior
Sw1 will make its port as DP to send superior BPDU sw3 toward SW2
When sw2 gets the Superior BPDU of Original RB
It will make its DP as RP
Earlier DP port was in forwarding state so RP will also be in forwarding state (no
listening + learning)
On SW1, after 30 sec DP will come into forwarding state.
After getting any blocking port into forwarding state
Sw1 will generate TCN and will send through RP toward RB.
SW2 also generate TCN toward Sw1
Total convergence time = 20 max age + 30 sec Fwd(Block to DP)= 50 sec to 52 sec
Backbone fast
1) When any port does not receive any BPDU in return ever, that port will always be
elected as DP.
2) If port is elected as DP Must be sending BPDU
3) This port is a port of STP algorithm
4) Problem Unknown unicast Flooding
5) When access port goes down and comes up then switches generate TCN BPDU and
these kinds of changes known as insignificant topology change.
6) If any link status goes down or come up, the switch must see that as a topology change
and inform to the root bridge.
7) If the pc on switch B is turned off , the switch detects the link status going down
8) Switch B sending tcn bpdu towards the root bridge over its port 0/1.
9) The root bridge sends a RP port tcn ack back to switch B and then sends a configuration
bpdu with tcn flag bit set to all downstream switches. This is done to inform every
switch of a topology changes somewhere in the network.
10) The tcn flag is received from the root, so both switch set there mac aging time 300 sec
to 15 sec. The aging time stays short for the duration of the forward delay time.
Portfast
RSTP BPDU
o Protocol – STP
o Version – 2
o Type – configuration/TCN
o Flags – 8 bits
Uplink fast | backbone fast exist in rstp/rpvst + but does not work
Port fast in rstp / rpvst + only does not let switch to generate TCN.
Port type
o Edge
Connected to end devices
Access Port
STP Election is not required on edge port.
Which are enable with portfast
o Non-Edge
Connected to other switches.
STP Election should be performed on non-edge port.
Shared
Use different duplex both side
P2P
Two switches only in a single collision domain.
RSTP/RPVST+ algorithm do not work in half duplex.
o In shared port type, rstp/rpvst+ algo will automatically get converted
into cst/pvst+ respectively.
o (config)#spanning-tree link type <shared | Point-to-point>
Proposal
o Proposing itself to other switch as a RB.
o Can only be sent through DP.
Agreement
o Agreeing that other switch is RB
o Can only be sent through RP
When switches considers themselves as RB , they make their ports as DP
and Start sending BPDU with Proposal flag set as 1.
When Sw 1 which elect as RB will continues to send BPDU with Proposal
flag set as 1.
Other switch which is not elect as RB , will send the BPDU with proposal
flash set as 0 but agreement flag set as 1 after making the port as RP.
Until Agreement BPDU is received RB Will keep the port as DP but will
remain in learning but once the agreement bpdu is received, it is configured
that port will be DP and can be moved to forwarding state.
Now sw2 will turn off the agreement flag to confirm the port on RP only
when it receives the next bpdu with proposal flag set as 0 and forwarding
flag set as 1
After confirming the RP , it will put the port into forwarding state and sends
this last bpdu towards RB to allow it to begin data forwarding
The Port which is elected as RP will send the agreement as usual but
agreement needs to be sent through other port which is elected as block
which cannot send agreement
In order to do that , sw2 will sync the actual RP and will make blocking port
temporarily as RP to sent out the agreement to put the other switch DP is
fwd state
Once the port number 2 (which is actual blocking but temporarily right
now in RP) , receives the next bpdu with Proposal flag set as 0 will put its
port back to blocking and unsync the actual RP and Data forwarding can
now begin.
Topology change
MST Attributes
MST BPDU
Protocol – STP
Version – 3
Type – configuration
Flags = ALL Flags
MST Extension (M-record)
o Name – cisco
o Revision number – 10
o Hash value – xcod
o CIST 0 instance
o IST 1
o IST 2
o IST 3
In a single bpdu have information of all the instances?
Switch is going to match hash value with another switch hash value , if hash
value is same that is belong to same region otherwise it belong to different
region .
Hash value (name , revision number , vlan mapping )
Master
o This port is kind DP but you can’t send bpdu from here
IF any port is block for instance 0 so it will block for other instance also.
Configuration of MST
Vtp version 2
Disadvantage
o Synchronization
o Password Plain text format
o Extended vlan are supported on a transparent switch only.
o A domain can have more than one server and every server switch is allowed to make
changes to vlan database.
VTP version 3
1) VTP version 3 is compatible with version 1 & version 2
2) A vtp version 3 server switch can update database of vtp version 1 and
version 2 switches.
3) We can create extended vlan
VTP mode
Server
o Primary server: -
Only a single can be configured Primary server for feature VLAN
and MST
Only this server can change in vtp database.
Only one server can become primary server.
This server is configured manually
o Secondary server
All servers are by default secondary server.
If you want to configure primary server first it would be
secondary.
This server cannot change in vtp database.
o Client
This is still same as version 1 and 2
o Transparent
Still same as previous
o OFF mode
To disable vtp on switch
BPDU Guard
We can enable this feature on host ports on a switch to protect the root bridge which port
is in portfast configuration.
Only for access port
Portfast ports continue sends + receive BPDU’s
If BPDU guard is enabled , then it will stop receiving any BPDU (either
inferior/Superior)
If BPDU is still received then switch will put the port into error disabled mode.
Error- disable mode shut down state
Error-disable state cannot be recover automatically
Recovery
o shut / no shut(manually recovery)
o error disable recovery (dynamic)
o by default disable
o Switch(config-if)#spanning-tree bpduguard enable
o Switch(Config)#spanning-tree portfast default
o Switch(Config)#spanning-tree portfast bpduguard default
BPDU guard only stops receiving the BPDU but BPDU can still be sent.
BPDU filter allows us to stop sending the BPDU through the portfast ports.
BPDU filter should be applied on Access ports.
a. Also will not put the port into err disable state.
Sw (config-if) #spanning-tree bpdufilter enable.
Sw (config-if) #spanning-tree bpdufilter disable.
Sw(config)#spanning-tree portfast default
Sw(config)#spanning-tree portfast bpdufilter default
Root Guard
This feature can enable on non-edge ports (DP), those are receiving superior bpdu from non
root bridge.
o Will keep the track of all DP ports
o It will protect current RB from any superior BPDU.
o If received then the port will move root inconsistency state for 20 sec.
o Inconsistency Temporary blocking state Protocol Down.
o Once current RB starts to receive inferior bpdu on root guard enabled ports,
then port will automatically recover from blocking stateProtocols UP
o Root Guard can be enabled on per-int basis On RB’s all DP.
o Root Guard will block the ports on per vlan basis (v15.0&above).
o Recommended to be only used on primary & Secondary RB’s.
How to configure Root Guard
o Sw1(config)interface fa0/19
o Sw1(config-if)#spanning –tree Guard root
o Sw1# Sh spanning-tree inconsistenetports
Port will automatically remove from root inconsistent state immediately.
If we will enable ROOTGUARD on RP port will stop to receive superior BPDU and when
superior BPDU will come on it then this port will go in ROOT INCONSISTANT state.
Loop Guard
BPDU not receiving on switch C port 0/2 due to traffic congestion or any other
problem like IOS bugs.
Keep the track of all RP Ports to not make them as DP to avoid Loop
Switch C will wait for bpdu for 20 sec on port 0/2 because BPDU max-age timer is 20
sec.
Switch C will change its state of 0/1 port from blocking to R.P.
Switch C change its state of port 0/2 from RP to DP (this port will not come in
blocking state because no BPDU are receiving on that port)
Now loop is occur in this topology because both port are in forwarding state
between switch A and Switch C.
# Spanning-tree bpdufilter enable.
Sw(config-if)#spanning-tree guard loop
Note : should be enable on Non-RB(trunk RP Port)
Should be enabled on
o Global basis
o Per int basis
After enabling loop guard on all RP port, in any root port not receive bpdu than it
will wait for 20 sec and after 20 sec this port will become loop-inconsistent state.
Now there is no chance loops. We can’t enable for per vlan bases.
Ether channel
It is a layer 2 technology which is used to bundle multiple physical
links into logical link
It will not only provide redundancy but also load balancing of
physical links.
Load balancing for a single vlan
To increase bandwidth and load balancing
Requirements:-
1) Speed same ( 10 mbps , 100 mbps)
2) Duplex same (half duplex , Full Duplex)
3) Port type ( Access , trunk)
4) Access- same vlan
5) Trunk – encapsulation same , all allowed vlan
6) Native vlan same
1) Static :- ON mode
a. #channel- group 2 mode on
Etherchannel Misconfiguration guard is enable by default on
switch
Port will move in err-disable.
Spanning-tree etherchannel guard misconfig.
Errdisable recovery cause channel-misconfig
2) Dynamic :- Protocols
a. PAGP(Port Aggregation Protocols)
i. Cisco Protocols
ii. DMAC – 0100.0CCC.CCCC
iii. Per ether channel = Max 8 links can be bundled
iv. Mode
1. Desirable (negotiate)
a. It can initiate as well as negotiate for bundling
2. Auto ( wait)
a. It can only negotiate for bundling
Auto --- Auto (no etherchannel)
Auto ---Desirable (etherchannel)
Desirable ---Desirable(etherchannel)
Silent
1) It will create port channel without checking
bidirectional connectivity for every port.
Non-silent
1) It will check bidirectional connectivity for every port,
both side need desirable.
2) SW1(config-if-range)#channel-group 1 mode
desirable non-silent
LACP Port-id
#channel-protocol LACP
#channel- group 2 mode Active
#channel- group 2 mode passive
Basic Rule
1) Link Bundling
2^1 = 2 Links =1 Bit = 0-1
2^2 =4 Links = 2 Bit = 0-3
2^3 = 8 Links = 3 Bit = 0-7
2 link = 1 least bit in address
1) 0000.0000.000A
2) A= 1010
4 links = 2 least bit in address
1) 0000.0000.000A
2) A= 1010
8 link = 3 least bit in address
1) 0000.0000.000A
2) A= 1010
9 algorithm
i. SRC MAC
ii. DST MAC
iii. SRC DST MAC
iv. SRC IP
v. DST IP
vi. SRC DST IP
vii. SRC PORT
viii. DST PORT
ix. SRC DST PORT
x. Only Support on 4500 series and above.
xi. Test etherchannel load-balance interface port-channel 10
mac 0000.0000.000a 0000.0000.000b
xii. XOR operation
Configuration:-
Show etherchannel Summary
Show etherchannel detail
channel- group 2 mode on
Show etherchannel
show etherchannel load-balance
Port-channel load-balance DST –mac
Layer 3 Ether-channel
3 tier architecture
1) Core layer
9300 , 9000
Services , firewall , nat , vpn
2) Distribution layer
4500 , 6500
Connect layer 2 and layer 3 network
Inter vlan routing , servers , etherchannel
3) Access layer
2950 , 2960
Host connectivity
Spanning tree , etherchannel
Disadvantages
Increase database
Routing table
1) SH VLAN Internal USUAGE