Community discussions

MikroTik App
 
mhmd
just joined
Topic Author
Posts: 13
Joined: Tue Mar 01, 2016 2:26 pm
Location: Iraq

OSPF router ID

Wed Sep 20, 2017 8:59 am

Hello,

If I'm using OSPF with loopback interface and I want to set an IP address to the loopback interface which one should it be? /30 or /32?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: OSPF router ID

Wed Sep 20, 2017 12:44 pm

/32
 
JimmyNyholm
Member Candidate
Member Candidate
Posts: 248
Joined: Mon Apr 25, 2016 2:16 am
Location: Sweden

Re: OSPF router ID

Thu Sep 21, 2017 12:59 pm

and set interface to p2p passive.
Include ip in the networks tab
verify ospf interface up.

Done.
 
User avatar
amt
Long time Member
Long time Member
Posts: 529
Joined: Fri Jan 16, 2015 2:05 pm

Re: OSPF router ID

Thu Sep 21, 2017 2:42 pm

and set interface to p2p passive.
Include ip in the networks tab
verify ospf interface up.

Done.
Hi,
for using loopback in ospf network should i use P2p network type ? I just add loopbackip to ospf network as backbone and its come automatically to ospf interface as dnymic passive.

thanks
 
idlemind
Forum Guru
Forum Guru
Posts: 1146
Joined: Fri Mar 24, 2017 11:15 pm
Location: USA

Re: OSPF router ID

Fri Sep 22, 2017 6:22 pm

and set interface to p2p passive.
Include ip in the networks tab
verify ospf interface up.

Done.
Hi,
for using loopback in ospf network should i use P2p network type ? I just add loopbackip to ospf network as backbone and its come automatically to ospf interface as dnymic passive.

thanks
The network type won't matter as it is passive. You may choose to hard code the interface to passive to ensure that it doesn't try to form a neighbor relationship on it ever just to be safe if you wish though.
 
JimmyNyholm
Member Candidate
Member Candidate
Posts: 248
Joined: Mon Apr 25, 2016 2:16 am
Location: Sweden

Re: OSPF router ID

Sun Sep 24, 2017 10:49 am

and set interface to p2p passive.
Include ip in the networks tab
verify ospf interface up.

Done.
Hi,
for using loopback in ospf network should i use P2p network type ? I just add loopbackip to ospf network as backbone and its come automatically to ospf interface as dnymic passive.

thanks
The network type won't matter as it is passive. You may choose to hard code the interface to passive to ensure that it doesn't try to form a neighbour relationship on it ever just to be safe if you wish though.
Idlemind is right. And I allways think of security/stability in layers. if something can be configured more strict it should, as it tend not to break if someone makes a misstake later on.
The p2p makes sense on a "Loopback" interface and is also a notion to other admins that this is not an ordinary interface ptp on a bridge? (ahhh it's mikrotik, it has no loopback semantic, wait this is the loopback.....) the Passive setting on the interface makes sense in the above statement and one more. The CPU in your poor MT box will not send hellos to this synthetic interface. Making it Passive serves many purposes it minimize cpu cycles taken, it protects you if some nasty bug sneaks into bridge code or an admin connects a port to the "wrong" bridge....
All this is of course not Empirical tested but with the experience of many years of networking one comes to a mindset that is stable and secure by design.

Who is online

Users browsing this forum: No registered users and 45 guests