SOURCECODEBD.NET

Live Experience

4. CONFIGURE OSPF STUB AREA

HOW TO CONFIGURE STUB AREA
 
Interface IP Address Configuration  
  
R1  
  
Interface  IP Address   Subnet Mask  
S0/2/0      1.1.1.1           255.0.0.0  
E 0           10.1.1.1         255.0.0.0  
  
R2
  
  
Interface   IP Address   Subnet Mask  
S0             1.1.1.2           255.0.0.0  
S1             2.2.2.1           255.0.0.0  
E0             20.1.1.1         255.0.0.0  
  
R3  
  
Interface   IP Address   Subnet Mask  
S0              2.2.2.2          255.0.0.0  
E 0            30.1.1.1         255.0.0.0
 
Task 1   
  
Configure OSPF in Area 0 on R1 ( S0/2/0, E0 ),  R2 ( S0 )  
Configure OSPF in Area 1 on R2 ( S1 ), R3 ( S0, E 0 ).  
  
R1                                                                 
                                                                   
Router ospf 1                                                      
Network 1.1.1.1 0.0.0.0 area 0                                     
Network 10.0.0.0 0.255.255.255 area 1                              
 
R2
 
Router ospf 1
Network 1.1.1.2 0.0.0.0 area0
Network 2.2.2.1 0.0.0.0 area2
 
 
R3  
  
Router ospf 1  
Network 2.2.2.2 0.0.0.0 area2  
Network 30.0.0.0 0.255.255.255 area2 
 
 
Task 2 : Configure EIGRP AS 100 on R2 ( E0 ) and redistribute into OSPF.  
  
R2  
  
Router eigrp100  
Network 20.0.0.0   
No auto-summary  
  
Router ospf 1  
Redistribute eigrp 100 metric 10 subnets  
  
 
Verification :  
  
R3#show ip route  
  
The output displays inter-area routes (O IA) and OSPF external type 2   
(O E2).   
 
 
R3#show ip ospf database  
  
The output displays Type-5 external link-states.
 
 
Task 3  
  
Configure OSPF Area 1 as Stub.  
  
R2                                                                    
                                                                      
Router ospf 1                                                         
Area 1 stub                                                         
 
 
R3 
 
Router ospf 1
Area 1 stub 
 
  
After configuring stub, verify the routing table on R3  
  
R2#show ip ospf neighbor  
  
R3#show ip route  
  
The output displays default route and inter-area routes, both designated with (OIA) in the  
routing table.  
Default route is denoted as (O* IA). 
 
R3#show ip ospf database  
  
The output does not display the ‘Type 5 External LSA.
 
Note: If stub is not configured on both routers OSPF neighborship will not establish. It  
can be verified by the following commands.  
  
R2#show ip ospf neighbor  
  
R2#debug ip ospf events  
  
The output displays mismatched Stub/Transit area option bit .
You are here: Home / OSPF / HOW TO CONFIGURE STUB