SlideShare a Scribd company logo
LAYER 2 SWITCHING
By
Anil Kumar Vishwakarma
MCA,MCTS,CCNA
OVERVIEW
 Introduction
 Spanning Tree Protocol
 Spanning Tree Terms
 Spanning Tree Operations
 LAN Switch Types
 Configuring Switches
INTRODUCTION
 Switching Services
 Unlike bridges that use software to create and manage a
filter table, switches use application specific integrated
circuits (ASICs) to build and maintain their filter tables.
 A switch can be viewed as a multiport bridge.
 Three Switch Functions at Layer 2
1. Address learning: Layer 2 switches and bridges
remember the source hardware address of each frame
received on an interface, and they enter this information
into a MAC database called a forward/filter table.
2. Forward/filter decisions: When a frame is received on an
interface, the switch looks at the destination hardware
address and finds the exit interface in the MAC database.
The frame is only forwarded out the specified destination
port.
3. Loop avoidance: If multiple connections between switches
are created for redundancy purposes, network loops can
occur. Spanning Tree Protocol (STP) is used to stop
network loops while still permitting redundancy.
ADDRESS LEARNING
When a switch is first powered on, the MAC forward/filter
table is empty,
FORWARD/FILTER DECISIONS
 When a frame arrives at a switch interface, the
destination hardware address is compared to the
forward/filter MAC database.
 If the destination hardware address is known
and listed in the database, the frame is sent out
only the correct exit interface.
 The switch doesn’t transmit the frame out any
interface except for the destination interface.
 This preserves bandwidth on the other network
segments and is called frame filtering.
LOOP AVOIDANCE
 Redundant links between switches are a good idea because they help
prevent complete network failures in the event one link stops working.
 the switches will flood broadcasts endlessly throughout the nternetwork.
 This is sometimes referred to as a broadcast storm
SPANNING TREE PROTOCOL
 STP’s main task is to stop network loops from
occurring on your layer 2 network switches.
 It monitors the network to find all links, making
sure that no loops occur by shutting down any
redundant links.
 STP uses the spanning-tree algorithm (STA) to
first create a topology database, then search out
and destroy redundant links.
 With STP running, frames will be forwarded only
on the premium, STP-picked links.
SPANNING TREE TERMS
 Bridge ID: It is determined by a combination of the bridge
priority (32,768 by default on all Cisco switches) and the base
MAC address. The bridge with the lowest bridge ID becomes the
root bridge in the network.
 Root bridge: is the bridge with the best bridge ID (the lowest
bridge ID).
 Nonroot bridge: These are all bridges that are not the root
bridge. Nonroot bridges exchange BPDUs with all bridges and
update the STP topology database on all switches.
 BPDU: Bridge Protocol Data Unit (BPDU) the name of packet
that they send to one neighbor with the one that they receive
from another neighbor.
 Root port: The root port is always the link directly connected to
the root bridge, or the shortest path to the root bridge.
SPANNING TREE TERMS
 Designated port A designated port is one that has been
determined as having the best (lowest) cost. A designated
port will be marked as a forwarding port.
 Port cost Port cost determines when multiple links are
used between two switches and none are root ports. The
cost of a link is determined by the bandwidth of a link.
 Nondesignated port is one with a higher cost than the
designated port. Nondesignated ports are put in blocking
mode—they are not forwarding ports.
 Blocked port A blocked port is the port that will not
forward frames, in order to prevent loops. However, a
blocked port will always listen to frames.
SPANNING TREE OPERATIONS
1. Selecting the Root Bridge
2. Selecting the Root Port
3. Selecting the designated (Forward) port.
4. Spanning-Tree Port States
 Blocking A blocked port won’t forward frames; it
just listens to BPDUs.
 Forwarding The port sends and receives all data
frames on the bridged port.
LAN SWITCH TYPES
 LAN switch types decide how a frame is handled
when it’s received on a switch port.
 There are three switching modes:
1. Cut-through (FastForward)
2. FragmentFree (modified cut-through) the switch
checks the first 64 bytes (caused by collision) of a
frame before forwarding it for fragmentation.
3. Store-and-forward: In this mode, the complete data
frame is received on the switch’s buffer, a CRC is
run, and, if the CRC passes, the switch looks up the
destination address in the MAC filter table.
CONFIGURING SWITCHES
 Setting the Passwords
 1900 Switch
(config)#enable password level 1 kkkk -----> User mode
(config)#enable password level 15 kkkk1 -----> Enable Mode
(config)#enable secret todd2 -----> Encrypted
 2950 Switch
Switch(config)#enable password todd -----> non Encrypted
Switch(config)#enable secret todd -----> Encrypted
 Setting the Hostname
 1900 Switch
(config)#host S1900
 2950 Switch
Switch(config)#host S2950
CONFIGURING SWITCHES
Setting IP Information
 1900 Switch
S1900#config t
S1900(config)#ip address 172.16.10.16 255.255.255.0
S1900(config)#ip default-gateway 172.16.10.1
 2950 Switch
S2950#config t
S2950(config)#int vlan1
S2950(config-if)#ip address 172.16.10.17 255.255.255.0
S2950(config-if)#no shut
S2950(config-if)#exit
S2950(config)#ip default-gateway 172.16.10.1
CONFIGURING SWITCHES
Configuring Interface Descriptions
 1900 Switch
S1900#config t
S1900(config)#int e0/1
S1900(config-if)#desc Finance_VLAN
 2950 Switch
S2950#config t
S2950(config)#int f 0/1
S2950(config-if)#desc Sales Printer
CONFIGURING SWITCHES
 Erasing the Switch Configuration
 1900 Switch
Todd1900#delete nvram
 2950 Switch
Todd2950#erase startup-config
Thank You

More Related Content

What's hot

Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
Respa Peter
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
network convergence problem and solutions
network convergence  problem and solutionsnetwork convergence  problem and solutions
network convergence problem and solutions
Siddhi Viradiya
 
RIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme NetworksRIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme Networks
Dani Royman Simanjuntak
 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
Harsh Mehta
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
shravan kumar upadhayay
 
Link State Protocol
Link State ProtocolLink State Protocol
Link State Protocol
Jignesh Patel
 
OSPF Overview
OSPF OverviewOSPF Overview
OSPF Overview
NetProtocol Xpert
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
umardanjumamaiwada
 
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric VanderburgCCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
Eric Vanderburg
 
Routing Information Protocol (RIP)
Routing Information Protocol(RIP)Routing Information Protocol(RIP)
Routing Information Protocol (RIP)
waqasahmad1995
 
Routers.ppt
Routers.pptRouters.ppt
Routers.ppt
kirbadh
 
Routing Protocols
Routing Protocols Routing Protocols
Routing Protocols
KhushbirSinghSandhu
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
Ann Joseph
 
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Vishal Sharma, Ph.D.
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
Raghu Kiran
 
13. eigrp and ospf
13. eigrp and ospf13. eigrp and ospf
13. eigrp and ospf
Swarndeep Singh
 
Layer 2 & layer 3 switching
Layer 2 & layer 3 switchingLayer 2 & layer 3 switching
Layer 2 & layer 3 switching
Muhd Mu'izuddin
 
Rip
RipRip
1164 Routers
1164 Routers1164 Routers
1164 Routers
techbed
 

What's hot (20)

Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
network convergence problem and solutions
network convergence  problem and solutionsnetwork convergence  problem and solutions
network convergence problem and solutions
 
RIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme NetworksRIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme Networks
 
Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Link State Protocol
Link State ProtocolLink State Protocol
Link State Protocol
 
OSPF Overview
OSPF OverviewOSPF Overview
OSPF Overview
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
 
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric VanderburgCCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
CCNA Routing and Switching Lessons 08-09 - Routing Protocols - Eric Vanderburg
 
Routing Information Protocol (RIP)
Routing Information Protocol(RIP)Routing Information Protocol(RIP)
Routing Information Protocol (RIP)
 
Routers.ppt
Routers.pptRouters.ppt
Routers.ppt
 
Routing Protocols
Routing Protocols Routing Protocols
Routing Protocols
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
Internet Routing Protocols: Fundamental Concepts of Distance-Vector and Link-...
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 
13. eigrp and ospf
13. eigrp and ospf13. eigrp and ospf
13. eigrp and ospf
 
Layer 2 & layer 3 switching
Layer 2 & layer 3 switchingLayer 2 & layer 3 switching
Layer 2 & layer 3 switching
 
Rip
RipRip
Rip
 
1164 Routers
1164 Routers1164 Routers
1164 Routers
 

Viewers also liked

為什麼商家需要App行銷
為什麼商家需要App行銷為什麼商家需要App行銷
為什麼商家需要App行銷Mike Chang
 
Yourprezi
YourpreziYourprezi
Yourprezi
karenfermon
 
Treatment of familial mediterranean fever: colchicine and beyond
Treatment of familial mediterranean fever: colchicine and beyondTreatment of familial mediterranean fever: colchicine and beyond
Treatment of familial mediterranean fever: colchicine and beyond
José Luis Moreno Garvayo
 
Osha_First aid kit_hackers
Osha_First aid kit_hackersOsha_First aid kit_hackers
Osha_First aid kit_hackers
Ouh Acoy
 
October 17
October 17October 17
October 17
timyasger
 
Micro elements
Micro elementsMicro elements
Micro elements
JMF1999
 
Social media, sousveillance and civil unrest in the United Kingdom
Social media, sousveillance and civil unrest in the United KingdomSocial media, sousveillance and civil unrest in the United Kingdom
Social media, sousveillance and civil unrest in the United Kingdom
Paul Reilly
 
2014 год олимпийский
2014 год   олимпийский2014 год   олимпийский
2014 год олимпийскийannut77
 
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang BrabantFotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
Zorgbelang Brabant
 
Esdipitchstartupvillage 130530064724-phpapp01
Esdipitchstartupvillage 130530064724-phpapp01Esdipitchstartupvillage 130530064724-phpapp01
Esdipitchstartupvillage 130530064724-phpapp01AnnaStrizhkina
 
Ntr 300 pp
Ntr 300 ppNtr 300 pp
Ntr 300 pp
ncmargulis
 
Planning my preliminary task
Planning my preliminary taskPlanning my preliminary task
Planning my preliminary task
hollyetty123
 
Elevate Landscape May 2016
Elevate Landscape May 2016Elevate Landscape May 2016
Elevate Landscape May 2016
Ann McLean
 
AD4026 BI Sesión 04
AD4026 BI Sesión 04AD4026 BI Sesión 04
AD4026 BI Sesión 04
Jorge Ramírez
 
IU9 Summer Institue 2009
IU9 Summer Institue 2009IU9 Summer Institue 2009
IU9 Summer Institue 2009
csmurphy575
 
Kontit pomppimaan3
Kontit pomppimaan3Kontit pomppimaan3
Kontit pomppimaan3
Arto Santala
 
Elverano
ElveranoElverano
Elverano
yoapauceles
 
IDS Credential 2016
IDS Credential 2016IDS Credential 2016
IDS Credential 2016
Manas Mishra
 
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
Wolfgang Stolle
 

Viewers also liked (20)

為什麼商家需要App行銷
為什麼商家需要App行銷為什麼商家需要App行銷
為什麼商家需要App行銷
 
Yourprezi
YourpreziYourprezi
Yourprezi
 
Copernica Marketingplan
Copernica MarketingplanCopernica Marketingplan
Copernica Marketingplan
 
Treatment of familial mediterranean fever: colchicine and beyond
Treatment of familial mediterranean fever: colchicine and beyondTreatment of familial mediterranean fever: colchicine and beyond
Treatment of familial mediterranean fever: colchicine and beyond
 
Osha_First aid kit_hackers
Osha_First aid kit_hackersOsha_First aid kit_hackers
Osha_First aid kit_hackers
 
October 17
October 17October 17
October 17
 
Micro elements
Micro elementsMicro elements
Micro elements
 
Social media, sousveillance and civil unrest in the United Kingdom
Social media, sousveillance and civil unrest in the United KingdomSocial media, sousveillance and civil unrest in the United Kingdom
Social media, sousveillance and civil unrest in the United Kingdom
 
2014 год олимпийский
2014 год   олимпийский2014 год   олимпийский
2014 год олимпийский
 
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang BrabantFotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
Fotoalbum nieuwjaarsbijeenkomst 2014 Zorgbelang Brabant
 
Esdipitchstartupvillage 130530064724-phpapp01
Esdipitchstartupvillage 130530064724-phpapp01Esdipitchstartupvillage 130530064724-phpapp01
Esdipitchstartupvillage 130530064724-phpapp01
 
Ntr 300 pp
Ntr 300 ppNtr 300 pp
Ntr 300 pp
 
Planning my preliminary task
Planning my preliminary taskPlanning my preliminary task
Planning my preliminary task
 
Elevate Landscape May 2016
Elevate Landscape May 2016Elevate Landscape May 2016
Elevate Landscape May 2016
 
AD4026 BI Sesión 04
AD4026 BI Sesión 04AD4026 BI Sesión 04
AD4026 BI Sesión 04
 
IU9 Summer Institue 2009
IU9 Summer Institue 2009IU9 Summer Institue 2009
IU9 Summer Institue 2009
 
Kontit pomppimaan3
Kontit pomppimaan3Kontit pomppimaan3
Kontit pomppimaan3
 
Elverano
ElveranoElverano
Elverano
 
IDS Credential 2016
IDS Credential 2016IDS Credential 2016
IDS Credential 2016
 
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
AQUABELL Mediterranean Fly, 1986, £39,950 For Sale Brochure. Presented By yac...
 

Similar to Day 4 LAYER 2 SWITCHING

C C N A Day4
C C N A  Day4C C N A  Day4
C C N A Day4
darulquthni
 
Networking interview questions and answers
Networking interview questions and answersNetworking interview questions and answers
Networking interview questions and answers
Amit Tiwari
 
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutionsSwitching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
Mike McLain
 
Bridging.ppt
Bridging.pptBridging.ppt
Ccna day4
Ccna day4Ccna day4
Ccna day4
Ccna day4Ccna day4
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
Reetesh Gupta
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
Sachin Morya
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
danishrafiq
 
Ccna free chapter
Ccna free chapterCcna free chapter
Ccna free chapter
kvs062003
 
Switching
SwitchingSwitching
Stp defined
Stp definedStp defined
Stp defined
Azeem Ayaz
 
Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011
Dân Chơi
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
RaghulR21
 
Quick Guide Layer 2 Switching
Quick Guide   Layer 2 SwitchingQuick Guide   Layer 2 Switching
Quick Guide Layer 2 Switching
CCNAResources
 
Lec1 lan switching
Lec1 lan switchingLec1 lan switching
Lec1 lan switching
karthiketrx
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree Protocol
Atakan ATAK
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wireless
kratos2424
 
6.switching vla ns
6.switching vla ns6.switching vla ns
6.switching vla ns
CYBERINTELLIGENTS
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
cisco49
 

Similar to Day 4 LAYER 2 SWITCHING (20)

C C N A Day4
C C N A  Day4C C N A  Day4
C C N A Day4
 
Networking interview questions and answers
Networking interview questions and answersNetworking interview questions and answers
Networking interview questions and answers
 
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutionsSwitching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
Switching vla ns_secugenius_harksh_mikemclain_secugenius security solutions
 
Bridging.ppt
Bridging.pptBridging.ppt
Bridging.ppt
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Ccna free chapter
Ccna free chapterCcna free chapter
Ccna free chapter
 
Switching
SwitchingSwitching
Switching
 
Stp defined
Stp definedStp defined
Stp defined
 
Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Quick Guide Layer 2 Switching
Quick Guide   Layer 2 SwitchingQuick Guide   Layer 2 Switching
Quick Guide Layer 2 Switching
 
Lec1 lan switching
Lec1 lan switchingLec1 lan switching
Lec1 lan switching
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree Protocol
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wireless
 
6.switching vla ns
6.switching vla ns6.switching vla ns
6.switching vla ns
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 

More from anilinvns

Data center maintenance
Data center maintenanceData center maintenance
Data center maintenance
anilinvns
 
Windows Server 2012
Windows Server 2012Windows Server 2012
Windows Server 2012
anilinvns
 
Windows Server 2008 Active Directory
Windows Server 2008 Active DirectoryWindows Server 2008 Active Directory
Windows Server 2008 Active Directory
anilinvns
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
anilinvns
 
Network forensics and investigating logs
Network forensics and investigating logsNetwork forensics and investigating logs
Network forensics and investigating logs
anilinvns
 
Password Policy and Account Lockout Policies
Password Policy and Account Lockout PoliciesPassword Policy and Account Lockout Policies
Password Policy and Account Lockout Policies
anilinvns
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
anilinvns
 
INTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERSINTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERS
anilinvns
 
Manage CISCO IOS
Manage CISCO IOSManage CISCO IOS
Manage CISCO IOS
anilinvns
 
Day 5 VIRTUAL LANS
Day 5 VIRTUAL LANSDay 5 VIRTUAL LANS
Day 5 VIRTUAL LANS
anilinvns
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
anilinvns
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
anilinvns
 
Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
anilinvns
 
Wds
WdsWds
Disk management server
Disk management serverDisk management server
Disk management server
anilinvns
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basics
anilinvns
 
Cyber forensic 1
Cyber forensic 1Cyber forensic 1
Cyber forensic 1
anilinvns
 

More from anilinvns (17)

Data center maintenance
Data center maintenanceData center maintenance
Data center maintenance
 
Windows Server 2012
Windows Server 2012Windows Server 2012
Windows Server 2012
 
Windows Server 2008 Active Directory
Windows Server 2008 Active DirectoryWindows Server 2008 Active Directory
Windows Server 2008 Active Directory
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Network forensics and investigating logs
Network forensics and investigating logsNetwork forensics and investigating logs
Network forensics and investigating logs
 
Password Policy and Account Lockout Policies
Password Policy and Account Lockout PoliciesPassword Policy and Account Lockout Policies
Password Policy and Account Lockout Policies
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
 
INTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERSINTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERS
 
Manage CISCO IOS
Manage CISCO IOSManage CISCO IOS
Manage CISCO IOS
 
Day 5 VIRTUAL LANS
Day 5 VIRTUAL LANSDay 5 VIRTUAL LANS
Day 5 VIRTUAL LANS
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
 
Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
 
Wds
WdsWds
Wds
 
Disk management server
Disk management serverDisk management server
Disk management server
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basics
 
Cyber forensic 1
Cyber forensic 1Cyber forensic 1
Cyber forensic 1
 

Recently uploaded

RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 

Recently uploaded (20)

RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 

Day 4 LAYER 2 SWITCHING

  • 1. LAYER 2 SWITCHING By Anil Kumar Vishwakarma MCA,MCTS,CCNA
  • 2.
  • 3. OVERVIEW  Introduction  Spanning Tree Protocol  Spanning Tree Terms  Spanning Tree Operations  LAN Switch Types  Configuring Switches
  • 4. INTRODUCTION  Switching Services  Unlike bridges that use software to create and manage a filter table, switches use application specific integrated circuits (ASICs) to build and maintain their filter tables.  A switch can be viewed as a multiport bridge.  Three Switch Functions at Layer 2 1. Address learning: Layer 2 switches and bridges remember the source hardware address of each frame received on an interface, and they enter this information into a MAC database called a forward/filter table. 2. Forward/filter decisions: When a frame is received on an interface, the switch looks at the destination hardware address and finds the exit interface in the MAC database. The frame is only forwarded out the specified destination port. 3. Loop avoidance: If multiple connections between switches are created for redundancy purposes, network loops can occur. Spanning Tree Protocol (STP) is used to stop network loops while still permitting redundancy.
  • 5. ADDRESS LEARNING When a switch is first powered on, the MAC forward/filter table is empty,
  • 6. FORWARD/FILTER DECISIONS  When a frame arrives at a switch interface, the destination hardware address is compared to the forward/filter MAC database.  If the destination hardware address is known and listed in the database, the frame is sent out only the correct exit interface.  The switch doesn’t transmit the frame out any interface except for the destination interface.  This preserves bandwidth on the other network segments and is called frame filtering.
  • 7. LOOP AVOIDANCE  Redundant links between switches are a good idea because they help prevent complete network failures in the event one link stops working.  the switches will flood broadcasts endlessly throughout the nternetwork.  This is sometimes referred to as a broadcast storm
  • 8. SPANNING TREE PROTOCOL  STP’s main task is to stop network loops from occurring on your layer 2 network switches.  It monitors the network to find all links, making sure that no loops occur by shutting down any redundant links.  STP uses the spanning-tree algorithm (STA) to first create a topology database, then search out and destroy redundant links.  With STP running, frames will be forwarded only on the premium, STP-picked links.
  • 9. SPANNING TREE TERMS  Bridge ID: It is determined by a combination of the bridge priority (32,768 by default on all Cisco switches) and the base MAC address. The bridge with the lowest bridge ID becomes the root bridge in the network.  Root bridge: is the bridge with the best bridge ID (the lowest bridge ID).  Nonroot bridge: These are all bridges that are not the root bridge. Nonroot bridges exchange BPDUs with all bridges and update the STP topology database on all switches.  BPDU: Bridge Protocol Data Unit (BPDU) the name of packet that they send to one neighbor with the one that they receive from another neighbor.  Root port: The root port is always the link directly connected to the root bridge, or the shortest path to the root bridge.
  • 10. SPANNING TREE TERMS  Designated port A designated port is one that has been determined as having the best (lowest) cost. A designated port will be marked as a forwarding port.  Port cost Port cost determines when multiple links are used between two switches and none are root ports. The cost of a link is determined by the bandwidth of a link.  Nondesignated port is one with a higher cost than the designated port. Nondesignated ports are put in blocking mode—they are not forwarding ports.  Blocked port A blocked port is the port that will not forward frames, in order to prevent loops. However, a blocked port will always listen to frames.
  • 11. SPANNING TREE OPERATIONS 1. Selecting the Root Bridge 2. Selecting the Root Port 3. Selecting the designated (Forward) port. 4. Spanning-Tree Port States  Blocking A blocked port won’t forward frames; it just listens to BPDUs.  Forwarding The port sends and receives all data frames on the bridged port.
  • 12. LAN SWITCH TYPES  LAN switch types decide how a frame is handled when it’s received on a switch port.  There are three switching modes: 1. Cut-through (FastForward) 2. FragmentFree (modified cut-through) the switch checks the first 64 bytes (caused by collision) of a frame before forwarding it for fragmentation. 3. Store-and-forward: In this mode, the complete data frame is received on the switch’s buffer, a CRC is run, and, if the CRC passes, the switch looks up the destination address in the MAC filter table.
  • 13. CONFIGURING SWITCHES  Setting the Passwords  1900 Switch (config)#enable password level 1 kkkk -----> User mode (config)#enable password level 15 kkkk1 -----> Enable Mode (config)#enable secret todd2 -----> Encrypted  2950 Switch Switch(config)#enable password todd -----> non Encrypted Switch(config)#enable secret todd -----> Encrypted  Setting the Hostname  1900 Switch (config)#host S1900  2950 Switch Switch(config)#host S2950
  • 14. CONFIGURING SWITCHES Setting IP Information  1900 Switch S1900#config t S1900(config)#ip address 172.16.10.16 255.255.255.0 S1900(config)#ip default-gateway 172.16.10.1  2950 Switch S2950#config t S2950(config)#int vlan1 S2950(config-if)#ip address 172.16.10.17 255.255.255.0 S2950(config-if)#no shut S2950(config-if)#exit S2950(config)#ip default-gateway 172.16.10.1
  • 15. CONFIGURING SWITCHES Configuring Interface Descriptions  1900 Switch S1900#config t S1900(config)#int e0/1 S1900(config-if)#desc Finance_VLAN  2950 Switch S2950#config t S2950(config)#int f 0/1 S2950(config-if)#desc Sales Printer
  • 16. CONFIGURING SWITCHES  Erasing the Switch Configuration  1900 Switch Todd1900#delete nvram  2950 Switch Todd2950#erase startup-config