Community discussions

MikroTik App
 
TheCowStir
just joined
Topic Author
Posts: 18
Joined: Mon Oct 06, 2008 8:10 am

OSPF and multiple IPs on same interface

Mon Oct 20, 2008 5:30 pm

I have just started working with OSPF and am having problems with some of the automatic route selection.

The setup:
We use both public and private IP addresses on the same segments for customer traffic (public IPs) and private IPs for device management. The problem is that when two routers have both private and public IPs they form two neighbor adjacencies. This only causes a problem for the default route as because both the public IP and Private IP path are the same cost they load balance across each path (even though it is the same physical path).

Is there a way to only use one IP address per interface for OSPF neighborships?

thanks for any help
Todd
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: OSPF and multiple IPs on same interface

Tue Oct 21, 2008 7:36 am

Seconded, just ran into this problem myself yesterday.
 
willywonka
just joined
Posts: 22
Joined: Thu Jan 11, 2007 4:25 pm

Re: OSPF and multiple IPs on same interface

Tue Oct 21, 2008 4:52 pm

I have just started working with OSPF and am having problems with some of the automatic route selection.

The setup:
We use both public and private IP addresses on the same segments for customer traffic (public IPs) and private IPs for device management. The problem is that when two routers have both private and public IPs they form two neighbor adjacencies. This only causes a problem for the default route as because both the public IP and Private IP path are the same cost they load balance across each path (even though it is the same physical path).

Is there a way to only use one IP address per interface for OSPF neighborships?

thanks for any help
Todd

Hi,
try to configure your area and your network as your public network, then set under /routing ospf redistribute-connected=no, the ospf will redistribuite only the connected routes wich belong at your area.

Stefano.
 
TheCowStir
just joined
Topic Author
Posts: 18
Joined: Mon Oct 06, 2008 8:10 am

Re: OSPF and multiple IPs on same interface

Tue Oct 28, 2008 4:57 pm

Thanks for the thought, however I am still looking to have the private network in the routing table.
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: OSPF and multiple IPs on same interface

Fri Jan 09, 2009 3:53 am

Is there perhaps a way to have 2 distinct ospf sessions running?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7185
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: OSPF and multiple IPs on same interface

Fri Jan 09, 2009 8:55 am

Run ospf only on one network (public or static) not both. Then two adjacencies will not be formed.
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: OSPF and multiple IPs on same interface

Mon Jan 19, 2009 4:24 pm

meta routers will probably also be a suitable solution to this problem as well :-)
 
awsmith
newbie
Posts: 45
Joined: Wed May 31, 2006 8:18 am

Re: OSPF and multiple IPs on same interface

Wed Jan 21, 2009 12:32 am

I have just started working with OSPF and am having problems with some of the automatic route selection.

The setup:
We use both public and private IP addresses on the same segments for customer traffic (public IPs) and private IPs for device management. The problem is that when two routers have both private and public IPs they form two neighbor adjacencies. This only causes a problem for the default route as because both the public IP and Private IP path are the same cost they load balance across each path (even though it is the same physical path).

Is there a way to only use one IP address per interface for OSPF neighborships?

thanks for any help
Todd
We do the same setup. We only put the public IPs into the area and handle the privates via redistribute-connected (metric-type 1).

Note that this does mean that if you are using stub areas, they would then need to become NSSA's as they will be announcing AS-external LSA's.

Who is online

Users browsing this forum: fghifarie and 22 guests