In this Gns3 tutorial I will show you how to configure the OSPF Stub Area, Totally Stub Area and Not So Stubby Area. This is a lengthy lab therefore I have divided this lab into four parts as follow:
Part-1: IP(s) and OSPF Multi Area Configuration
Part-1: IP(s) and OSPF Multi Area Configuration:-
Design the lab in gns3 as below: R2 and R4 are Area border routers (ABR), while R3 is ASBR.
Complete the configurations on all routers.
R1 Configuration:
R1(config)# interface Loopback1
R1(config-if)# ip address 10.1.2.1 255.255.255.0
R1(config -if)# ip ospf 1 area 1
R1(config-if)# interface Loopback2
R1(config-if)# ip address 10.1.3.1 255.255.255.0
R1(config-if)# ip ospf 1 area 1
R1(config-if)# interface Loopback3
R1(config-if)# ip address 10.1.4.1 255.255.255.0
R1(config-if)# ip ospf 1 area 1
R1(config-if)# interface Serial1/0
R1(config-if)# ip address 10.1.1.1 255.255.255.0
R1(config-if)# ip ospf 1 area 1
R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R2 Configuration:
R2(config)# conf t
R2(config)#interface Serial1/0
R2(config)# ip address 10.1.1.2 255.255.255.0
R2(config)#ip ospf 1 area 1
R2(config)#interface Serial1/1
R2(config)# ip address 20.1.1.1 255.255.255.0
R2(config)# ip ospf 1 area 0
R2(config)# router ospf 1
R2(config-router)# router-id 2.2.2.2
R3 Configuration:
R3(config)# interface Loopback1
R3(config-if)# ip address 99.9.1.1 255.255.255.0
R3(config -if)# interface Loopback2
R3(config-if)# ip address 99.9.2.1 255.255.255.0
R3(config-if)# interface Loopback3
R3(config-if)# ip address 99.9.3.1 255.255.255.0
R3(config-if)# interface Loopback4
R3(config-if)# ip address 99.9.4.1 255.255.255.0
R3(config-if)# interface Loopback5
R3(config-if)# ip address 99.9.5.1 255.255.255.0
R3(config-if)# interface Serial1/0
R3(config-if)# ip address 20.1.1.2 255.255.255.0
R3(config-if)# ip ospf 1 area 0
R3(config-if)# interface Serial1/1
R3(config-if)# ip address 30.1.1.1 255.255.255.0
R3(config-if)# ip ospf 1 area 0
R3 Redistribution:
I have configured some loopback interfaces on R3 and then advertise them as RIP routes. To send these routes into OSPF network we use redistribution command as under:
R3(config)# router rip
R3(config-router)# version 2
R3(config-router)# network 99.0.0.0
exit
R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
R3(config-router)# summary-address 99.9.0.0 255.255.248.0
R3(config-router)#redistribute rip subnets metric 5
R4 Configuration:
R4(config)# interface Serial1/0
R4(config)# ip address 30.1.1.2 255.255.255.0
R4(config)# ip ospf 1 area 0
R4(config)# interface Serial1/1
R4(config)# ip address 40.1.1.1 255.255.255.0
R4(config)# ip ospf 1 area 2
R4(config)# router ospf 1
R4(config-router)# router-id 4.4.4.4
R5 Configurations:
R5(config)#interface Serial1/0
R5(config-if)# ip address 40.1.1.2 255.255.255.0
R5(config-if)# ip ospf 1 area 2
R4(config)#exit
R5(config)#router ospf 1
R5(config-router)# router-id 5.5.5.5
R5(config-router)#area 2 stub
Verification:
1. Ping from R1 to R2, R3, R4, R5 and to RIP routes on R3 should be successfull.
No comments:
Post a Comment