SOURCECODEBD.NET

Live Experience

1. CONFIGURING OSPF IN SINGLE AREA

HOW TO OSPF IN SINGLE AREA CONFIGURATION
 
Interface IP Address Configuration  
  
R1  
  
Interface    IP Address   Subnet Mask  
S0               1.1.1.1          255.0.0.0  
E0               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. Advertise all networks on all routers.   
  
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 0          
                                              
R2                                                                     
 
Router ospf 1
Network1.1.1.2 0.0.0.0 area 0
Network1.1.1.2 0.0.0.0 area 0
Network 2.2.2.1 0.0.0.0 area 0
Network 20.0.0.0 0.255.255.255 area 0
 
 
R3  
  
Router ospf 1  
Network 2.2.2.2 0.0.0.0 area 0  
Network 30.0.0.0 0.255.255.255 area 0  
  
 
Verification :  
  
R1 # show ip route  
  
OSPF routes are displayed as “O” routes in the routing table.  
  
 
R1 # show ip ospf neighbor  
  
 
The symbol indicated by a dash [-] represents that the neighbor is on the serial interface  
and DR and BDR are not used on point-to-point interfaces.  
  
 
R1 # show ip ospf  
  
  
This command displays the OSPF router-id.
 
 
 
 
 
Task 2  
  
Configure OSPF in Area 0. Advertise all networks on all routers. Hard Code the Router- 
id based on the following Loop back ip address:  
  
R1 Loopback 0 6.6.6.6  
R2 Loopback 0 7.7.7.7  
R3 Loopback 0 8.8.8.8  
  
R1                                           
                                                                      
int loopback 0                               
ip address 6.6.6.6 255.255.255.255           
Router ospf 1                                
Network 6.6.6.6 0.0.0.0 area 0               
 
R2
 
int loopback 0
ip address 7.7.7.7 255.255.255.255
Router ospf 1
Network 7.7.7.7 0.0.0.0 area 0
 
                                                                      
R3  
  
int loopback 0  
ip address 8.8.8.8 255.255.255.255  
Router ospf 1  
Network 8.8.8.8 0.0.0.0 area 0  
  
  
Verification:  
 
R1# show ip ospf  
  
This output displays that router-id chosen is 6.6.6.6 as it is the loopback address.  
  
Repeat the same on router2 with loopback address as 7.7.7.7 and on router 3 with  
loopback as 8.8.8.8 and verify using show ip OSPF command  
  
 
Task 3   
  
Configure OSPF in Area 0. Advertise all networks on all routers. Hard Code the Router- 
id based on the following :  
  
             R1  3.3.3.3  
             R2  4.4.4.4  
             R3  5.5.5.5
 
R1 
 
Router ospf 1 
Router-id 3.3.3.3 
Network 1.1.1.1 0.0.0.0 area 0 
Network  10.0.0.0 0.255.255.255 area 0 
Network 6.6.6.6  0.0.0.0 area 0 
 
 
R2 
 
Router ospf 1 
Router-id 4.4.4.4 
Network 1.1.1.2 0.0.0.0 area 0 
Network 2.2.2.1 0.0.0.0 area 0 
Network  20.0.0.0 0.255.255.255 area 0 
Network 7.7.7.7  0.0.0.0 area 0 
 
 
R3 
 
Router ospf 1 
Router-id 5.5.5.5 
Network 2.2.2.2 0.0.0.0 area 0 
Network  30.0.0.0 0.255.255.255 area 0 
Network 8.8.8.8  0.0.0.0 area 0
 
 
Verification :-
 
R1# show ip ospf  
  
This output displays that router-id chosen is 6.6.6.6 as it is the loopback address.  
  
Repeat the same on router2 with loopback address as 7.7.7.7 and on router 3 with  
loopback as 8.8.8.8 and verify using show ip OSPF command 
You are here: Home / OSPF / HOW TO OSPF IN SINGLE AREA CONFIGURATION