Routing
Highlighted
Routing

Juniper mx and Cisco routers - problem with ospf metric

‎12-25-2017 05:29 AM

Good day everyone.

I`m trying to set up ospf in multivendor network - most of the routers are cisco and we are adding one juniper mx.

My problem that juniper do not add anything to loopback while cisco adds cost of 10.

So i want to change juniper behavior to cisco-like.

Is there any chance to make it?

 

 

 

 

4 REPLIES 4
Highlighted
Routing

Re: Juniper mx and Cisco routers - problem with ospf metric

‎12-25-2017 05:48 AM
You can configure below configuration.

set protocols ospf area 0 interface lo0.0 metric 10

HTH
Highlighted
Routing

Re: Juniper mx and Cisco routers - problem with ospf metric

‎12-25-2017 07:10 AM

Already tried this. Not working Smiley Sad

Highlighted
Routing
Solution
Accepted by topic author smelnik
‎12-25-2017 07:28 AM

Re: Juniper mx and Cisco routers - problem with ospf metric

‎12-25-2017 07:19 AM

It's working for me. Can you show your configuration?

root@R1_re# show interfaces lo0
unit 0 {
family inet {
address 172.16.0.33/32;
}

[edit]
root@R1_re# show protocols ospf
area 0.0.0.0 {
interface ge-0/0/1.0 
interface ge-0/0/2.0 
interface lo0.0 {
metric 10;
}
}

[edit]
root@R1_re#

 

root@R2_re# run show route 172.16.0.33

inet.0: 31 destinations, 46 routes (31 active, 0 holddown, 0 hidden)
@ = Routing Use Only, # = Forwarding Use Only
+ = Active Route, - = Last Active, * = Both

172.16.0.33/32 *[OSPF/10] 01:30:38, metric 11
> to 10.0.0.12 via ge-0/0/1.0

 

 

R1 and R2 are connected point to point

Highlighted
Routing

Re: Juniper mx and Cisco routers - problem with ospf metric

‎12-25-2017 07:29 AM

My bad.

Got lo0 interface passive by mistake.

Thanks.