Overview of CCNA Routing Protocols
Overview of CCNA Routing Protocols
▰ Protocol Categories
1
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Classifying Routing Protocols
✓ Behavior:
▪ Classful (legacy)
▪ Classless protocol
[Link] 2
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Abbreviations –
[Link] 3
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
IGP EGP Protocols
Interior gateway Exterior gateway
✓ IGP:
▪ Interior gateway protocols are used to exchange
routing information with other routers within single
autonomous system. These systems can include one
routing network or a group of networks operating
under the same control.
✓ EGP:
▪ Exterior Gateway protocols are used for
communicate information between networks in
different autonomous systems
[Link] 4
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
AS (autonomous system )
✓ An autonomous system is
1. A collection of networks under one administrative
domain or group
[Link] 5
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
AS (autonomous system ) Number
[Link] 6
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Distance Vector & Link State
✓ Distance Vector
▪ RIP v1 , RIP v2, IGRP (cisco old)
✓ Link State
▪ OSPF , IS-IS
▪ EIGRP
[Link] 7
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Lets Compare
Distance Vector & Link State
[Link]/24
✓ If we consider the first octet it belongs to Class A & network portion is 8 bit
▪ Classful subnet mask will be [Link]
▪ Classful Network ID will be [Link]
[Link] 9
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
CLASS-FULL Routing protocols
[Link] 10
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
CLASS-LESS Routing protocols
▪ RIPv2
▪ EIGRP (no auto-summary)
▪ OSPF
▪ IS-IS
[Link] 11
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
AD Administrative Distance
✓ Router gives the priority to any routing protocol on the basis of AD value.
✓ Lower AD value is the best
✓ We can customize AD value to customize result.
✓ Following AD values are applicable on CISCO Routers
Protocol Codes Code Explain AD values
C Connected 0
S Static 1
R RIP 120
O OSPF 110
D (Dual) Eigrp Internal 90
DEX (Dual) Eigrp External 170
EBGP Exterior BGP 20
[Link] 12
IBGP
[Link] Interior BGP | +92-3348-15-15-25
| ezxprt@[Link] 200 | +92-3178-88-39-79
Metric
✓ Routing Protocol use Metric as Criteria to measure path from source to destination
✓ Every protocol has its own metric
✓ Lower Metric Value is the best
✓ Static Route as no Metric but AD Value to Customize
✓ BGP has no metric but attributes
[Link] 13
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Example
[Link]
15
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Rip (Routing Information Protocol)
✓ Rip Timers
▪ Update Time 30 Sec Advertise Complete Routing Table
▪ Invalid Time 180 Sec 30x6
▪ Hold Time 180 Sec Alternate Path
▪ Flush Time 240 Sec Invalid Time + 60 Remove From Routing Table
[Link] 16
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Ripv1 & Rip v2
[Link] 17
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Configuration of Rip v1
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router rip
▪ R1(config-router)# network [Link]
▪ R1(config-router)# network [Link]
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router rip
▪ R2(config-router)# network [Link] Note: Same RIP version on both Routers
▪ R2(config-router)# network [Link]
[Link] 18
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Configuration of Rip v2
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router rip
▪ R1(config-router)# version 2
▪ R1(config-router)# no auto-summary
▪ R1(config-router)# network [Link]
▪ R1(config-router)# network [Link]
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router rip
▪ R2(config-router)# version 2 Note: Same RIP Version on both Routers
▪ R2(config-router)# no auto-summary
▪ R2(config-router)# network [Link]
[Link]
▪ R2(config-router)# network [Link] 19
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Rip T-Shoot Scenario
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router rip
▪ R1(config-router)# network [Link]
▪ R1(config-router)# network [Link]
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router rip
▪ R2(config-router)# version 2 Note: R1 will accept Ripv2 updates from neighbor R2
▪ R2(config-router)# no auto-summary R2 will no accept Ripv1 updates from neighbor R1
▪ R2(config-router)# network [Link]
▪ R2(config-router)# network [Link]
[Link] 20
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
RIP Verification Commands
✓ T-shoot Command
▪ R1# debug ip rip
▪ R1# U all
[Link] 22
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Routing Protocol
EIGRP
[Link]
23
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
EIGRP
Enhanced Interior Gateway Routing Protocol Cont…….
[Link] 24
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
EIGRP
Enhanced Interior Gateway Routing Protocol
✓ EIGRP Tables
▪ Neighbor table – stores information about EIGRP neighbors
▪ Topology table – stores routing information learned from neighboring routers
▪ Routing table – stores the best routes
[Link] 25
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Configuration of EIGRP 1
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router eigrp 1
▪ R1(config-router)# no auto-summary
▪ R1(config-router)# network [Link]
▪ R1(config-router)# network [Link]
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router eigrp1
▪ R2(config-router)# no auto-summary Note: We may use wild card mask while advertising Network IDS
▪ R2(config-router)# network [Link]
▪ R2(config-router)# network [Link]
[Link] 26
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
EIGRP T-Shoot Scenario
Mismatch AS Numbers
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router eigrp 11
▪ R1(config-router)# no auto-summary
▪ R1(config-router)# network [Link]
▪ R1(config-router)# network [Link]
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router eigrp1
▪ R2(config-router)# no auto-summary Note: There is no neighbor relationship due to Mismatch As Number
▪ R2(config-router)# network [Link]
▪ R2(config-router)# network [Link]
[Link] 27
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Common EIGRP Problems
[Link] 28
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Eigrp Verification Commands
✓ # show ip protocol
✓ # show ip eigrp neighbor
✓ # show ip eigrp topology
✓ # show ip route
✓ # show ip route Eigrp
✓ # show running-config
[Link] 29
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
Lab # 11:
30
[Link] info@[Link]
Routing Protocol
OSPF v2
[Link]
31
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF
[Link]
Note: Default Reference B.W from 100Mbps to 100Gbps is 100 32
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Network Types
✓ 120 Sec
[Link] 33
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Terminologies
✓ OSPF Process ID
[Link] 34
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Router ID
✓ OSPF Router ID
▪ Unique identification of Router in OSPF topology
▪ Every OSPF Process needs a separate Router-ID
▪ Router ID is used for DR & BDR Election
[Link] 35
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
DR | BDR | DROTHER
[Link] 36
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
DR & BDR Election Criteria
✓ [Link]
▪ For all OSPF Routers
▪ Use to send information to all OSPF routers
▪ Sends hello packets out all OSPF interfaces
✓ [Link]
▪ For DR & BDR
▪ Is used by routers only to send ospf routing updates to DR and BDR
▪ [Link] (contagious)
Single Host [Link] [Link]
▪ [Link] (discontagious)
Note: Routing protocols EIGRP & OSPF use Contagious and ACL use both
[Link] 39
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Areas
[Link] 40
[Link] | ezxprt@[Link] | +92-3348-15-15-25
Note: All areas must | +92-3178-88-39-79
be connected with Area 0
OSPF Tables…
✓ Neighbor table
▪ Directly connected
✓ Topology table
▪ Contains all available OSPF routers
▪ Calculated best and alternative paths
✓ Routing table
▪ Contains the best path
[Link] 41
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Single Area
Configuration
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router ospf 1
▪ R1(config-router)# network [Link] [Link] a 0
▪ R1(config-router)# network [Link] [Link] a 0
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router ospf 1
▪ R2(config-router)# network [Link] [Link] a 0
▪ R2(config-router)# network [Link] [Link] a 0
[Link]
Note: OSPF Process id can be different on both routers 42
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Multiarea
Configuration
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router ospf 1
▪ R1(config-router)# network [Link] [Link] a 1
▪ R1(config-router)# network [Link] [Link] a 0
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router ospf 1
▪ R2(config-router)# network [Link] [Link] a 2
▪ R2(config-router)# network [Link] [Link] a 0
✓ Configuration on R1
▪ R1> enable
▪ R1# config t
▪ R1(config)# router ospf 1
▪ R1(config-router)# network [Link] [Link] a 0
▪ R1(config-router)# network [Link] [Link] a 1
✓ Configuration on R2
▪ R2> enable
▪ R2# config t
▪ R2(config)# router ospf 1
▪ R2(config-router)# network [Link] [Link] a 2
▪ R2(config-router)# network [Link] [Link] a 1
Note: Topology will not be converged because Area 0 is not centrally involved
[Link] 44
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF Verification Commands
✓ # show ip ospf
▪ Router-id
✓ # show ip ospf database
▪ Topology table
▪ Router type
▪ SPF algorithm
✓ # show ip route
▪ DR | BDR
✓ # show ip route ospf
▪ Network Type
✓ # show running-config
▪ Trouble shooting
▪ Link cost
▪ DR | BDR
[Link] ▪ Timers 45
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
OSPF T-Shoot
[Link] 46
[Link] | ezxprt@[Link] | +92-3348-15-15-25 | +92-3178-88-39-79
47