Description: The purpose of this lab is to configure OSPF on all the devices with an area of 100 and to verify the configuration using show commands of OSPF.
Network Diagram :
Instructions:
1. Assign the IP address of all the devices as given below
Device | Interface | IP Address | Mask |
---|---|---|---|
R1 | So-0/0/0
So-0/0/1 |
192.168.3.1
192.168.1.1 |
255.255.255.0
255.255.255.0 |
R2 | So-0/0/0
So-0/0/1 |
192.168.1.2
192.168.2.1 |
255.255.255.0
255.255.255.0 |
R3 | So-0/0/0
So-0/0/1 |
192.168.3.2
192.168.2.2 |
255.255.255.0
255.255.255.0 |
2. Enable OSPF (use area number as 100) on all the interfaces of all the devices
3. Issue show ospf interface on R1
4. Issue show ospf neighbor on R1.
5. Issue show ospf database on R1.
On R1:
user@R1>configure
[edit]
user@R1#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#set address 192.168.3.1/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#set address 192.168.1.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R1#exit
[edit]
user@R1#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R1#exit
[edit]
user@R1#commit
commit complete
[edit]
user@R1#
On R2:
user@R2>configure
[edit]
user@R2#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#set address 192.168.1.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#set address 192.168.2.1/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R2#exit
[edit]
user@R2#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R2#exit
[edit]
user@R2#commit
commit complete
[edit]
user@R2#
On R3:
user@R3>configure
[edit]
user@R3#edit interfaces so-0/0/0 unit 0 family inet
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#set address 192.168.3.2/24
[edit interfaces so-0/0/0 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit interfaces so-0/0/1 unit 0 family inet
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#set address 192.168.2.2/24
[edit interfaces so-0/0/1 unit 0 family inet]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 100 interface so-0/0/0
[edit protocols ospf area 100 interface so-0/0/0]
user@R3#exit
[edit]
user@R3#edit protocols ospf area 100 interface so-0/0/1
[edit protocols ospf area 100 interface so-0/0/1]
user@R3#exit
[edit]
user@R3#commit
commit complete
[edit]
user@R3#
On R1:
user@R1>show ospf interface
Interface State Area DR ID BDR ID Nbrs so-0/0/1 PtToPt 0.0.0.100 0.0.0.0 0.0.0.0 1 so-0/0/0 PtToPt 0.0.0.100 0.0.0.0 0.0.0.0 1
user@R1>show ospf neighbor
Address Interface State ID Pri Dead 192.168.3.2 so-0/0/0 Full 192.168.3.2 125 37
user@R1>show ospf database
OSPF link state database, Area 0.0.0.100 Type ID Adv Rtr Seq Age Opt Cksum Len Router *192.168.1.2 192.168.1.2 0x80000002 215 0x20 0xfeec 28 OSPF link state database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router *192.168.2.1 192.168.2.1 0x80000002 215 0x20 0xfeec 28