Routing Routing Protocols Protocols: © 2006 Cisco Systems, Inc. All Rights Reserved. Cisco Confidential Presentation - ID
Routing Routing Protocols Protocols: © 2006 Cisco Systems, Inc. All Rights Reserved. Cisco Confidential Presentation - ID
Protocols
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Router Operations
The
e Router
ou e knows
o so only
y the
e networks
e o s it is
sddirectly
ec y co
connected
ec ed to.
o
It must learn all other destinations.
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Static Routes vs. Dynamic Routes
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Static Route Configuration
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Static Route Example
or
Router(config)#ip route 172.16.1.0 255.255.255.0 s0/0/0
RouterA#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
A special case: Default Routes
Benefits:
- No overhead on the router CPU
- No bandwidth usage between routers
- Securityy and control
Disadvantages:
g
- Administrative burden.
- Not practical in large networks.
- By default it is not conveyed to other routers
as part of an update process.
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Dynamic Routing Configuration
Router(config-router)#network network-number
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
RIP Overview
19.2 kbps
T1 T1
T1
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
RIP Configuration
Router(config)#router rip
Router(config-router)#network
g network-number
• Selects p
participating
p g attached networks.
• Requires a major classful network number.
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
RIP Configuration Example
e0 s2 s2 s3 s3 e1
172.16.1.0 A 192.168.1.0
B C
172 16 1 1 10.1.1.1
172.16.1.1 10 1 1 1 10 1 1 2
10.1.1.2 10.2.2.2 10.2.2.3 192.168.1.1
2.3.0.0
router rip 2.3.0.0
router rip
network 172.16.0.0 network 192.168.1.0
network 10.0.0.0 network 10.0.0.0
router rip
network 10.0.0.0
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
R2(config) router rip
R2(config-router)# network 192.168.0.0
R2(config-router)# network 192.168.2.0
R2(config-router)# network 192.168.3.0
.1 .1
.2 .2
Serial Serial Serial Serial
0/0/0 0/0/0 0/1/0 0/0/0
.1 .1 .1
192.168.1.0/24 192.168.2.0/24 192.168.4.0/24
.2 .2 .2
RouterX(config-router)#
network address wildcard-mask area area-id
Assigns
A i networks
k to a specific
ifi OSPF area
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Verifying the OSPF Configuration
RouterX# show ip protocols
Verifies that OSPF is configured
Gateway
y of last resort is 10.119.254.240 to network 10.140.0.0
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
Verifying the OSPF Configuration (Cont.)
RouterX# show ip ospf interface
Displays the area ID and adjacency information
Ethernet 0 is up
up, line protocol is up
Internet Address 192.168.254.202, Mask 255.255.255.0, Area 0.0.0.0
AS 201, Router ID 192.168.99.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State OTHER, Priority 1
Designated
g Router id 192.168.254.10,
, Interface address 192.168.254.10
Backup Designated router id 192.168.254.28, Interface addr 192.168.254.28
Timer intervals configured, Hello 10, Dead 60, Wait 40, Retransmit 5
Hello due in 0:00:05
Neighbor Count is 8, Adjacent neighbor count is 2
Adjacent with neighbor 192.168.254.28 (Backup Designated Router)
Adjacent with neighbor 192.168.254.10 (Designated Router)
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
Verifying the OSPF Configuration (Cont.)
RouterX# show ip ospf neighbor
Displays the OSPF neighbor information on a per-interface basis
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
Routing Protocol Comparison Chart
Presentation_ID © 2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20