DC LAB- Single Area OSPF Configuration
Step 1: Create the Network Topology
● Objective: Design a topology with 3 routers, 3 switches, and host devices
● Components:
○ Routers: 3 routers (Router 0, Router 1, Router 2, Router 3).(2911 routers)
○ Switches: 3 access switches (for connecting host devices to
routers).(2960-24TT)
○ Hosts: Multiple PCs connected to the network through switches.
Step 2: Assign IP Addresses to Routers and Hosts
● Assign IP addresses to each router interface connected to its respective areas.
For Router 0:
● Interface gig0/0 → IP Address: 30.30.30.1 subnet mask 255.255.255.252(to router 2)
● Interface gig0/1 → IP Address: 10.10.10.1 subnet mask 255.255.255.252(to router 1)
● Interface gig0/2 → IP Address: 192.168.30.1 subnet mask 255.255.255.0(connected to
LAN)
For Router 1 :
● Interface gig0/0 → IP Address: 30.30.30.2 subnet mask 255.255.255.252(to router 0)
● Interface gig0/1 → IP Address: 20.20.20.1 subnet mask 255.255.255.252(to router 2)
● Interface gig0/2 → IP Address: 192.168.20.1 subnet mask 255.255.255.0(connected to
LAN)
For Router 2 :
● Interface gig0/0 → IP Address: 10.10.10.2 subnet mask 255.255.255.252(to router 0)
● Interface gig0/1 → IP Address: 20.20.20.2 subnet mask 255.255.255.252(to router 1)
● Interface gig0/2 → IP Address: 192.168.10.1 subnet mask 255.255.255.0(connected to
LAN)
Step 3: Configure IP Addresses for Host Devices
● Each host device connected to the routers (via switches) must be in the respective
subnet of the connected routers.
For PC0
● IP Address: 192.168.30.10
● Default Gateway: 192.168.30.1
For PC1
● IP Address: 192.168.20.10
● Default Gateway: 192.168.20.1
For PC2
● IP Address: 192.168.10.10
● Default Gateway: 192.168.10.1
Step 4: Configure OSPF on Each Router
Router 0:
1. Access Router CLI:
○ Enter configuration mode:
Router> enable Router# configure terminal
2. Start OSPF Process:
○ Initiate OSPF:
Router(config)# router ospf 15
3. Set Router ID:
○ Router ID for Router 1:
Router(config-router)# router-id 1.1.1.1
4. Advertise Networks in Area 1:
○ Router(config-router)# network 192.168.30.0 0.0.0.255 area 0
○ Router(config-router)# network 10.10.10.0 0.0.0.3 area 0
○ Router(config-router)# network 30.30.30.0 0.0.0.3 area 0
○ Router(config-router)#exit
○ Router(config)#do wr
Router 2 :
5. Access Router CLI:
○ Enter configuration mode:
Router> enable Router# configure terminal
6. Start OSPF Process:
○ Initiate OSPF:
Router(config)# router ospf 15
7. Set Router ID:
○ Router ID for Router 2:
Router(config-router)# router-id 2.2.2.2
8. Advertise Networks in Area 1:
○ Router(config-router)# network 192.168.10.0 0.0.0.255 area 0
○ Router(config-router)# network 10.10.10.0 0.0.0.3 area 0
○ Router(config-router)# network 20.20.20.0 0.0.0.3 area 0
○ Router(config-router)#exit
○ Router(config)#do wr
Router 1 :
1. Access Router CLI:
○ Enter configuration mode:
Router> enable Router# configure terminal
2. Start OSPF Process:
○ Initiate OSPF:
Router(config)# router ospf 15
3. Set Router ID:
○ Router ID for Router 1:
Router(config-router)# router-id 3.3.3.3
4. Advertise Networks in Area 1:
○ Router(config-router)# network 192.168.20.0 0.0.0.255 area 0
○ Router(config-router)# network 30.30.30.0 0.0.0.3 area 0
○ Router(config-router)# network 20.20.20.0 0.0.0.3 area 0
○ Router(config-router)#exit
○ Router(config)#do wr
Step 5: Verify OSPF Configuration
1. Ping Test:
○ Ping PC2 from PC1
■ For example:
ping 192.168.10.10