matching ip address to router routing table using ip route rip
jalopenopopper
Member Posts: 7 ■□□□□□□□□□
in CCNA & CCENT
i am using the ccent/icnd1 second edition cisco press book and i am a little stuck on this example on page 484
here is a brief summary of the example
R1#show ip route rip
172.16.0.0/16 is variably subnetted, 5 subnets, 4 masks
R 172.16.1.1/31
R 172.16.1.0/24
R 172.16.0.0/22
R 172.16.0.0/16
R 0.0.0.0/0
the example wants to know what route the router would take for an ip address of 172.16.4.3
according to the book the router matches the last two routes in the table to this address and it would take the 4th one because it has a higher prefix value. Why isn't the third route taken? It is in the same subnet number as 172.16.4.3 and it has a higher prefix value than the 4th route. Was there a typo made in the book?
here is a brief summary of the example
R1#show ip route rip
172.16.0.0/16 is variably subnetted, 5 subnets, 4 masks
R 172.16.1.1/31
R 172.16.1.0/24
R 172.16.0.0/22
R 172.16.0.0/16
R 0.0.0.0/0
the example wants to know what route the router would take for an ip address of 172.16.4.3
according to the book the router matches the last two routes in the table to this address and it would take the 4th one because it has a higher prefix value. Why isn't the third route taken? It is in the same subnet number as 172.16.4.3 and it has a higher prefix value than the 4th route. Was there a typo made in the book?
Comments
-
powmia Users Awaiting Email Confirmation Posts: 322172.16.0.0/22 covers the range 172.16.0.0 - 172.16.3.255. 172.26.4.0/22 would be the next block that covers 172.16.4.3, but that prefix is not in your routing table. The less specific /16 prefix does cover your 172.16.4.3 address, and is more specific than the default 0.0.0.0
-
boredgamelad Member Posts: 365 ■■■■□□□□□□jalopenopopper wrote: »Why isn't the third route taken? It is in the same subnet number as 172.16.4.3
Check again! -
jalopenopopper Member Posts: 7 ■□□□□□□□□□oh that makes sense. Would i have to find the valid ip address range for each of the subnets to see if a specific address belongs in it? Is there a quicker way to do it?
-
NetworkVeteran Member Posts: 2,338 ■■■■■■■■□□jalopenopopper wrote: »oh that makes sense. Would i have to find the valid ip address range for each of the subnets to see if a specific address belongs in it? Is there a quicker way to do it?R 172.16.1.1/31, R 172.16.1.0/24R 0.0.0.0/0, R 172.16.0.0/16R 172.16.0.0/22
-
jalopenopopper Member Posts: 7 ■□□□□□□□□□the first two were rejected quickly because there is a 1 in the third octed right?
-
powmia Users Awaiting Email Confirmation Posts: 322No, they were rejected, because their mask length is too long. The first one covers 172.16.1.1 -> 172.16.1.2 and the second one covers 172.16.1.0 -> 172.16.1.255. I highly recommend reading Todd Lammle's CCNA study guide, there is a pretty straight forward break down of subnetting in there. I would recommend reading that before any Cisco Press book at that level.