Step 3: Check OSPF on a Stub Router
Action
To verify the OSPF configuration on a stub router in your network, enter the following commands:
user@host>show configurationuser@host>show ospf interfaceSample Output
The following sample output is for an OSPF configuration on
R5, a stub router shown in Figure 11:user@R5>show configuration[...Output truncated...]interfaces {so-0/0/2{unit 0 {family inet{address 10.1.45.2/30;}}}lo0{unit 0 {family inet{address 10.0.0.5/32;}}}}routing-options {router-id 10.0.0.5;}protocols {ospf {area 0.0.0.2{stub;interface so-0/0/2.0;interface lo0.0 {passive;}}}}user@R5>show ospf interfaceInterface State Area DR ID BDR ID Nbrslo0.0 DRother 0.0.0.2 0.0.0.0 0.0.0.0 0so-0/0/2.0PtToPt 0.0.0.2 0.0.0.0 0.0.0.0 1What It Means
The sample output shows a basic OSPF configuration at the [
edit protocols ospf] and [edit interfaces] hierarchy levels onR5, astub router.
R5has two interfaces included at the [edit protocols ospf] hierarchy level, and those interfaces have thefamily inetstatement included at the [edit interfaces] hierarchy level. Both interfaces,so-0/0/2.0and the loopback interface (lo0), are in the stub area (0.0.0.2).
R5has the router ID configured manually to avoid possible problems when the OSPF router ID (RID) changes; for example, when multiple loopback addresses are configured. The RID uniquely identifies the router within the OSPF network. It is transmitted within the LSAs used to populate the link-state database and calculate the shortest-path tree. In a link-state network, it is important that two routers do not share the same RID value, otherwise IP routing problems may occur.A stub area does not allow AS external advertisements to flood within that area.
R5relies on a default route (0.0.0.0/0) to reach destinations outside the AS. The default route can be statically configured onR5or advertised by an ABR (R4). In this network, the default LSA is advertised byR4.A stub area is useful if you want to reduce the size of the topological database and therefore the amount of memory required from the routers in the stub area. However, some restrictions apply to a stub area. You cannot create a virtual link through a stub area, and a stub area cannot contain an ASBR.