Catalyst Switch Operations: © 2000, Cisco Systems, Inc
Catalyst Switch Operations: © 2000, Cisco Systems, Inc
Catalyst Switch
Operations
• Address learning
• Forward/filter decision
• Loop avoidance
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-3
How Switches Learn Host
Locations
Star topology
MAC address table
A B
0260.8c01.1111 0260.8c01.3333
E0 E1
C E2 E3 D
0260.8c01.2222 0260.8c01.4444
A B
0260.8c01.1111 0260.8c01.3333
E0 E1
C D
E2 E3
0260.8c01.2222 0260.8c01.4444
0260.8c01.1111 0260.8c01.3333
E0 E1
C E2 E3 D
0260.8c01.2222 0260.8c01.4444
0260.8c01.2222 0260.8c01.4444
C E2 E3 D
0260.8c01.2222 0260.8c01.4444
Server/host X Router Y
Segment 1
Segment 2
Segment 1
Broadcast
Switch A Switch B
Segment 2
Server/host X Router Y
Segment 1
Broadcast
Switch A Switch B
Segment 2
Segment 1
Segment 2
Segment 1
Switch A Switch B
Segment 2
Segment 1
Unicast
Unicast
Switch A Switch B
Segment 2
Server/host X Router Y
Segment 1
Unicast Unicast
Port 0 Port 0
Switch A Switch B
Port 1 Port 1
Segment 2
Server/host X Router Y
Segment 1
Unicast Unicast
Port 0 Port 0
Switch A Switch B
Port 1 Port 1
Segment 2
• Host X sends an unicast frame to Router Y
• Router Y MAC Address has not been learned by either Switch yet
• Switch A and B learn Host X MAC address on port 0
• Frame to Router Y is flooded
• Switch A and B incorrectly learn Host X MAC address on port 1
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-16
Multiple Loop Problems
Server/host
Broadcast
Loop
Loop
Loop
Workstations
x Block
100baseT
10baseT
Switch X Switch Y
Default priority 32768 BPDU Default priority 32768
(8000 hex) (8000 hex)
MAC 0c0011111111 MAC 0c0022222222
10baseT
Link Speed Cost (reratify IEEE spec) Cost (previous IEEE spec)
----------------------------------------------------------------------------------------------------
10 Gbps 2 1
1 Gbps 4 1
100 Mbps 19 10
10 Mbps 100 100
100baseT
Port 0 Port 0
Switch X Switch Y
MAC 0c0011111111 MAC 0c0022222222
Default priority 32768 Default priority 32768
Port 1 Port 1
100baseT
Can you figure out:
• What is the root bridge?
• What are the designated, nondesignated, and root ports?
• Which are the forwarding and blocking ports?
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-23
Spanning-Tree:
Switch Z
Mac 0c0011110000
Default priority 32768
Port 0
Designated port (F)
100baseT
Port 0 Root port (F) Port 0 Root port (F)
Switch X Switch Y
MAC 0c0011111111 MAC 0c0022222222
Default priority 32768 Default priority 32768
Port 1
Designated port (F) Port 1 Nondesignated port (BLK)
100baseT
Can you figure out:
• What is the root bridge?
• What are the designated, nondesignated, and root parts?
• Which are the forwarding and blocking ports?
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-24
Spanning-Tree Port States
Blocking
(20 sec)
Listening
Total after 50 seconds
(15 sec)
Learning
(15 sec)
Forwarding
100baseT
10baseT
100baseT
x
Switch X MAXAGE
x
Switch Y
MAC 0c0011111111 MAC 0c0022222222
Default priority 32768 Root Bridge Default priority 32768
Port 1 BPDU Port 1
Designated port
x Nondesignated port (BLK)
10baseT
Frame
Frame Frame
Frame
Faida : error
Frame
checked (CRC)
Nuqsan : speed
betahasha slow
CRC :
Pre assigned number se usko divide krte hain aur remainder send krdete
hain destination pe
FCS :
Frame Frame
Frame
Frame
Fragment free
(modified cut-through)—Cat1900 Default
• Switch checks the first 64 bytes then immediately
begins forwarding frame
Frame
Switch
Half duplex (CSMA/CD)
• Unidirectional data flow
• Higher potential for collison Hub
• Hubs connectivity
Switch
Half duplex (CSMA/CD)
• Unidirectional data flow
• Higher potential for collison Hub
• Hubs connectivity
Full duplex
• Point-to-point only
• Attached to dedicated switched port
• Requires full-duplex support on both ends
• Collision free
• Collision detect circuit disabled
• Catalyst 1900
– Menu driven interface
– Web-based VSM
(Visual Switch Manager)
– IOS CLI
(command-line interface)
• IP address: 0.0.0.0
• CDP: Enabled
• Switching mode: fragment free
• 100baseT port: Auto-negotiate duplex mode
• 10baseT port: Half duplex
• Spanning Tree: Enabled
• Console password: none
Cat1912 Cat1924
wg_sw_d#sh run
wg_sw_d#sh span
Show spanning tree protocol
Building configuration...
Port Ethernet 0/1 of VLAN1 is Forwarding
Current configuration:
Port path cost 100, Port priority 128
!
Designated root has priority 32768, address 0090.8673.3340
!
Designated bridge has priority 32768, address 0090.8673.3340
interface Ethernet 0/1
Designated port is Ethernet 0/1, path cost 0
!
Timers: message age 20, forward delay 15, hold 1
interface Ethernet 0/2
• Configuration Modes
Global configuration mode
wg_sw_a# conf term
wg_sw_a(config)#
Interface configuration mode
wg_sw_a(config)# interface e0/1
wg_sw_a(config-if)#
wg_sw_a(config)#
wg_sw_a(config)#
wg_sw_a(config)#
wg_sw_a#show ip
IP address: 10.5.5.11
Subnet mask: 255.255.255.0
Default gateway: 10.5.5.3
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Name server 2: 0.0.0.0
HTTP server: Enabled
HTTP port: 80
RIP: Enabled
wg_sw_a#
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-45
Speed and Duplex Options
wg_sw_a(config)#interface e0/1
wg_sw_a(config-if)#
wg_sw_a(config)#interface e0/1
wg_sw_a(config-if)#
wg_sw_a(config-if)#duplex half
Et he r ne t 0/ 1 i s Enabl e d
Har dwar e i s Bui l t - i n 10Bas e - T
Addr e s s i s 0090. 8673. 3341
MTU 1500 byt e s , BW 10000 Kbi t s
802. 1d STP St at e : For war di ng For war d Tr ans i t i ons : 1
Por t moni t or i ng: Di s abl e d
Unknown uni c as t f l oodi ng: Enabl e d
Unr e gi s t e r e d mul t i c as t f l oodi ng: Enabl e d
De s c r i pt i on:
Dupl e x s e t t i ng: Hal f dupl e x
Bac k pr e s s ur e : Di s abl e d
Re c e i ve St at i s t i c s Tr ans mi t St at i s t i c s
------------------------------------- -------------------------------------
Tot al good f r ame s 44841 Tot al f r ame s 404502
Tot al oc t e t s 4944550 Tot al oc t e t s 29591574
Br oadc as t / mul t i c as t f r ame s 31011 Br oadc as t / mul t i c as t f r ame s 390913
Br oadc as t / mul t i c as t oc t e t s 3865029 Br oadc as t / mul t i c as t oc t e t s 28478154
Good f r ame s f or war de d 44832 De f e r r al s 0
Fr ame s f i l t e r e d 9 Si ngl e c ol l i s i ons 0
Runt f r ame s 0 Mul t i pl e c ol l i s i ons 0
No buf f e r di s c ar ds 0 Exc e s s i ve c ol l i s i ons 0
Que ue f ul l di s c ar ds 0
Er r or s : Er r or s :
FCS e r r or s 0 Lat e c ol l i s i ons 0
Al i gnme nt e r r or s 0 Exc e s s i ve de f e r r al s 0
Gi ant f r ame s 0 Jabbe r e r r or s 0
Addr e s s vi ol at i ons 0 Ot he r t r ans mi t e r r or s 0
Duplex mismatches
Behter hy auto hi rakhlo
Auto negotiate
Re c e i ve St at i s t i c s Tr ans mi t St at i s t i c s
------------------------------------- -------------------------------------
Tot al good f r ame s 44841 Tot al f r ame s 404502
Tot al oc t e t s 4944550 Tot al oc t e t s 29591574
Br oadc as t / mul t i c as t f r ame s 31011 Br oadc as t / mul t i c as t f r ame s 390913
Br oadc as t / mul t i c as t oc t e t s 3865029 Br oadc as t / mul t i c as t oc t e t s 28478154
Good f r ame s f or war de d 44832 De f e r r al s 0
Fr ame s f i l t e r e d 9 Si ngl e c ol l i s i ons 0
Runt f r ame s 0 Mul t i pl e c ol l i s i ons 0
No buf f e r di s c ar ds 0 Exc e s s i ve c ol l i s i ons 0
Que ue f ul l di s c ar ds 0
Er r or s : Er r or s :
FCS e r r or s 0 Lat e c ol l i s i ons 0
Al i gnme nt e r r or s 0 Exc e s s i ve de f e r r al s 0
Gi ant f r ame s 0 Jabbe r e r r or s 0
Addr e s s vi ol at i ons 0 Ot he r t r ans mi t e r r or s 0
wg_sw_a#show mac-address-table
wg_sw_a#show mac-address-table
wg_sw_a#sh mac-address-table
Number of permanent addresses : 0
Number of restricted static addresses : 0
Number of dynamic addresses : 6
Is ethernet 0/3 k sath ab sirf aur sirf yei MAC(2222.2222.2222) kaam karega
wg_sw_a#sh mac-address-table
Number of permanent addresses : 1
Number of restricted static addresses : 0
Number of dynamic addresses : 4
e0/4 sirf e0/1 se data receive karegi aur kisi se nae karegi
wg_sw_a(config-if)#
wg_sw_a(config-if)#
wg_sw_a#
copy tftp://host/src_file nvram
wg_sw_a#
copy tftp://host/src_file nvram
fa0/24
core_ server
(tftp server) core_sw_a
10.1.1.1 10.1.1.2
© 2000, Cisco Systems, Inc. www.cisco.com ICND v1.0a—6-68
Summary
Catalyst 1900?
fragment free mode