Single area OSPF Configuration in JunOS on GNS3 | Lab Example

How to configure Open Shortest Path First on juniper:

OSPF is an IGP which mean it will route packets within a single autonomous system. OSPF is a link-state routing protocol, OSPF make routing decisions using the SPF algorithm (also known as the Dijkstra algorithm). You can configure OSPF version 2 and version 3 with JunOS. For OSPF configuration on JunOS you need to identify the interfaces that will participate in OSPF. You must enable OSPF on all interfaces within the network on which OSPF traffic is to travel. OSPF uses a router identifier for originating packets from device.  

Lab Details:

Gns3 version= Gns3 1.1
Junos version=  JunOS Olive 12.1 VM image
VM VirtualBox version=  4.2.4 
System OS= Windows 8.1

Lab Tasks:

We have three JunOS routers in our topology, our task is to configure all the routers in same OSPF area 0.
Few commands are required for the configuration of OSPF on juniper but  if you want to explore how to configure IP addresses to JunOS interfaces you can visit IP & static routing on JunOS.

Configuration of OSPF on JunOS2:

login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 172.16.1.1/24
root # set protocols ospf area 0.0.0.0 interface em0
root #Commit
Having issue with commit command visit missing mandatory statement'root-authentication'
learn more about the configuration of junos in gns3 you can see how to configure junos on gns3 and Juniper commands.

Configuration of OSPF on JunOS3:



login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 172.16.1.2/24
root # set interfaces em1 unit 0 family inet address 192.168.1.1/24
OSPF Configurations commands
root # set protocols ospf area 0.0.0.0 interface em0
root # set protocols ospf area 0.0.0.0 interface em1
root #Commit

Configuration of OSPF on JunOS4:



login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 192.168.1.2/24

root # set protocols ospf area 0.0.0.0 interface em0

How to test lab configuration:

You can ping 192.168.1.2 from JunOS2 and it will be successful in case of correct configurations, also find the show route command output on JunOS2 which is showing some OSPF routes in routing table.

Other Lab Example : Configuration of RIP on Juniper
End  
UA-23728446-1