0% found this document useful (0 votes)
21 views13 pages

OSPF Configuration Guide for Routers

The document provides detailed configurations for OSPF (Open Shortest Path First) across multiple routers (R1 to R11) including single area and multi-area setups. It outlines specific tasks such as assigning router IDs, creating virtual links, and configuring areas with various properties like stub and NSSA. Additionally, it includes commands for ensuring connectivity and routing table checks within the OSPF domain.

Uploaded by

Dhanaraj M
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views13 pages

OSPF Configuration Guide for Routers

The document provides detailed configurations for OSPF (Open Shortest Path First) across multiple routers (R1 to R11) including single area and multi-area setups. It outlines specific tasks such as assigning router IDs, creating virtual links, and configuring areas with various properties like stub and NSSA. Additionally, it includes commands for ensuring connectivity and routing table checks within the OSPF domain.

Uploaded by

Dhanaraj M
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

OSPF LAB CONFIGURATION

Hayder Al-Zubaidi
[Link]@[Link]
Initial Routers Configuration

R1
hostname R1
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface e0/1
ip addres [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R2
hostname R2
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]
R3
hostname R3
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R4
hostname R4
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R5
hostname R5
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R6
hostname R6
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R10
hostname R10
interface e0/1
ip address [Link] [Link]
no shutdown
!
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]

R11
hostname R11
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]
-------------------------------------------------------------------------------------------------------------------------------
Task 1:

A. Configure Single area OSPF (Backbone Area) between R1-R6 with the below steps:

• Create OSPF Instance.


• Create OSPF Backbone Area.

B. Assign Router ID ([Link]) to R1, and make Sure R5 will be DR and R6 will be BDR
for [Link]/24 network.
C. All other routers should not elect either DR or BDR.
D. Create Local Area Network for R1-R6 within this format 172.16.x.0/24 where x is
router number.
E. R1 Local Area Network should be reachable from R2-R6 and OSPF Messages should
not be sent through the LAN.

R1
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
passive-interface loopback 1
!
interface e0/0
ip ospf priority 0

R2
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 0

R3
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 0

R4
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 0
R5
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 254

R6
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 255
-------------------------------------------------------------------------------------------------------------------------------
Task 2

A. Configure multi-Area OSPF by adding area 1 to the setup between R1 and R10.
B. Assign Router ID ([Link]) to R10.

R1
router ospf 1
network [Link] [Link] area 1

R10
router ospf 1
router-id [Link]
network [Link] [Link] area 1
network [Link] [Link] area 1
network [Link] [Link] area 1
-------------------------------------------------------------------------------------------------------------------------------
Task 3

A. Expand the setup by adding Area 2 and R11 by connecting to R10.

R10
router ospf 1
network [Link] [Link] area 2

R11
Router ospf 1
router-id [Link]
network [Link] [Link] area 2
network [Link] [Link] area 2
network [Link] [Link] area 2
-------------------------------------------------------------------------------------------------------------------------------
Task 4

A. Create Virtual link between R1 and R10.


B. Check the connectivity and routing table from R6 to all routes inside OSPF domain.

R1
router ospf 1
area 1 virtual-link [Link]

R10
router ospf 1
area 1 virtual-link [Link]
-------------------------------------------------------------------------------------------------------------------------------
Task 5

A. Create summary address by using area range in R1 for the subnetting in Area 0
toward Area 1

router ospf 1
area 0 range [Link] [Link].0
Initial Routers Configuration
R1
hostname R1
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface e0/1
ip addres dhcp
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]
!
interface loopback 2
ip address [Link] [Link]

R2
hostname R2
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface e0/1
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]

R3
hostname R3
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
!
interface loopback 1
ip address [Link] [Link]
!
interface loopback 2
ip address [Link] [Link]

R4
hostname R4
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface e0/1
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]

R5
hostname R5
interface e0/0
ip address [Link] [Link]
no shutdown
!
interface loopback 0
ip address [Link] [Link]
-------------------------------------------------------------------------------------------------------------------------------
Task 1

A. Configure Single area OSPF (Backbone Area) between R1, R2, R4 with the below steps:

• Create OSPF Instance.


• Create OSPF Backbone Area.

B. Assign Router ID ([Link]) to R1, and make Sure R1 will be DR for [Link]/24
network.
C. All other routers should not elect either DR or BDR.
D. Create Local Area Network for R1, R3, R5 as illustrated in the topology above.
E. Configure area 23 between R2 and R3
F. Configure area 45 between R4 and R5

R1
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
!
interface e0/0
ip ospf priority 255

R2
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 23
!
interface e0/0
ip ospf priority 0

R3
router ospf 1
router-id [Link]
network [Link] [Link] area 23
network [Link] [Link] area 23
network [Link] [Link] area 23
network [Link] [Link] area 23
R4
router ospf 1
router-id [Link]
network [Link] [Link] area 0
network [Link] [Link] area 0
network [Link] [Link] area 45
!
interface e0/0
ip ospf priority 0

R5
router ospf 1
router-id [Link]
network [Link] [Link] area 45
network [Link] [Link] area 45
redistribute static subnets
!
ip route [Link] [Link] null0
ip route [Link] [Link] null0
-------------------------------------------------------------------------------------------------------------------------------
Task 2

A. Use MD5 password for backbone area use (CCNA) as password.

R1, R2, R4
interface Ethernet 0/0
ip ospf message-digest-key 1 md5 CCNA
ip ospf authentication message-digest
-------------------------------------------------------------------------------------------------------------------------------
Task 3

A. Propagate default route by using OSPF from R1 to rest of OSPF domain and make
sure all routers in the same and other areas have reachability to [Link]/24 and
[Link]/24.

R1
router ospf 1
default-information originate
-------------------------------------------------------------------------------------------------------------------------------
Task 4

A. Make area 23 between Router 2 and Router 3 as totally Stub.


B. Make area 45 between Router 4 and Router 5 as totally NSSA.

R2
router ospf 1
area 23 stub no-summary

R3
router ospf 1
area 23 stub

R4
router ospf 1
area 45 nssa no-summary

R5
router ospf 1
area 45 nssa
-------------------------------------------------------------------------------------------------------------------------------
Hayder Al-Zubaidi
CCIE Enterprise Infrastructure #60062

You might also like