Community discussions

MikroTik App
 
cteastman
just joined
Topic Author
Posts: 12
Joined: Fri Nov 30, 2012 5:11 pm

Cisco to Mikrotik OSPF

Fri Feb 01, 2013 7:53 pm

I have reviewed several previous forum posts so as not to cover old ground.

((internet))
|
|
|
Cisco router 10.254.254.21 Loopback
|
|
|
|
Mikrotik Router 10.254.254.24 Loopback

Can ping any port on Mikrotik from Cisco Router.

Can ping cisco router from connected ethernet, but not from loopback

problem is no internet on other side of mikrotik router.

Both have area ID of 0

Mikrotik OSPF Print

name="default" router-id=10.254.254.24 distribute-default=never
redistribute-connected=as-type-2 redistribute-static=as-type-2
redistribute-rip=no redistribute-bgp=no redistribute-other-ospf=no
metric-default=20 metric-connected=20 metric-static=20 metric-rip=20
metric-bgp=auto metric-other-ospf=auto in-filter=ospf-in
out-filter=ospf-out

Cisco Router
router-id 10.254.254.21
redistribute bgp 65001 metric 100 subnets
network 10.16.10.0 0.0.1.255 area 0.0.0.0
network 10.18.10.0 0.0.1.255 area 0.0.0.0
network 10.20.10.0 0.0.1.255 area 0.0.0.0
network 10.20.30.0 0.0.1.255 area 0.0.0.0
network 10.22.10.0 0.0.1.255 area 0.0.0.0
network 10.254.10.0 0.0.0.3 area 0.0.0.0
network 10.254.254.21 0.0.0.0 area 0.0.0.0

what more info do you need?
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Cisco to Mikrotik OSPF

Sat Feb 02, 2013 12:36 am

At least you need som config to the Interface pointing to mikrotik.

how about Security? if you drop the Complete config, its more easy to say.

as a start, you need Your "link net" between the two routers, and the loopback configured in Networks. also you need to setup the Interface Connected to cisco.

also, read http://wiki.mikrotik.com/wiki/Manual:OS ... g_protocol
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1742
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: Cisco to Mikrotik OSPF

Sat Feb 02, 2013 3:04 am

Issue a 'debug ip ospf adj' on the cisco router amd it should clue you in on what you're missing.

MTU mismatch is a commonly overlooked problem as well as instance mismatch (cisco is zero by default)
 
cteastman
just joined
Topic Author
Posts: 12
Joined: Fri Nov 30, 2012 5:11 pm

Re: Cisco to Mikrotik OSPF

Sat Feb 02, 2013 5:27 am

Thank you. Instance ID is set to 0 on both sides. Though now that I think about it MTU probably does not match. You probably just fixed my problem. Thank you.

I think I understand what is going on.

The Cisco Router is doing Vlan trunking through a switch and the Mtik router is on other side of the switch going to a port where the vlan is trunked.


That alters the MTU somewhat yes? I forgot I disconnected the Mtik at the office so I wasn't able to do the debug yet.
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1742
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: Cisco to Mikrotik OSPF

Sat Feb 02, 2013 6:42 am

Vlan trunking does affect the L2 mtu in the mikrotik world (decrements by 4 bytes) but its the Layer 3 IP mtu that has to match for OSPF to form an adjacency. Typically 1500 is a safe bet for IP mtu on ethernet based networks
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Cisco to Mikrotik OSPF

Mon Feb 04, 2013 2:52 pm

If you are having problems forming adjacency also check:

That OSPF traffic (protocol 89) is not blocked - should be able to see traffic from Cisco using Torch on RouterOS.

That netmasks match - mismatched netmasks sometimes allow pings to succeed but adjacency will fail.

That the Hello and Dead intervals have not been inadvertently changed - should default to 10s / 40s on Ethernet on both Cisco and RouterOS.

The RouterOS log often shows reasons for adjacency failures.
 
cteastman
just joined
Topic Author
Posts: 12
Joined: Fri Nov 30, 2012 5:11 pm

Re: Cisco to Mikrotik OSPF

Tue Feb 05, 2013 1:12 am

Okay, so I came back and did some more work on this and as it turns out...I don't have a problem.

Full Adjacency has been established between my field router and the core network cisco router.

I can access all company services from an inside port of my router HOWEVER still cannot get to the internet.

I emailed the contractor that deals with the core routers and he said that he is having difficulty getting ospf to redistribute properly into the bgp that AT&T requires for their MPLS circuits.


He said just to make a static route from my router into his....did that.......nothing changed.

Why would he think that would work?
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Cisco to Mikrotik OSPF

Tue Feb 05, 2013 5:57 am

If you have adjacency established then the answer to why there is no internet access is probably to be found in the routing table. Is OSPF inserting a default (internet) route? If not suspect the Cisco OSPF config. If you have a default (internet) route then check - does the outside world have a return path to you? Hard to be specific without the gory details. :)
 
cteastman
just joined
Topic Author
Posts: 12
Joined: Fri Nov 30, 2012 5:11 pm

Re: Cisco to Mikrotik OSPF

Tue Feb 05, 2013 9:14 pm

Cisco is always in the wrong. I suspect them. Default route NOT being injected from Mikrotik.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Cisco to Mikrotik OSPF

Tue Feb 05, 2013 9:52 pm

The active dynamic OSPF entries appear in the RouterOS routing table with the ADo flag. You can see the LSAs behind those routes in the OSPF LSA tab.