Compare cert salaries and plan your next career move
MrRyte wrote: » Remember the functions of a router? To a)determine paths to networks and then to b)forward packets to either a directly connected network or remote network by comparing the destination address of the packet to the routing table. The router will first assemble its table based on administrative distance. As for how to forward the packet, the router will scan through its entries and then select a route based on the following criteria: 1. Prefix Length 2. Administrative Distance (if there is more than one path to the destination network) Let's look at this example: The router receives a packet destined for 192.168.32.1 and has these routes in its table (taken from this link Route Selection in Cisco Routers - Cisco Systems -router# show ip route D 192.168.32.0/26 [90/25789217] via 10.1.1.1 R 192.168.32.0/24 [120/4] via 10.1.1.2 O 192.168.32.0/19 [110/229840] via 10.1.1.3 Although the network address is the same for all three, the longer subnet mask will mean more matching bits for the destination network of the packet. (Remember 1=MUST MATCH; 0=do not have to match) 192.168.32.0/26=11111111.11111111.11111111.11000000 192.168.32.0/24=11111111.11111111.11111111.00000000 192.168.32.0/19=11111111.11111111.11100000.00000000The more matching 1's or N bits, the more preferred the route. Now as for Administrative Distance-the lower the number; the more "trustworthy" the route. So if we have the same 192.168.32.0/26 route learned by OSPF, RIP, EIGRP, IGRP and other routing protocols then it will see which is the lowest AD and select that particular route. So in summary; the router will choose the best route in this order: 1. Prefix Length 2. Administrative Distance 3. Default Route (if one is configured rather than just dropping the packet) This is the way I understand it. If there's something incorrect please let me know since I'm not the best at explaining things....
solnsusie wrote: » you are 100% right, but what’s bothering me is, 1) when you have 2 routes to the same destination and both routes running only and only RIP, but one route has a bigger mask and more hops and the other route has a smaller mask and less hops, which route will be the winner? again both routes are RIP which usually chooses the metric count,
solnsusie wrote: » 2) when you have 2 routes to the same destination and two AD's let’s say RIP, and EIGRP, the RIP has BIGGER mask MORE hops and is a HIGHER AD, and the second route is EIGRP SMALLER mask and LESS hops and LOWER AD, which route will be the winner?
MrRyte wrote: » The router will NEVER have two routes with the same protocol to the same destination listed separately. It will do a route summerization/supernet and have THAT in the routing table.
solnsusie wrote: » please check out the second page, the example shows 5 routes all using RIP, and my original question was about point #2 on the second page, which is using RIP, bigger mask, more hops, thanks
networker050184 wrote: » Yes, you are wrong.
CodeBlox wrote: » How is he wrong? EIGRP routes get put into the routing table over RIP unless you are redistributing. This isn't flame, I honestly want to know why a routing source with a lower AD wouldn't get added to the routing table.
solnsusie wrote: » thanks,so far you had explained it the best, but one more question, why will it choose 1’st the prefix length and then the AD, why not 1’st the AD and then the mask?? let him first choose the way it will take and then see the address it will go on that way?
Forsaken_GA wrote: » Because that's not the way it works. Again, the router wants as much precision as possible when it comes to delivering traffic. Think about this logically - Let's say I have a router in atlanta with a link to seattle, and the routing protocol over that link is EIGRP. Now let's say I have another router in Chicago. The Chicago router is linked to the Seattle router, and is running EIGRP over it. The Chicago and Atlanta routers are linked, but the routing protocol over them is RIP. Now, the Atlanta router wants to talk to a network in Chicago. The Chicago router is advetising a summary route (let's say a /16) to seattle. Seattle will also advertise this router to Atlanta over their link. Now let's say the Chicago router is advertising all the individual routes, say /24's, to Atlanta, over RIP. If AD was the first thing looked at, then when Atlanta tries to talk to Chicago, it would see the route to Chicago via Seattle first, and use that. So the traffic would go from Atlanta, to Seattle, to Chicago. This is dumb, when we have a DIRECT LINK to Chicago. By looking at longest match first, we would see the routes to the /24's coming out of Chicago, and transit via them instead, thereby saving on transit time and cost (it's cheaper to transit via one circuit than via two)
Forsaken_GA wrote: » Lets say I want to kill a certain individual in redmond, WA.
solnsusie wrote: » hi thanks to your great post!!! where was you till now?? you solved all my questions,,, would you be here in the begining, it wouldnt be such a long thread!!!! job well done!!! thanks a million, i will keep you r name for later if any questions comes up, hope i will get any response, hope to take CCNA exam in a month from now,
okplaya wrote: » This is plain awesome. I could watch your CBT any day with analogies to routing that start out this way.
Compare salaries for top cybersecurity certifications. Free download for TechExams community.