Community discussions

MikroTik App
 
User avatar
jwcn
Forum Guru
Forum Guru
Topic Author
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

OSPF Migration

Sat Mar 21, 2015 12:55 am

I am having an issue migrating to OSPF. I started with a bridged network, converted the network to routed hops but with all static routing. Now I am moving to OSPF and I have two routers where their neighbors can see them but they show zero neighbors.

Where do I start with troubleshooting?
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: OSPF Migration

Sat Mar 21, 2015 1:27 am

setup ospf correctly.

1. make sure that you connect routers in a l2 net between them.

2. for ease - make a bridge called loopback and put an /32 ip to this - from a net you dont use. eg 172.31.0.1/32 at first router - 172.31.0.2/32 at router 2 etc. Follow the same if you put more routers in net. - and have this "id" - to all config. it makes it easy.

Have the routerid in ospf as the same as loopback ip. - instance..... enable whatever redistribute you want.
Then put the linknet ip's to area backbone. under network tab.
In interface - enable ospf to interface link together. I recomend using point to point ospf - and have a md5 key. Same at both sites.

wolla - it should work.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: OSPF Migration

Sat Mar 21, 2015 1:31 am

Make sure that both neighbors agree on all of the parameters - IP network / mask, network type (broadcast, point-to-point, multipoint, etc), and even MTU. (IP MTU)

Make sure both neighbors actually consider the interface as a part of OSPF, and that they agree on the area ID, and area type.

Make sure that you have a backbone area and that it is contiguous (in fact, I recommend all routers use 'backbone' area while you're new to OSPF and don't have a huge network with tens of thousands of routes)

If you have authentication enabled, make sure you have that configured the same on both sides.
 
User avatar
jwcn
Forum Guru
Forum Guru
Topic Author
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Re: OSPF Migration

Sat Mar 21, 2015 1:38 am

Ok so here is the export and neighbors on HutchSW001:

[john@HutchSW001] /routing ospf> export
# mar/20/2015 23:33:06 by RouterOS 6.27
# software id = 1K6R-VXKJ
#
/routing ospf instance
set [ find default=yes ] router-id=10.255.255.249
/routing ospf network
add area=backbone network=10.0.0.0/8
add area=backbone network=172.16.0.0/16
[john@HutchSW001] /routing ospf> ..
[john@HutchSW001] /routing> neigh
bad command name neigh (line 1 column 1)
[john@HutchSW001] /routing> ospf
[john@HutchSW001] /routing ospf> neigh
[john@HutchSW001] /routing ospf neighbor> pr
0 instance=default router-id=10.255.255.247 address=10.0.13.1 interface=ether5
priority=1 dr-address=10.0.13.1 backup-dr-address=10.0.13.18 state="Full"
state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0
adjacency=1h58m38s

1 instance=default router-id=10.255.255.246 address=10.0.6.2
interface=bridge-local priority=1 dr-address=10.0.6.2
backup-dr-address=0.0.0.0 state="Init" state-changes=1 ls-retransmits=0
ls-requests=0 db-summaries=0

2 instance=default router-id=10.255.255.250 address=10.105.93.1 interface=ether4
priority=1 dr-address=10.105.93.1 backup-dr-address=10.105.93.10
state="Full" state-changes=6 ls-retransmits=0 ls-requests=0 db-summaries=0
adjacency=4h11m26s
[john@HutchSW001] /routing ospf neighbor>

As you can see here 10.255.255.246 is the next router Wye Mills listed below:

/routing ospf instance
set [ find default=yes ] router-id=10.255.255.246
/routing ospf network
add area=backbone network=10.0.0.0/8
add area=backbone network=172.16.0.0/16
[john@Wye Mills] /routing ospf> neigh
[john@Wye Mills] /routing ospf neighbor> pr

[john@Wye Mills] /routing ospf neighbor>


So HutchSW001 can see Wye Mills but Wye Mills cannot see HutchSW001.

Who is online

Users browsing this forum: No registered users and 39 guests