How to configure ospf on juniper

 

In this Tutorial we share how to configure default route on juniper.

Step 1

Juniper 1 Initial  configure

set system root-authentication plain-text-password

New password:
Retype new password:

set interfaces em0 unit 0 family inet address 172.16.1.1/24

set interfaces em1 unit 0 family inet address 172.16.2.1/24

commit

Juniper 2 Initial  configure

set system root-authentication plain-text-password

New password:
Retype new password:

set interfaces em0 unit 0 family inet address 172.16.2.2/24

set interfaces em1 unit 0 family inet address 172.16.3.1/24

commit

Juniper 1 OSPF  Configure

set protocols ospf area 0 interface em0

set protocols ospf area 0 interface em1

commit

Juniper 2 OSPF Configure

set protocols ospf area 0 interface em0

set protocols ospf area 0 interface em1

commit

 

Verification

root# run show route

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both

172.16.1.0/24      *[Direct/0] 00:09:03
> via em0.0
172.16.1.1/32      *[Local/0] 00:09:03
Local via em0.0
172.16.2.0/24      *[Direct/0] 00:09:03
> via em1.0
172.16.2.1/32      *[Local/0] 00:09:03
Local via em1.0
172.16.3.0/24      *[OSPF/10] 00:00:05, metric 2
> to 172.16.2.2 via em1.0
224.0.0.5/32       *[OSPF/10] 00:00:56, metric 1
MultiRecv

 

PC1> ping 172.16.3.2
84 bytes from 172.16.3.2 icmp_seq=1 ttl=62 time=1.932 ms
84 bytes from 172.16.3.2 icmp_seq=2 ttl=62 time=14.881 ms
84 bytes from 172.16.3.2 icmp_seq=3 ttl=62 time=14.150 ms
84 bytes from 172.16.3.2 icmp_seq=4 ttl=62 time=22.354 ms
84 bytes from 172.16.3.2 icmp_seq=5 ttl=62 time=24.634 ms

 

 

 

Related posts

Leave a Comment