Professional Documents
Culture Documents
m
Upon completion of this chapter, you will
be able to complete the following tasks:
Distinguish the use and operation of static and
dynamic routes
Configure and verify a static route
Identify how distance vector IP routing protocols
such as RIP and IGRP operate on Cisco routers
Enable Routing Information Protocol (RIP)
Enable Interior Gateway Routing Protocol (IGRP)
Verify IP routing with show and debug commands
]
M
î
M
]cî
Ô
Ô]
]
Ô
è
M
cc c cc
cc c cc
r
r
D
M
-
M
c
c
c
{ {
c
c
c
c
{ {
c
Î
c
V
c
c
c
c
{ {
c
c
c
Host A can ping router R1 and R2
o enable Host A to Ping Host B we need to configure
Routes
cc
M
·he different types of routing are:
· Static routing
· Default routing
· Dynamic routing
c]
M
· r
!"#
· r $
$
· Î
Ú
· Î
$%
· &'
$%
$%
cî
M
M
cÔ
M
¯
¯
¯
c
M
c
c
c
c
{ {
c
R2# config t
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2
c
R1# config t
R3# config t
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R3(config)#ip route 10.0.0.0 255.0.0.0 30.0.0.1
R1(config)#ip route 40.0.0.0 255.0.0.0 20.0.0.2
R3(config)#ip route 20.0.0.0 255.0.0.0 30.0.0.1
cD
À
M
c-
M¯
M
c
c
c
c
{ {
c
R2# config t
R2(config)#no ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#no ip route 40.0.0.0 255.0.0.0 30.0.0.2
c
R1# config t
R3# config t
R1(config)#no ip route 30.0.0.0 255.0.0.0 20.0.0.2
R3(config)#no ip route 10.0.0.0 255.0.0.0 30.0.0.1
R1(config)#no ip route 40.0.0.0 255.0.0.0 20.0.0.2
R3(config)#no ip route 20.0.0.0 255.0.0.0 30.0.0.1
c
Ú
M
Can only use default routing on stub networks
Stub networks are those with only one exit path out of
the network
he only routers that are considered to be in a stub
network are R1 and R3
c
c
c
c { {
c
c Î
cV
Ú
M
c cc
r
c
c c c cc
c
c
A default route is actually a special static route that uses this format:
Router(config)#
c
c
c
Router(config)#
]c
c
c
c
c {
c
{
c
]]
Ú
M
c
c
c
c {
c
{
c
M
M
c
c
M
Mc
M
Mc
M
c
]î
è
M
cc c cc
Routing protocols are
used between
routers to determine
paths and maintain
routing tables.
Once the path is
r
c c
determined a router can r
route a routed protocol.
cc
c c
c c c
]Ô
M
An Autonomous System (AS) is a group of IP networks, which has a
single and clearly defined routing policy.
Group of routers which can exchange updates
AS are identified by numbers
!!M
!
"
{
{
+,
)
$
"
'
$
Î
&
)
$"
'
$Î
*
{
{
{
*ÔV
'&)"+)"0 -&cîî]+#]&.Ô
r
$%/
D- ]D
¯
¯
M
]-
M
]
M
Distance Vector
· RIP V1
· IGRP
· RIP V2
Link state
· OSPF
Hybrid
· EIGRP
]V
M
m
Classful routing protocols do not include the subnet mask with the
route advertisement.
î
M
m
Classless routing protocols include the subnet mask with
the route advertisement.
Classless routing protocols support variable-length
subnet masking (VLSM) and subnetting
Examples of classless routing protocols:
RIP Version 2 (RIPv2)
EIGRP
OSPF
IS-IS
îc
Ú
À
M
1
0 0
0
'
*
î]
Ú
À
Uses Bellman Ford Algorithm
It needs to find out the shortest path from one network to other
How to determine which path is best?
c
c
c
c
c
c
c
îî
Ú
À
c
c
c
c
c
c
c
here are two Distance Vector Protocol, Both uses different metric
RIP ƛ Hops
IGRP - Composite
îÔ
Ú
À
c
M
c c c c
c
c
c
c
î
Ú
À
c c
!
c
!
M c
!
c
c
c
c
c
c
c
c
c
c c
c
c
îD
M
Î
$%0
$0%
î-
¯
ñ
Ú
M
1
0
'
*
î
M
1 +
'
'
0
$%*
îV
M
1 $
0
*
Ô
M
1 M$!
%
#&
'
Ôc
M
1 M
%!!#%
Ô]
^
c
Ôî
M
1
& #& ' %!%#
$
ÔÔ
Ú
!¯¯
1
'
'0 0
'
0 *
Ô
!¯¯
^
One way of solving routing loop problem is to define a
maximum hop count.
ÔD
^ "
1 &
'
'
%
'$
'
*
Ô-
^ "
Solution to the Routing Loop problem
Split Horizon is a rule that routing
information cannot be sent back in the
direction from which it was received
Had split horizon been used in our
example, Router B would not have
included information about network
10.4.0.0 in its update to Router C.
Ô
M
Route Poisoning. Usually used in conjunction with split
horizon
Route poisoning involves explicitly poisoning a routing
table entry for an unreachable network
Once Router C learned that network 10.4.0.0 was
unavailable it would have immediately poisoned the
route to that network by setting its hop count to the
routing protocolƞs infinity value
In the case of RIP, that would mean a hop count of 16*
ÔV
ñ
#ñ
New routing tables are sent to neighboring routers on a regular basis.
ñ
#ñ
$
c
^ ññ
Holddowns are a technique used to ensure that a route recently
removed or changed is not reinstated by a routing table update
from another route
Holddown prevents regular update messages from reinstating a
route that is going up and down (called flapping)
Holddowns prevent routes from changing too rapidly by allowing
time for either the downed route to come back up
Holddowns make a router wait a period of time before accepting an
update for a network whose status or metric has recently changed
]
^ ññ
¯
î
% %
c
c
c
c
c
c
c
(&%
(&%
Ô