Ccnaexp 5
Ccnaexp 5
The first protocol used was Routing Information Protocol (RIP). RIP still popular: simple. Why learn RIP? Still in use today. Help understand fundamental concepts and comparisons of protocols such as classful (RIPv1) and classless (RIPv2)
RIP is not a protocol on the way out. In fact, an IPv6 form of RIP called RIPng (next generation) is now available..
4
Next slide
RIP Operation
Startup 1. Each RIP-configured interface sends out a Request message Asking for their complete routing tables. 2. A Response message is sent back by RIP-enabled neighbors. If new route: Installs in routing table. If existing route: Replace if better hop count. Startup router then sends a triggered update out all RIP-enabled interfaces containing its own routing table so that RIP neighbors can be informed of any new routes.
No subnet mask
RIPv1: Classful routing protocol. Does not send subnet mask in update. A router either uses the subnet mask: (discussed later) configured on a local interface or applies the default classful subnet mask Because of this limitation, RIPv1 networks cannot be discontiguous, nor can they implement VLSM.
Administrative Distance
R3# show ip route <output omitted> R 192.168.1.0/24 [120/1] via 192.168.6.2, 00:00:05, Serial0/0/0 <output omitted> R3# show ip protocols <output omitted> Routing Protocol is rip Routing Information Sources: Gateway Distance 192.168.6.2 120 Distance: (default is 120)
RIP has a default administrative distance of 120. When compared to other interior gateway protocols, RIP is the leastpreferred routing protocol. Note: This is irrelevant because you usually do not run multiple routing protocols in the same domain, and even if you did you can modify these AD values.
10
RIPv1 Scenario A
Notice that this topology uses five Class C network addresses. Remember, RIPv1 is a classful routing protocol We will see that the class of the network is used by RIPv1 to determine the subnet mask.
12
Enter router configuration mode for RIP, enter router rip at the global configuration prompt. Notice that the prompt changes.
13
router rip Does not directly start the RIP process. Provides access to configure routing protocol settings. No routing updates are sent until additional commands are configured. no router rip To remove the RIP routing process from a device Stops the RIP process Erases all existing RIP configuration commands.
14
Specifying Networks
Router(config-router)# network directly-connected-classfulnetwork-address
To enable RIP routing for a network, use the network command in router configuration mode Enter the classful network address for each directly connected network.
15
Specifying Networks
Router(config-router)# network directly-connected-classfulnetwork-address
The network command performs the following functions: Enables RIP on all interfaces that belong to a specific network. Associated interfaces will now both send and receive RIP updates. Advertises the specified network in RIP routing updates sent to other routers every 30 seconds.
16
Specifying Networks
R1(config)# router rip R1(config-router)# network 192.168.1.0 R1(config-router)# network 192.168.2.0 R2(config)# router R2(config-router)# R2(config-router)# R2(config-router)# rip network 192.168.2.0 network 192.168.3.0 network 192.168.4.0
If you enter a subnet or host IP address, IOS automatically converts it to a classful network address. For example, if you enter the command network 192.168.1.32, the router will convert it to network 192.168.1.0.
17
18
Because this command displays the entire routing table, including directly connected and static routes, it is normally the first command used to check for convergence. Routes might not immediately appear when you execute the command because networks take some time to converge..
20
21
22
23
Verifies that RIP routing is configured and running on Router R2 At least one active interface with an associated network command is needed before RIP routing will start.
24
These are the timers that show when the next round of updates will be sent out from this router23 seconds from now, in the example.
25
This information relates to filtering updates and redistributing routes, if configured on this router. Filtering and redistribution are both CCNP-level topics.
26
Information about which RIP version is currently configured and which interfaces are participating in RIP updates.
27
Router R2 is currently summarizing at the classful network boundary By default, will use up to four equal-cost routes to loadbalance. Automatic summarization is discussed later in this chapter.
28
Classful networks configured with the network command are listed next. These are the networks that R2 will include in its RIP updates. (with other learned routes)
29
RIP neighbors Gateway: Next-hop IP address of the neighbor that is sending R2 updates. Distance is the AD that R2 uses for updates sent by this neighbor. Last Update is the seconds since the last update was received from this neighbor.
30
The debug command is a useful tool to help diagnose and resolve networking problems, providing real-time, continuous information.
31
Update coming in from R1 on interface Serial 0/0/0. R1 only sends one route: 192.168.1.0. No other routes are sent because doing so would violate the split horizon rule. R1 is not allowed to advertise networks back to R2 that R2 previously sent to R1.
32
The next update that is received is from R3. Because of the split horizon rule, R3 only sends one route: the 192.168.5.0 network.
33
RIP: sending v1 update to (192.168.3.1) RIP: build update entries network 192.168.1.0 network 192.168.2.0 network 192.168.4.0 network 192.168.5.0
2 1 1 2
Directly Connected
R2 sends out its own updates. FastEthernet 0/0 interface: Includes the entire routing table except for network 192.168.3.0, which is attached to FastEthernet 0/0.
34
RIP: sending v1 update to (192.168.4.2) RIP: build update entries network 192.168.1.0 network 192.168.2.0 network 192.168.3.0
R2 sends update to R3. Three routes are included. R2 does not advertise the network R2 and R3 share, nor does it advertise the 192.168.5.0 network because of split horizon.
35
RIP: sending v1 update to (192.168.2.2) RIP: build update entries network 192.168.3.0 network 192.168.4.0 network 192.168.5.0
Directly Connected
R2 sends update to R1. Three routes are included. R2 does not advertise the network that R2 and R1 share, nor does it advertise the 192.168.1.0 network because of split horizon. In another 30 seconds, all the debug output will repeat (every 30 seconds).
36
R2# undebug all All possible debugging has been turned off
Got router?
To stop monitoring no debug ip rip or undebug all But do you see a way to optimize RIP routing on R2? Does R2 need to send updates out FastEthernet 0/0? You will see in the next topic how to prevent unnecessary updates.
37
Passive Interfaces
Got router?
Some routers can have interfaces that do not connect to another router. You can use the passive-interface command with RIP to configure an interface not to send those updates. Bandwidth is wasted transporting unnecessary updates. All devices on the LAN must process the RIPv1 update up to the transport layer. Security risk (Authentication would is a better solution - later)
38
Passive Interfaces
Router(config-router)# passive-interface interface-type interfacenumber
39
Passive Interfaces
R2(config)# router rip R2(config-router)# passive-interface FastEthernet 0/0
40
Passive Interfaces
R2# show ip protocols <output omitted> Interface Send Recv Triggered RIP Key-chain Serial0/0/0 1 1 2 FastEthernet 0/0 no longer Serial0/0/1 1 1 2 included Automatic network summarization is in effect Routing for Networks: 192.168.2.0 LAN network still included in 192.168.3.0 RIP updates that are sent 192.168.4.0 Passive Interface(s): FastEthernet 0/0 is a passive interface FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update 192.168.2.1 120 00:00:27 192.168.4.1 120 00:00:23 Distance: (default is 120)
41
Automatic Summarization
Modified Topology B Boundary Routers and Automatic Summarization Processing RIP Updates Sending RIP Updates Advantages and Disadvantages of Automatic Summarization
172.30.0.0/16 192.168.4.0/24
192.168.5.0/24
Fewer routes in a routing table means that the routing table process can more quickly locate the route needed to forward the packet. Summarizing several routes into a single route is known as route summarization or route aggregation. Some routing protocols, such as RIP, automatically summarize routes on certain routers.
43
172.30.0.0/16 192.168.4.0/24
192.168.5.0/24
The 172.30.0.0/16 The 192.168.4.0/24 network is subnetted into network is three subnets: subnetted as a 172.30.1.0/24 single subnet 172.30.2.0/24 192.168.4.8/30. 44 172.30.3.0/24
46
47
RIP is a classful routing protocol that automatically summarizes classful networks across major network boundaries.
48
R2 has interfaces in more than one major classful network. This makes R2 a boundary router in RIP. Both Serial 0/0/0 and FastEthernet 0/0 interfaces on R2 are inside the 172.30.0.0 boundary. The Serial 0/0/1 interface is inside the 192.168.4.0 boundary. Boundary routers summarize RIP subnets from one major network to the other, updates for the 172.30.1.0, 172.30.2.0, and 172.30.3.0 networks will automatically be summarized into 172.30.0.0 when sent out R2s Serial 0/0/1 interface.
49
R2# show ip route 172.30.0.0/24 is subnetted, 3 subnets R 172.30.1.0 [120/1] via 172.30.2.1, 00:00:18, Serial0/0/0 C 172.30.2.0 is directly connected, Serial0/0/0 C 172.30.3.0 is directly connected, FastEthernet0/0 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 R 192.168.5.0/24 [120/1] via 192.168.4.10, 00:00:16, Serial0/0/1
Classful routing protocols such as RIPv1 do not include the subnet mask in the routing update. However, the routing table includes RIPv1 routes with both the network address and the subnet mask. So how does a router running RIPv1 determine what subnet mask it should apply to a route when adding it to the routing table?
50
The following two rules govern RIPv1 updates: If a routing update and the interface on which it is received belong to the same major network, the subnet mask of the interface is applied to the network in the routing update. If a routing update and the interface on which it is received belong to different major networks, the classful subnet mask of the network is applied to the network in the routing update..
51
Same classful network as the incoming update. Update: 172.30.1.0 in 1 hops Interface received: Serial 0/0/0 - 172.30.2.2/24 Same classful network address (172.30.0.) Applies subnet mask of its S0/0/0 interface, /24. The 172.30.1.0 /24 subnet was added to the routing table.
172.30.2.2/24
172.30.1.0
52
53
54
55
172.30.0.0
56
R3# show ip route <output omitted> Gateway of last resort is not set R 172.30.0.0/16 [120/1] via 192.168.4.9, 00:00:15, Serial0/0/1 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 C 192.168.5.0/24 is directly connected, FastEthernet0/0
58
Routers running RIPv1 are limited to using the same subnet mask for all subnets with the same classful network. As you will learn in later chapters, classless routing protocols such as RIPv2 allow the same major (classful) network to use different subnet masks on different subnets, better known as variable-length subnet masking (VLSM)..
59
Smaller routing updates are sent and received, which uses less bandwidth for routing updates between R2 and R3. R3 has a single route for the 172.30.0.0/16 network, regardless of how many subnets there are or how it is subnetted. Using a single route results in a faster lookup process in the routing table for R3.
60
172.30.0.0/16
172.30.0.0/16
Discontiguous network, two or more subnets separated by at least one other major network. 172.30.0.0/16 is a discontiguous network.
61
RIPv1 configuration is correct, but it is unable to determine all the networks in this discontiguous topology.
62
172.30.0.0
172.30.0.0
172.30.0.0/16
172.30.0.0/16
Both routers, however, will advertise the 172.30.0.0 major network address, a summary route to R2.
63
R3# show ip route 172.30.0.0/24 is subnetted, 3 subnets 172.30.100.0 is directly connected, FastEthernet0/0 172.30.200.0 is directly connected, FastEthernet0/1
C C
R1 does not have routes to the LANs attached to R3. R3 does not have routes to the LANs attached to R1.
64
65
R2 has two equal-cost paths to the 172.30.0.0 network. R2 will load-balance traffic destined for any subnet of 172.30.0.0. This means that R1 will get half of the traffic and R3 will get the other half of the traffic, whether or not the destination of the traffic is for one of their LANs.
66
Classful routing protocols do not support discontiguous networks because they do not include the subnet mask in the routing update. Classless routing protocols (RIPv2, EIGRP, OSPF, IS-IS, BGP) do support discontiguous networks.
67
Default routes are used by routers to represent all routes that are not specifically in the routing table. A default route is commonly used to represent routes that are not in the locally administered network, such as the Internet..
69
Default Routes
In todays networks, customers do not necessarily have to exchange routing updates with their ISP. Customer routers that connect to an ISP do not need a listing for every route on the Internet. Instead, these routers have a default route that sends all traffic to the ISP router when the customer router does not have a route to a destination. The ISP configures a static route pointing to the customer router for addresses inside the customers network.
70
71
Routing Table
R1# show ip route <output omitted> Gateway of last resort is not set 172.30.0.0/24 is subnetted, 3 subnets C 172.30.1.0 is directly connected, FastEthernet0/0 C 172.30.2.0 is directly connected, Serial0/0/0 R 172.30.3.0 [120/1] via 172.30.2.2, 00:00:05, Serial0/0/0
R1 has all 172.30.0.0/24 subnets, but will drop packets for all other networks. No default route (coming)
72
Routing Table
R2# show ip route <output omitted> Gateway of last resort is 0.0.0.0 to network 0.0.0.0 172.30.0.0/24 is subnetted, 3 subnets R 172.30.1.0 [120/1] via 172.30.2.1, 00:00:03, Serial0/0/0 C 172.30.2.0 is directly connected, Serial0/0/0 C 172.30.3.0 is directly connected, FastEthernet0/0 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 S* 0.0.0.0/0 is directly connected, Serial0/0/1
R2 has routes for 172.30.0.0/16 subnets. R2 has static default route for all other networks
73
Routing Table
R3# show ip route <output omitted> Gateway of last resort is not set 172.30.0.0/22 is subnetted, 1 subnets S 172.30.0.0 is directly connected, Serial0/0/1 192.168.4.0/30 is subnetted, 1 subnets C 192.168.4.8 is directly connected, Serial0/0/1 C 192.168.5.0/24 is directly connected, FastEthernet0/0
R3 has static route for 172.30.0.0/16 network. Doesnt matter if or how 172.30.0.0/16 is subnetted, R3 will forward packets to R2.
74
Can configure static default route on every router but: inefficient does not react to topology changes In many routing protocols, including RIP, you can use the defaultinformation originate command in router configuration mode to specify that this router is to originate default information, by propagating the static default route in RIP updates.
75
76
The static default route on R2 has been propagated to R1 in a RIP update. R1 has connectivity to the LAN on R3 and any destination on the Internet.
77