How do I configure my router to prefer an Open Shortest Path First (OSPF) route over an EIGRP route when the route is learned from both sources?
A. The short answer is to use the distance command under the routing process. OSPF has a default administrative distance of 110 and EIGRP has a default administrative distance of 90 for internal routes. If the same route prefixes are learned under both routing protocols, EIGRP-learned routes will be installed into the IP routing table because of the lower administrative distance (90 is less than 110). The key to having OSPF routes installed in the Routing Information Base (RIB), instead of EIGRP routes, is to make the administrative distance of OSPF less than that of EIGRP that uses the distance ospf command. To learn more about administrative distance, refer to What Is Administrative Distance? Q. Does the use of extended IP access control lists (ACLs) filter regular routing updates (such as OSPF)? Do I need to explicitly permit the multicast IPs used by routing protocols (such as 224.0.0.5 and 224.0.0.6, in the case of OSPF) for updates to ensure the proper working of routing protocol
Related Questions
- How do I configure my router to prefer an Open Shortest Path First (OSPF) route over an EIGRP route when the route is learned from both sources?
- How can I configure a Cisco ASA router/firewall to route multicast traffic between two subnets?
- Which path is preferred if OSPF and EIGRP have dynamically discovered a remote network?