Professional Documents
Culture Documents
RIPv1 Limitations
RIPv1: Topology Limitations RIPv1: Discontiguous Networks RIPv1: No VLSM Support RIPv1: No CIDR Support
RIP Version 2 (RIPv2) is defined in RFC 1723. RIPv2 is the first classless routing protocol discussed in this book. RIPv2 has lost popularity when compared to other routing protocols such as EIGRP, OSPF and IS-IS. RIPv2, it is ideal for explaining the differences between a classful routing protocol (RIPv1) and a classless routing protocol (RIPv2).
3
RIPv2 is actually an enhancement of RIPv1s features and extensions rather than an entirely new protocol. Next-hop addresses included in the routing updates Use of multicast addresses in sending updates Authentication option available Both versions of RIP share the following features and limitations: Use of hold-down and other timers to help prevent routing loops Use of split horizon to also help prevent routing loops Use of triggered updates when there is a change in the topology for faster convergence Maximum hop count of 15 hops, with the hop count of 16 signifying an unreachable network
RIPv1 Limitations
172.30.0.0 /16
172.30.0.0 /16
In a discontiguous network, a classful major network address, such as 172.30.0.0/16, is separated by one or more other major networks. 172.30.0.0/16 is divided by the networks: 209.165.200.228/30 209.165.200.232/30 Classful routing protocols do not include enough routing information to route properly for discontiguous networks.
Summary Route
R2(config)# ip route 192.168.0.0 255.255.0.0 null0
R2(config-router)#redistribute static
172.30.0.0/16
172.30.0.0 /16
R2: static summary route to the 192.168.0.0/16 network. Redistribution - Inject static route(s) into routing protocol updates.
VLSM
172.30.0.0/16
172.30.0.0 /16
R1 and R3 contain VLSM networks. Both R1 and R3 are configured with /24 subnets of the 172.30.0.0/16 network. R3: 172.30.200.0/24 subnetted again, using the first 4 bits for subnets and the last 4 for hosts. 172.30.200.16/28 and 172.30.200.32/28
VLSM
R3: 172.30.200.0/24 subnetted again, using the first 4 bits for subnets and the last 4 for hosts. 172.30.200.16/28 and 172.30.200.32/28
Loopback Interfaces
172.30.0.0/16
172.30.0.0 /16
Loopback interface Software-only interface Used to emulate an interface. Can be assigned an IP address. Specific purposes with some routing protocols such as OSPF (later) A loopback interface can be: pinged subnet advertised in routing updates. Ideal for simulating multiple networks attached to the same router.
10
CIDR allows route aggregation. A single high-level route entry with a subnet mask less than the classful mask can be used to represent many lowerlevel routes. This results in fewer entries in the routing table. The static route on R2 is using a /16 mask to summarize all 256 networks ranging from 192.168.0.0/24 to 192.168.255.0/24. For Lab purposes: The static summary route 192.168.0.0/16 does not actually exist. To simulate this static route, we will use a null interface as the exit interface. You do not need to enter commands to create or configure the null interface. It is always up but does not forward or receive traffic. Traffic sent to the null interface is discarded.
11
Route Redistribution
R2(config)# ip route 192.168.0.0 255.255.0.0 null0 R2(config)# router rip R2(config-router)# redistribute static
Is static route being sent via RIPv1 with other RIPv1 routes?
Redistribution involves taking the routes from one routing source and sending those routes to another routing source. Routes can only be redistributed into a dynamic routing protocol. Dynamic routing protocol to a different dynamic routing protocol. Static routes to a dynamic routing protocol. Directly connected networks to a dynamic routing protocol. Want R2 to redistribute our static route (192.168.0.0/16) by importing the route into RIPv1 and then sending it to R1 and R3 using the RIPv1 process.
12
R2# ping 172.30.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to !U!.! Success rate is 60 percent (3/5), R2# ping 172.30.100.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to !U!.! Success rate is 60 percent (3/5), R2#
Whenever R2 pings any of the 172.30.0.0 subnets on R1 or R3, only about 50 percent of the pings are successful.
13
R1# ping 10.1.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5),round-trip min/avg/max = 28/28/28 ms R1# ping 172.30.100.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.30.100.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R1#
R1 is able to ping 10.1.0.1 but is unsuccessful when attempting to ping the 172.30.100.1 interface on R3.
14
R3# ping 10.1.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5),round-trip min/avg/max = 28/28/28 ms R3# ping 172.30.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.30.1.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R3#
R3 is able to ping 10.1.0.1 but is unsuccessful when attempting to ping the 172.30.1.1 interface on R1. As you can see, there is an obvious problem when trying to communicate with the 172.30.0.0 discontiguous subnets.
15
RIPv1 on both Routers R1 and R3 will summarize their 172.30.0.0 subnets to the classful major network address of 172.30.0.0 when sending routing updates to R2.
16
C C C S
R2 has two equal-cost routes to the 172.30.0.0/16 network. R1 and R3 are sending R2 a RIPv1 update for the 172.30.0.0 network with a metric of 1 hop. R2s routing table only contains the major classful network address of 172.30.0.0 and adds the Class B subnet mask of /16.
17
debug ip rip
R2# debug ip rip RIP: received v1 update from 209.165.200.230 on Serial0/0/0 172.30.0.0 in 1 hops RIP: received v1 update from 209.165.200.234 on Serial0/0/1 172.30.0.0 in 1 hops RIP: sending v1 update to 255.255.255.255 via Serial0/0/0 (209.165.200.229) RIP: build update entries network 10.0.0.0 metric 1 subnet 209.165.200.232 metric 1 RIP: sending v1 update to 255.255.255.255 via Serial0/0/1 (209.165.200.233) RIP: build update entries network 10.0.0.0 metric 1 subnet 209.165.200.228 metric 1
R2 is receiving two 172.30.0.0 equal-cost routes with a metric of 1 hop: one route on Serial 0/0/0 from R1 and the other route on Serial 0/0/1 from R3. Also notice that the subnet mask is not included with the network address in the update.
18
show ip route
R1# show ip route 172.30.0.0/24 is subnetted, 2 subnets 172.30.2.0 is directly connected, Loopback0 172.30.1.0 is directly connected, FastEthernet0/0 209.165.200.0/30 is subnetted, 2 subnets 209.165.200.232 [120/1] via 209.165.200.229, 00:00:16,Serial0/0/0 209.165.200.228 is directly connected, Serial0/0/0 10.0.0.0/8 [120/1] via 209.165.200.229, 00:00:16, Serial0/0/0
C C R C R R1#
R1 has its own 172.30.0.0 routes: 172.30.2.0/24 172.30.1.0/24. R1 does not send R2 those subnets. R1 and R3 are boundary routers only sending the summarized 172.30.0.0 Result, R2 only knows about the 172.30.0.0/16 classful network and is unaware of any 172.30.0.0 subnets.
19
172.30.0.0
172.30.0.0
20
10.0.0.0
10.0.0.0
21
172.30.110.0
172.30.2.0 172.30.1.0 172.30.200.32 172.30.200.16 172.30.100.0
22
Because RIPv1 does not send the subnet mask in routing updates, it cannot support VLSM. The R3 router is configured with the following VLSM subnets, all of which are members of the Class B network 172.30.0.0/16: 172.30.100.0/24 (FastEthernet 0/0) 172.30.110.0/24 (Loopback 0) 172.30.200.16/28 (Loopback 1) 172.30.200.32/28 (Loopback 2)
23
We see the static route, lets see if it is be sent in RIPv1 updates with the other RIPv1 routes
24
R1 Routing Table
R1# show ip route 172.30.0.0/24 is subnetted, 2 subnets 172.30.2.0 is directly connected, FastEthernet0/1 172.30.1.0 is directly connected, FastEthernet0/0 209.165.200.0/30 is subnetted, 2 subnets 209.165.200.232 [120/1] via 209.165.200.229, 00:00:16,Serial0/0/0 209.165.200.228 is directly connected, Serial0/0/0 10.0.0.0/8 [120/1] via 209.165.200.229, 00:00:16, Serial0/0/0
C C R C R
Notice that R1 is not receiving this 192.168.0.0/16 route in its RIP updates from R2
25
debug ip rip
R2# debug ip rip RIP: received v1 update from 209.165.200.230 on Serial0/0/0 172.30.0.0 in 1 hops RIP: received v1 update from 209.165.200.234 on Serial0/0/1 172.30.0.0 in 1 hops RIP: sending v1 update to 255.255.255.255 via Serial0/0/0 (209.165.200.229) RIP: build update entries network 10.0.0.0 metric 1 subnet 209.165.200.232 metric 1 RIP: sending v1 update to 255.255.255.255 via Serial0/0/1 (209.165.200.233) RIP: build update entries network 10.0.0.0 metric 1 subnet 209.165.200.228 metric 1
R2 is not including the 192.168.0.0/16 route in its RIPv1 updates to either R1 or R3.
26
The static route 192.168.0.0 has a /16 mask. This is fewer bits than the classful Class C mask of /24. RIPv1 and other classful routing protocols cannot support CIDR routes that are summarized routes with a smaller subnet mask than the classful mask of the route. RIPv1 ignores these supernets in the routing table and does not include them in updates to other routers. This is because the receiving router would only be able to apply the larger /24 classful mask to the update and not the shorter /16 mask. Note: If the 192.168.0.0 static route were configured with a /24 mask or greater, this route would be included in the RIP updates. The receiving routers would apply the classful /24 mask to this update.
27
Configuring RIPv2
Enabling and Verifying RIPv2 Auto-Summary and RIPv2 Disabling Auto-Summary in RIPv2 Verifying RIPv2 Updates
Configuring RIPv2
Configuring RIPv2 is similar to configuring RIPv1, with the addition of a single RIP command, version 2. Although RIPv2 uses the same basic configuration commands as RIPv1, the results of using RIPv2 are different, allowing both CIDR and VLSM to be used in the network.
29
Default RIPv1: When configuring RIP Router only sends RIPv1 messages, it can process both RIPv1 and RIPv2 messages. Ignore the RIPv2 fields in the route entry. RIPv2 will ignore RIPv1 updates.
30
31
32
Default behavior of RIPv1 can be restored by using either the (slightly different behaviors in sending and receiving): version 1 command no version command If done, should be configured on all routers.
33
C C C S
You still see the summarized 172.30.0.0/16 route with the same two equal-cost paths.
34
C C R C R R
Routers R1 and R3 still do not include the 172.30.0.0 subnets of the other router. The only difference so far between RIPv1 and RIPV2 is that R1 and R3 each have a route to 192.168.0.0/16. This route was the (CIDR) static route configured on R2 and redistributed by RIP. Whats happening?
35
Notice that RIPv2 is sending both the network address and subnet mask. Notice that the route sent is the summarized classful network address, 172.30.0.0/16 not the individual 172.30.1.0/24 and 172.30.2.0/24 subnets.
36
By default, RIPv2 automatically summarizes networks at major network boundaries, just like RIPv1. Both R1 and R3 routers are still summarizing their 172.30.0.0 subnets to the Class B address of 172.30.0.0 when sending updates out their interfaces on the 209.165.200.228 and 209.165.200.232 networks, respectively.
37
To modify the default RIPv2 behavior of automatic summarization, use the no auto-summary command
38
R R R R R R
C C
C S
39
R R C C R R R C R R
C C R R C C C R R R
41
Sending and receiving routing updates, which are individual routes with their subnet mask instead of a single summary route with the classful mask.
42
Notice also that the updates are sent using the multicast address 224.0.0.9. RIPv1 sends updates as a broadcast 255.255.255.255. In general multicast updates: Take up less bandwidth on the network. Require less processing by devices that are not RIP enabled.
43
R R C C R R R C R R
First command to use to check for network convergence. Important to look for the routes that you expect to be in the routing table as well as for those that should not be in the routing table.
45
If a network is missing from the routing table, it is often because an interface is down or incorrectly configured. The show ip interface brief command quickly verifies the status of all interfaces.
46
The show ip protocols command verifies several critical items, including whether RIP is enabled, the version of RIP, the status of automatic summarization, and the networks that were included in the network statements.
47
ping Command
R2# ping 172.30.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.30.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms R2# ping 172.30.100.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.30.100.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms
Authentication
It is good practice to authenticate routing information. RIPv2, EIGRP, OSPF, IS-IS, and Border Gateway Protocol (BGP) can be configured to encrypt and authenticate routing information. Hides the content of the routing information Routers will only accept routing information from other routers that have been configured with the same password or authentication information.
51