OSPF Default Route on Juniper

Juniper, OSPF, Topology, rjlogs, GNS3, Junos

Continue the previous post “Configure OSPF on Juniper” , now we will configure the default route.

The scenario is IP loopback interface of J1 (1.1.1.1/32) will not advertised through OSPF, but J2 and J3 will reach it through the default route that injected into OSPF.

First of all, remove the loopback interface of J1 from OSPF :

[edit]
root@J1# edit protocols ospf area 0

[edit protocols ospf area 0.0.0.0]
root@J1# delete interface lo0.0

Continue reading “OSPF Default Route on Juniper”

Configure OSPF on Juniper

Juniper, OSPF, Topology, rjlogs, GNS3

With this simple topology we will configure OSPF single area on Juniper routers.

Let’s start from J1, setup the IP Addresses :

[edit]
root@J1# set interfaces ge-0/0/0 unit 0 family inet address 172.28.1.3/24

[edit]
root@J1# set interfaces lo0 unit 0 family inet address 1.1.1.1/32

[edit]
root@J1# commit

Now configure J1 for OSPF :

[edit]
root@J1# set protocols ospf area 0 interface ge-0/0/0.0

[edit]
root@J1# set protocols ospf area 0 interface lo0.0 passive

[edit]
root@J1# commit

Continue reading “Configure OSPF on Juniper”

OSPF Virtual Link

In OSPF Multi Area, all area must be connected to the backbone area (area 0), in order to communicate each other. Inter area routing will through the backbone area (area 0). If there’s area that isn’t connected to the backbone area we can setup a virtual link.

OSPF, Virtual Link, Cisco, Routing Protocol, GNS3

Based on topology above, area 2 doesn’t have connection/route to other area, since it’s not connected to the backbone area (area 0).

In this case, we can setup a Virtual Link from R4 to R2 and vice versa, from R2 to R4.

Continue reading “OSPF Virtual Link”