Community discussions

MikroTik App
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

loopback interface

Wed Nov 02, 2011 8:11 am

Good morning

How do i go about setting up a loopback interface in the board for use of the OSPF
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: loopback interface

Wed Nov 02, 2011 10:00 am

Just create a bridge interface with zero member ports. The interface will always be active and thus will function as a regular loopback interface. This is the only way to emulate a loopback using RouterOS.
/interface bridge add name=loopback0
 
n21roadie
Forum Guru
Forum Guru
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: loopback interface

Wed Nov 02, 2011 11:34 am

Good morning

How do i go about setting up a loopback interface in the board for use of the OSPF
Why do you need OSPF loopback and what MT OS version are you running on the board.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: loopback interface

Thu Nov 03, 2011 10:01 am

Just create a bridge interface with zero member ports. The interface will always be active and thus will function as a regular loopback interface. This is the only way to emulate a loopback using RouterOS.
/interface bridge add name=loopback0

thanks. i'll try that
Good morning

How do i go about setting up a loopback interface in the board for use of the OSPF
Why do you need OSPF loopback and what MT OS version are you running on the board.
in a cisco router when you setup ospf you put the RID on o loopback int, other wise when the int goes down so does the ospf.

well i have spotted the same issue within Mtik. i did think i'd have the same issue as i could not find anyway to make a loopback device but it seems the issue is also present in Mtil. this is why i'm looking for an int that will only go down when the router goes down
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: loopback interface

Thu Nov 03, 2011 1:37 pm

Yes, the same issue is indeed present in RouterOS, and the method with the bridge is the way to solve it.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: loopback interface

Thu Nov 03, 2011 2:04 pm

anyways, thanks [all] for all the help
i'll drive into this slowly to make sure i don't break a system that at least appears to be working :P
 
n21roadie
Forum Guru
Forum Guru
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: loopback interface

Thu Nov 03, 2011 2:12 pm

Yes, the same issue is indeed present in RouterOS, and the method with the bridge is the way to solve it.
Does this still apply to MT OS 5.X series as well?
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: loopback interface

Thu Nov 03, 2011 4:49 pm

OSPF router ID should not be changed after the OSPF process has been started. OSPF router ID change resets all OSPF adjacencies, resulting in temporary router outage. The router also has to originate new copies of all its LSAs with the new router ID. Stale copies of the LSAs originated by the “old” OSPF process remain in the OSPF topology databases of all routers until they expire (their age increases beyond max-age).
Quoted from http://wiki.nil.com/OSPF_Router_ID_selection_algorithm

This document has a small mention of the router-id parameter, and instructions on creating a loopback interface and assigning an IP to it.
http://wiki.mikrotik.com/wiki/Manual:OSPF-examples
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: loopback interface

Mon Nov 21, 2011 2:18 pm

Yes, the same issue is indeed present in RouterOS, and the method with the bridge is the way to solve it.
Does this still apply to MT OS 5.X series as well?
While I cannot answer for the specific OSPF implementation of RouterOS, best practice networking dictates that every device should have an ip-address that is not bound to a physical interface. In most OSPF implementations, the moment the OSPF service is started it binds to an interface, thus if you do not have a non-physical ip interface for it to bind to, any physical link event, e.g. loss of link, will impact the OSPF service.

Who is online

Users browsing this forum: No registered users and 46 guests