The router will always take the more specific route regardless of administrative distance. Below is the routing table of a router running EIGRP and OSPF, as you can see 55.55.0.0/16 is from EIGRP, but the router still takes the 55.55.55.0/24 route from OSPF because it is more specific. No question is too trivial, believe me I have asked some winners in my time :), good luck on your test.
r6#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 55.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 55.55.0.0/16 [90/2297856] via 6.6.6.2, 00:00:02, Serial0 O 55.55.55.0/24 [110/74] via 6.6.6.5, 00:36:53, Serial0 5.0.0.0/24 is subnetted, 1 subnets O E2 5.5.5.0 [110/20] via 6.6.6.5, 00:03:05, Serial0 6.0.0.0/24 is subnetted, 1 subnets C 6.6.6.0 is directly connected, Serial0 r6# -----Original Message----- From: Sean Wolfe To: [EMAIL PROTECTED] Sent: 4/16/2002 10:08 PM Subject: longest match vs. other metrics [7:41692] Quick question, hope it's not too trivial: When a router decides to forward a packet based on the longest match principle, does this supersede other factors? For example, if there is a route to network A via EIGRP, but a more specific route available via OSPF, does it choose OSPF because of longest match, or EIGRP because of lower administrative distance (90 vs. 110)? Thanks folks, fun reading your posts as always. Wish me luck as I take BCSN this week. -Sean. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=41707&t=41692 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]