ca_ex_s2m05_rip version 1.ppt [compatibility mode]
TRANSCRIPT
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
1/60
Chapter 5: RIP version 1
CCNA Ex loration version 4.0
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
2/60
Objectives
Describe the functions, characteristics, and operationof the RIPv1 protocol.
Configure a device for using RIPv1. Verify proper RIPv1 operation. Describe how RIPv1 erforms automatic
Hc vin mng Bch Khoa - Website: www.bkacad.com 2
summarization. Configure, verify, and troubleshoot default routes
propagated in a routed network implementing RIPv1.
Use recommended techniques to solve problemsrelated to RIPv1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
3/60
RIPv1: Distance Vector,
Hc vin mng Bch Khoa - Website: www.bkacad.com 3
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
4/60
RIP History
Hc vin mng Bch Khoa - Website: www.bkacad.com 4
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
5/60
RIP Characteristics
1. A classful, Distance Vector (DV)routing protocol
2. Metric = hop count
3. Routes with a hop count > 15 are
Hc vin mng Bch Khoa - Website: www.bkacad.com 5
unreachable (considers a metric of16 as infinity )
4. Updates are broadcast every 30seconds
5. Calculates metrics using the
Bellman Ford algorithm
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
6/60
RIP Message Format
Hc vin mng Bch Khoa - Website: www.bkacad.com 6
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
7/60
RIP Message Format
RIP header - divided into 3 fields
1. Command field2. Version field
3. Must be zero
Hc vin mng Bch Khoa - Website: www.bkacad.com 7
Route Entry - composed of 3 fields1. Address family identifier
2. IP address3. Metric
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
8/60
RIPv1 Message
Hc vin mng Bch Khoa - Website: www.bkacad.com 8
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
9/60
RIP Operation
RIP uses 2 message types:
1. Request message Each RIP-configured interface sends
out a request message on startup,
Hc vin mng Bch Khoa - Website: www.bkacad.com 9
requesting that all RIP neighborssend their complete routing tables.
2. Response message
A response message is sent back byRIP-enabled neighbors.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
10/60
RIPv1
a) b)
Hc vin mng Bch Khoa - Website: www.bkacad.com 10
c)Triggered update
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
11/60
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
12/60
RIPv1
RIP is a classful routing protocol1. Does not send subnet masks in routing
updates2. When update routing information, using:
1. The subnet mask confi ured on a local
Hc vin mng Bch Khoa - Website: www.bkacad.com 12
interface2. or applies the default subnet mask
based on the address class.
3. RIPv1 networks cannot be discontiguousnor can they implement VLSM.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
13/60
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
14/60
Administrative Distance
Default AD=120.
When compared to other interiorgateway protocols, RIP is the
Hc vin mng Bch Khoa - Website: www.bkacad.com 14
- . IS-IS, OSPF, IGRP, and EIGRP
all have lower default AD values.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
15/60
Basic RIPv1 Configuration
Hc vin mng Bch Khoa - Website: www.bkacad.com 15
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
16/60
Basic RIPv1 Configuration
Router(config)# router rip Router(config-router)# network A.B.C.D
Hc vin mng Bch Khoa - Website: www.bkacad.com 16
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
17/60
R1(config)#router rip (config-router)#network 192.168.1.0 (config-router)#network 192.168.2.0 (config-router)#network 172.16.1.0
R2(config)#router rip
(config-router)#network 192.168.3.0 (config-router)#network 192.168.2.0 (config-router)#network 172.16.2.0
Hc vin mng Bch Khoa - Website: www.bkacad.com 17
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
18/60
Specifying Networks
Hc vin mng Bch Khoa - Website: www.bkacad.com 18
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
19/60
Specifying Networks
Router(config-router)#networkdirectly-connected-classful-
network-address
Enables RIP on all interfaces that belong
Hc vin mng Bch Khoa - Website: www.bkacad.com 19
to a spec c networ . ssoc ateinterfaces will now both send and receiveRIP updates.
Advertises the specified network in RIProuting updates sent to other routersevery 30 seconds.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
20/60
Specifying Networks
Typing interface IP addresses as the following:
Router(config-if)#router rip
Router(config-router)#network 1.1.1.1Router(config-router)#network 1.1.1.2
. . .
show running-config
router rip
network 1.0.0.0
network 3.0.0.0
Hc vin mng Bch Khoa - Website: www.bkacad.com 20
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
21/60
Verification and Troubleshooting
Hc vin mng Bch Khoa - Website: www.bkacad.com 21
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
22/60
show ip route
Hc vin mng Bch Khoa - Website: www.bkacad.com 22
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
23/60
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
24/60
show ip protocols
Hc vin mng Bch Khoa - Website: www.bkacad.com 24
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
25/60
show ip protocols
RIP routing is configured
The correct interfaces send andreceive RIP updates
Hc vin mng Bch Khoa - Website: www.bkacad.com 25
e rou er a ver ses e correcnetworks RIP neighbors are sending updates Animation 5.3.2
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
26/60
Animation 5.3.3
debug ip rip
Hc vin mng Bch Khoa - Website: www.bkacad.com 26
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
27/60
Passive interfaces
To prevent a router from sending updates through aninterface.
Example:
Router(config-router)#passive-interface FastEthernet 0/0
Hc vin mng Bch Khoa - Website: www.bkacad.com 27
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
28/60
Passive interfaces
Hc vin mng Bch Khoa - Website: www.bkacad.com 28
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
29/60
Remove RIP
To remove the RIP routing process use
the following commandRouter(config)#no router rip
Hc vin mng Bch Khoa - Website: www.bkacad.com 29
o c ec e con gura on use efollowing commandRouter#show running-config
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
30/60
Automatic Summarization
Hc vin mng Bch Khoa - Website: www.bkacad.com 30
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
31/60
Automatic Summarization
Hc vin mng Bch Khoa - Website: www.bkacad.com 31
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
32/60
Automatic Summarization
Boundary Routers RIP automatically summarizes
Hc vin mng Bch Khoa - Website: www.bkacad.com 32
Boundary routers summarize RIPsubnets from one major networkto another.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
33/60
Automatic Summarization
Hc vin mng Bch Khoa - Website: www.bkacad.com 33
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
34/60
Automatic Summarization
Major network = Classful
Hc vin mng Bch Khoa - Website: www.bkacad.com 34
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
35/60
Processing RIP Updates
2 rules govern RIPv1 updates:
1. If a routing update and the interface itsreceived on belong to the samenetwork then the subnet mask of the
Hc vin mng Bch Khoa - Website: www.bkacad.com 35
routing update
2. If a routing update and the interface itsreceived on belong to a different
network then the classful subnet maskof the network is applied to the networkin the routing update.
10 1 0 0/16
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
36/60
Router 1Router 2
12.1.0.0/16
10.1.0.0/16
10.3.0.0/16
.1.2 .1
.2
.2
10.2.0.0/16
+ 10.1.0.0/16 is same major net as sourcing of update 10.2.0.0/16 ?
-Yes: are they have same subnet mask?
- Yes : advertise the subnet 10.1.0.0/16
+ 12.1.0.0 /16 is same major net as sourcing of update 10.2.0.0/16 ?
- No: Summarize to 12.0.0.0 to advertise
+ Is 12.0.0.0 same major net as receiving interface 10.2.0.0/16 ?
-No: do any of this major net exist in RT?
- No : Router 2 apply major net 12.0.0.0/8 to RT
+ 10.1.0.0 /16 same major net as receiving interface 10.2.0.0/16 ?
- Yes:Router 2 apply mask of receiving interface (/16) to subnet
Send update
Same major Summarize
to major
Same mask
Advertise update
N
N
Y
Y
Receive update
Same major Subnet in RT
Install route using
receiving maskinterface
N
N
Y
Y
Install major route
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
37/60
Router 1Router 2
10.1.0.0/1610.2.0.0/16
.1.2
.1.2 172.16.0.0/16
+ 10.1.0.0/16 is same major net as sourcing of update 172.16.0.0/16 ?
-No:Summarize to 10.0.0.0 to advertise
+ Is 10.0.0.0 same major net as receiving interface 172.16.0.0/16 ?
-No: do any of this major net exist in RT known from interfaces
other than that which received the update?
Discontiguous network
Using debug ip rip to see update - Yes : Router 2 ignore the update
Static route:ip route network [ mask] { address | interface } [ distance] [ permanent ]
On Router 1:
ip route 10.2.0.0 255.255.0.0 172.16.0.1
On Router 2
ip route 10.1.0.0 255.255.0.0 172.16.0.2
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
38/60
Processing RIP Updates
Hc vin mng Bch Khoa - Website: www.bkacad.com 38
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
39/60
Sending RIP Updates
Hc vin mng Bch Khoa - Website: www.bkacad.com 39
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
40/60
Advantages of Automatic Summarization
Hc vin mng Bch Khoa - Website: www.bkacad.com 40
S
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
41/60
Advantages of Automatic Summarization
RIP uses automatic summarization
to reduce the size of a routingtable.
Hc vin mng Bch Khoa - Website: www.bkacad.com 41
Single routes are used torepresent multiple routes which
results in faster lookup in therouting table.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
42/60
Disadvantages of Automatic Summarization
Hc vin mng Bch Khoa - Website: www.bkacad.com 42
Does not support discontiguous networks
Di d t f A t ti S i ti
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
43/60
Disadvantages of Automatic Summarization
Discontiguous Topologies do notconverge with RIPv1
Hc vin mng Bch Khoa - Website: www.bkacad.com 43
network addresses out interfacesthat do not belong to the
advertised route.
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
44/60
Default Route and RIPv1
Hc vin mng Bch Khoa - Website: www.bkacad.com 44
D f lt R t d RIP 1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
45/60
Default Route and RIPv1
Hc vin mng Bch Khoa - Website: www.bkacad.com 45
D f lt R t d RIP 1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
46/60
Default Route and RIPv1
Packets that are not defined specifically in arouting table will go to the specifiedinterface for the default route
Exam le: Customer routers use default
Hc vin mng Bch Khoa - Website: www.bkacad.com 46
routes to connect to an ISP router.
Router(config)# ip route 0.0.0.0 0.0.0.0{exit-interface | next-hop IP address}
Default Route and RIPv1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
47/60
Default Route and RIPv1
Hc vin mng Bch Khoa - Website: www.bkacad.com 47
Default Route and RIPv1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
48/60
Default Route and RIPv1
Propagating the Default Route inRIPv1:
Router(config-router)# default-informationoriginate
Hc vin mng Bch Khoa - Website: www.bkacad.com 48
s comman s use o spec y athe router is to originate defaultinformation, by propagating the static
default route in RIP update.
Default Route and RIPv1
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
49/60
Default Route and RIPv1
Hc vin mng Bch Khoa - Website: www.bkacad.com 49
Gateway of last resort
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
50/60
Gateway of last resort
Hc vin mng Bch Khoa - Website: www.bkacad.com 50
Propogate the static default route
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
51/60
Propogate the static default route
Gate(config)#
Ip route 0.0.0.0 0.0.0.0 serial0/1
Gate(config)#router rip
default-information originateOr
Gate(config)#router ripredistribute static
Hc vin mng Bch Khoa - Website: www.bkacad.com 51
Other command
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
52/60
Other command
Router# clear ip route * Delete all route entries in RT. Do
not effect to the directly connectedroutes.
Hc vin mng Bch Khoa - Website: www.bkacad.com 52
Other command
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
53/60
Other command
Hc vin mng Bch Khoa - Website: www.bkacad.com 53
Other command
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
54/60
Other command
Hc vin mng Bch Khoa - Website: www.bkacad.com 54
Q/A
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
55/60
Q/A
All routers are configured with valid interface addresses inthe indicated networks and are running RIPv1. Thenetwork is converged. Which routes are present in therouting tables?
Hc vin mng Bch Khoa - Website: www.bkacad.com 55
Q/A
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
56/60
Q/A
The Ethernet interface on Router2 goes down and theadministrator notices that the route is still valid in therouting table of Router1. How much longer will it take forRouter1 to mark the route invalid by setting the metric to
16? Hc vin mng Bch Khoa - Website: www.bkacad.com 56
Labs
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
57/60
1. Basic RIP Configuration2. Challenge RIP Configuration3. RIP Troubleshooting
Hc vin mng Bch Khoa - Website: www.bkacad.com 57
Summary
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
58/60
y
RIP characteristics include:
Classful, distance vector routing protocolMetric is Hop Count
Hc vin mng Bch Khoa - Website: www.bkacad.com 58
subnetsUpdates every 30 seconds
Rip messages are encapsulated in a UDP
segment with source and destination ports of520
Summary: Commands used by RIP
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
59/60
y y
Command Commands purpose
Rtr(config)#router rip Enables RIP routing process
Rtr(config-router)#network Associates a network with a RIP routing process
Hc vin mng Bch Khoa - Website: www.bkacad.com 59
Rtr#debug ip rip used to view real time RIP routing updates
Rtr(config-router)#passive-interface fa0/0 Prevent RIP updates from going out an interface
Rtr(config-router)#default-information originate Used by RIP to propagate default routes
Rtr#show ip protocols Used to display timers used by RIP
-
8/3/2019 CA_Ex_S2M05_RIP Version 1.Ppt [Compatibility Mode]
60/60
Hc vin mng Bch Khoa - Website: www.bkacad.com 60