I have the OSPF network setup as attached. OSPF is running ony on routers and L3 switch. I would like to inject 2 default routes into the Layer 3 switch.
Both routers C and D gets the default route as expected. But the L3 switch inserts default route as Router C only.
I would like to see 2 default routes on the switch as both the links have same cost. How can I troubleshoot this?
The command "SHOW IP OSPF DATABASE" shows the following output on the L3 switch.
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.0.0.9 701 0x8000E7D4 0x5D24 65182
0.0.0.0 10.0.0.54 442 0x8000E7EB 0x4EEA 65182
But the show ip route command on the L3 switch shows only one default route.
If you remove the network statement then you do not need to configure the interface as passive. Either way should work.
Can you do a show ip ospf border on L3-Switch to see if both ASBRs (Rtr-A and Rtr-B) are considered as equal cost.
Let me know if this solves your problem,