13 February 2014

OSPF Totally Stub Area Network

An OSPF network can be divided into sub-domains called areas. An area is a logical collection of OSPF networks, routers, and links that have the same area identification. A router within an area must maintain a topological database for the area to which it belongs.

The router doesn't have detailed information about network topology outside of its area, thereby reducing the size of its database.


[*] Do not advertise the 172.16 via network! Use redistribute command ; )

Routing table of [R2] before the use of totally stub are type:

R2# sh ip route
...
Gateway of last resort is not set

C    192.168.12.0/24 is directly connected, FastEthernet0/0
     1.0.0.0/32 is subnetted, 1 subnets
O IA    1.1.1.1 [110/2] via 192.168.12.1, 00:00:00, FastEthernet0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 4 subnets
O E2    172.16.0.0 [110/20] via 192.168.12.1, 00:00:00, FastEthernet0/0
O E2    172.16.1.0 [110/20] via 192.168.12.1, 00:00:00, FastEthernet0/0
O E2    172.16.2.0 [110/20] via 192.168.12.1, 00:00:00, FastEthernet0/0
O E2    172.16.3.0 [110/20] via 192.168.12.1, 00:00:01, FastEthernet0/0
O E2    172.16.4.0 [110/20] via 192.168.12.1, 00:00:01, FastEthernet0/0
O E2    172.16.5.0 [110/20] via 192.168.12.1, 00:00:01, FastEthernet0/0

And after the stub option configured:

R2# sh ip route 
...
Gateway of last resort is 192.168.12.1 to network 0.0.0.0

C    192.168.12.0/24 is directly connected, FastEthernet0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
O*IA 0.0.0.0/0 [110/2] via 192.168.12.1, 00:29:49, FastEthernet0/0

Wow

So, how I can do that also? Very simple! at R1, run:

R1# conf t
R1(config)# router ospf [id]
R1(config-router)# area 1 stub no-summary

And .. to not receive this:

OSPF: Hello from 192.168.12.1 with mismatched Stub/Transit area option bitf 1

Configure at [R2] also ; )

R2# conf t
R2(config)# router ospf [id]
R2(config-router)# area 1 stub

Remember, to form adj the ospf routers need agree:

-- hello / dead-interval
-- area id
-- password [if using auth]
-- stub area flag
-- mtu

OSPF Stub Network Resources:


biOos

No comments: