The OSPF routing table, cost calculation, loopbacks and the default route
Sign in to read this lesson
In the lab we read OSPF routes with show ip route ospf. The O code means OSPF; [110/2] shows the administrative distance (110) and the total cost (2). The cost is the sum of the outgoing interface costs along the path; show ip ospf interface shows the interface cost (FastEthernet 1, Ethernet 10). When a link fails, OSPF moves to the alternative path; ip ospf cost changes the path by hand. Two paths with equal cost go into the routing table together. An advertised loopback shows up as /32 on the other routers. default-information originate always distributes a default route through OSPF (O*E2).
What you will learn
O 10.0.23.0/24 [110/2] via 10.0.13.3: O = OSPF, 110 = OSPF's administrative distance, 2 = total cost, via = next hop.- Total cost = the sum of the outgoing interface costs along the path. Interface cost:
show ip ospf interface(FastEthernet 1, Ethernet 10). - When a link fails, OSPF moves to the alternative path automatically.
ip ospf cost 50changes an interface's cost by hand and can change the path choice. - Two paths with equal cost go into the routing table together (load balancing). A loopback advertised in OSPF shows up on the other routers as a /32 host route.
default-information originate always: the router distributes a default route through OSPF; the other routers see it asO*E2 0.0.0.0/0. If the router itself has no default route, the always keyword is needed.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.