As far as I know, an OSPF router will always prefer a type 1 route to a type 2 route to the same destination network.
A type 1 route has a more accurate path info since it adds the costs on links inside the OSPF network to the cost of the external link. A type 2 route only has the cost of the external link no matter how many links it passes through in the internal network. So generally, a type-1 route will have a higher cost than a type 2 route anyway and routers in the OSPF network will prefer the type-1 route.
OSPF is going to select the path with the shortest path. So in the give example the path with the cost of 30, type 1 external will be selected.
You are correct in sayiny that type 1 adds the cost of the links in the the OSPG domain to the redistributed cost and type 2 routes only use the redistributed cost and do not take into account the OSPF local costs, but that does not mean that type 1 routes are more accurate to the destination network. They are only more accurate through the OSPF domain and do not take into account the link metrics outside of the domain.
To destination Net1 you have 2 paths, one through a total of 3 P-2-P T1's and the other through 2 OC-12 links. These to paths terminated on 2 different routers. Now you redistribute these into your OSPF as Type 1 External. Inside your OSPF domain, you have a total cost of 2 to the router that has the P-2-P T1, 2 Gigabit Ethernet hops. And you have a cost of 11 to the router with the OC-12 link, 1 Gigabit Ethernet and 1 Fast Ethernet hops. OSPF will select the path through the T1s over the path through the OC-12s, 22 is lower than 31 (default redistibution cost of 20 is assumed). Which path would you rather use?
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...