Академический Документы
Профессиональный Документы
Культура Документы
4 – RIPv2
Benefits:
• All-zeros and all-ones subnets
– - Although some vendors, like Cisco, can also handle this with
classful routing protocols.
• VLSM
– Can have discontiguous subnets
– Better IP addressing allocation
• CIDR
– More control over route summarization
The following four features are the most significant new features added to
RIP v2:
• Authentication of the transmitting RIP v2 node to other RIP v2
nodes
• Subnet Masks – RIP v2 allocates a 4-octet field to associate a subnet
mask to a destination IP address.
• Next Hop IP addresses – The inclusion of a Next Hop identification
field helps make RIP v2 more efficient than RIP v1 by preventing
unnecessary hops.
• Multicasting RIP v2 messages – Multicasting is a technique for
simultaneously advertising routing information to multiple RIP or RIP
v2 devices.
Rick Graziani graziani@cabrillo.edu 10
RIP v2 message format
• All the extensions to the original protocol are carried in the unused
fields.
• The Address Family Identifier (AFI) field is set to two for IP. The only
exception is a request for a full routing table of a router or host, in
which case it will be set to zero.
• The Route Tag field provides a way to differentiate between internal and
external routes. (Not used by RIP, but can be used by BGP – later.)
• External routes are those that have been redistributed into the RIP v2.
• The Next Hop field contains the IP address of a better next hop IP address if
one exists. Next hop on same subnet, that is metrically closer to the
destination than the advertising router. (Rather than an IP redirect message)
• Metric indicates how many internetwork hops, between 1 and 15 for a valid
route, or 16 for an unreachable route.
Rick Graziani graziani@cabrillo.edu 12
Compatibility with RIP v1
RFC 1723 defines a compatibility switch with four settings, which allows
versions 1 and 2 to interoperate:
2. RIP v1, in which only RIP v1 messages are transmitted
3. RIP v1 Compatibility, which causes RIP v2 to broadcast its messages
instead of multicast them so that RIP v1 may receive them
4. RIP v2, in which RIP v2 messages are multicast to destination
address 224.0.0.9
5. None, in which no updates are sent
Authentication is
supported by
modifying what
would normally be
the first route entry
of the RIP message
1 2
3 4
5 6
• Perhaps the single greatest limitation that RIPv2 inherited from RIP is that its
interpretation of infinity remained at 16.
Other:
For RIP and IGRP, the passive interface command stops the router from
sending updates to a particular neighbor, but the router continues to
listen and use routing updates from that neighbor. (More later.)
Router(config-router)# passive-interface interface
interface fastethernet0/0
ip address 192.168.50.129 255.255.255.192
ip rip send version 1
ip rip receive version 1
RIPv2
interface fastethernet0/1
ip address 172.25.150.193 255.255.255.240
ip rip send version 1 2
router rip
version 2
no auto-summary
• If the command ip rip authentication mode md5 is not added, the interface will
use the default clear text authentication. Although clear text authentication may be
necessary to communicate with some RIP v2 implementations, for security concerns use
the more secure MD5 authentication whenever possible.
Scenario: 207.0.0.0/16
207.1.0.0/16
Internet
• Discontiguous subnets static route to
207.2.0.0/16
207.3.0.0/16
etc.
• VLSM 10.0.0.0/8 207.0.0.0/8
• CIDR .1
.1 e0
ISP
• Supernet to 207.0.0.0/8 .25 s0 s1 .21
172.30.1.0/24 172.30.100.0/24
Rick Graziani graziani@cabrillo.edu
SantaCruz1 RIPv2 Example
router rip
network 172.30.0.0 207.0.0.0/16
207.1.0.0/16
network 192.168.4.0 Internet 207.2.0.0/16
static route to 207.3.0.0/16
version 2 etc.
10.0.0.0/8 207.0.0.0/8
no auto-summary
.1 e0
.1
SantaCruz2 ISP
.25 s0 s1 .21
router rip
network 172.30.0.0
network 192.168.4.0 192.168.4.24/30
version 2 192.168.4.20/30
no auto-summary
172.30.200.32/28
Lo2
ISP .26 s0 s0 .22 `
172.30.200.16/28
Lo1
Lo0
router rip .1 SantaCruz1 SantaCruz2 Lo0
172.30.2.0/24 .1
redistribute static .1 e0 .1 e0 172.30.110.0/24
network 10.0.0.0
172.30.1.0/24 172.30.100.0/24
network 192.168.4.0
version 2
no auto-summary
172.30.200.32/28
Lo2
.26 s0 s0 .22 `
172.30.200.16/28
Lo1
Lo0
.1 SantaCruz1 SantaCruz2 Lo0
172.30.2.0/24 .1
.1 e0 .1 e0 172.30.110.0/24
172.30.1.0/24 172.30.100.0/24
Rick Graziani graziani@cabrillo.edu
RIPv2: Sending and Receiving Updates
version 2
no auto-summary 192.168.4.24/30
192.168.4.20/30
default-information originate
172.30.200.32/28
Lo2
172.30.200.16/28
ip route 207.0.0.0 255.0.0.0 null0 .26 s0 s0 .22 Lo1 `
Lo0
.1 SantaCruz1 SantaCruz2 Lo0
ip route 0.0.0.0 0.0.0.0 10.0.0.2 172.30.2.0/24 .1
172.30.110.0/24
.1 e0 .1 e0
etherenet0
172.30.1.0/24 172.30.100.0/24