Community discussions

MikroTik App
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

OSPF question

Wed Aug 25, 2004 2:54 pm

After reading mt doc and cisco documents, i have quesion for somebody more familiar with ospf than me ..

Eample network:
mt1 - 10.0.0.1/24, lan 192.168.1.0/24
mt2- 10.0.0.2/24 lan 192.168.2.0/24

ospf area 10.0.0.0/16

after applying above config i have on mt1 dc route to 10.0.0.0/24 and dio route to 10.0.0.0/24 without gw od interface. why? it is invalid, becouse route is doubled, but how it should be done?

thanks
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Wed Aug 25, 2004 8:29 pm

I am a little unclear on what your asking, please try to be as clear as possible.

You say you have a DC route to 10.0.0.0/24, yes you should always have this. Then I think your saying you have a DIO route but your wanting to know what about this DIO route?

Understand, the network in question, 10.0.0.0 is already part of a directly connected interface. DC routes will not get over written by OSPF routes, because Connected routes have a lower Administrative Distance (are more preferred) than OSPF routes. What you need to use OSPF for in your scenerio, is for each router to exchange info about its 192.168.x.x networks, since those are not directly connected.

Please post the ospf config of each router, and a "/ip route print" from each router.

Brian
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

Wed Aug 25, 2004 10:07 pm

Thank signal for fast reply.

dc route to 10.0.0.0/24 is ok, it was auto added after setting up interface ip address.

but why routes to networks connected to local interfaces, exported by the ospf to rest of the network, are added localy (this one is invalid, coz it's dubled with dc)?

below config which should explain my question:

mt1:

[admin@mt1] ip> address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.1/24 192.168.1.0 192.168.1.255 ether1
1 10.0.0.1/24 10.0.0.0.0 10.0.0.255 wlan1

[admin@mt1] ip> route print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected, C - connect, S - static, r - rip, o - ospf, b - bgp
# DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 DC 192.168.1.0/24 r 0.0.0.0 0 ether1
1 DC 10.0.0.0/24 r 0.0.0.0 0 wlan1
2 Io 192.168.1.0/24 110
3 Io 10.0.0.0/24 110

[admin@mt1] routing ospf area> print
Flags: X - disabled, I - invalid
# NAME AREA-ID STUB DEFAULT-COST AUTHENTICATION
0 backbone 0.0.0.0 none

[admin@mt1] routing ospf area> print
Flags: X - disabled, I - invalid
# NAME AREA-ID STUB DEFAULT-COST AUTHENTICATION
0 backbone 0.0.0.0 none

[admin@mt1] routing ospf network> print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 192.168.0.0/16 backbone
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Wed Aug 25, 2004 11:04 pm

You only run OSPF on links/networks that are talking to an OSPF neighbor.

So in your diagram you posted, you should NOT be running OSPF on the 192.168.x.x. networks. You should instead run OSPF on the 10.x.x.x network. Then you do:

/routing ospf
set redistribute-connected=as-type-1 metric-connected=1

And this will redistribute your connected interfaces. Understand, the networks you specify with OSPF are not the networks your trying to announce. They are the networks you are trying to establish OSPF adjacencies (neighbor relationships) to other OSPF routers on.

So remove OSPF on 192.168.x.x, run OSPF on the 10.x.x.x network, redistribute connected, then look at /route ip print

Brian
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

Thu Aug 26, 2004 12:17 am

Ok, that i understand.

But with ospf on network 10.0.0.0/24, it gives me invalid route to 10.0.0.0/24 network as i mentioned before.

I understand, that in networks section I need to set up addresses of my backbone (or sub backbone). OSPF is working, but every ospf enabled station has doubled route to other backbone routers with DIO.

When I set up interface ip (10.0.0.0/24), i have one DC route.
After adding ospf network 10.0.0.0/24 i have second DIO route to this network.

If i'm right, router should not add his own propagated routes to own routing table, if the routes are already added after adding interface ip.
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Thu Aug 26, 2004 12:28 am

What does MT show for ospf neighbor print? There must be something misconfigured somehwere.

Brian
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

Thu Aug 26, 2004 1:51 am

There is 2-way connection in neighbours menu.

I don't know what is wrong, ospf routes are propagated between routers, but everywhere i have DIO routes, as described before. I have tried between 3 mt routers (2.8.11 <-> 2.813 and 2.813 <-> 2.8.12), different networks, every time i have the same DIO routes on localy connected networks.

So, this shouldn't happen? maybe i'm doing something wrong, I must do more tests :roll:
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

Fri Aug 27, 2004 1:38 am

hmm, simple case:

interface wlan0, i'm setting up ip, for example 10.0.0.1/24
it gives me auto added route to 10.0.0.0/24 via wlan0, and it is ok.

now time for ospf.
redistribute-connected: as-type-1
redistribute-static: no
redistribute-rip: no
redistribute-bgp: no

i'm adding network 10.0.0.0/24,

and now, i have in neighbors:

router-id=10.0.0.1 address=10.0.0.1 priority=1 state="2-Way" state-changes=0 ls-retransmits=0 ls-requests=0
db-summaries=0 dr-id=10.0.0.1 backup-dr-id=0.0.0.0

and in routes:

1 Io 10.0.0.0/24 110
2 DC 10.0.0.0/24 r 0.0.0.0 0 wlan1

Can anybody tell me why this gives me invalid route (#1)?
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Fri Aug 27, 2004 5:53 am

Whats the neighbor output show for the other side of the link?

Brian
 
sako
just joined
Topic Author
Posts: 8
Joined: Thu Jul 01, 2004 3:02 am

Fri Aug 27, 2004 11:23 am

On both ends i have two neighbors on the list:
- local station - 2-way
- remote station - full

it looks similar at both ends:

router-id=10.0.0.2 address=10.0.0.1 priority=1 state="Full" state-changes=6 ls-retransmits=0 ls-requests=0
db-summaries=0 dr-id=10.0.0.1 backup-dr-id=10.0.0.2

router-id=10.0.0.2 address=10.0.0.2 priority=1 state="2-Way" state-changes=0 ls-retransmits=0 ls-requests=0
db-summaries=0 dr-id=10.0.0.1 backup-dr-id=10.0.0.2

and other side:

router-id=10.0.0.1 address=10.0.0.1 priority=1 state="2-Way" state-changes=0 ls-retransmits=0 ls-requests=0
db-summaries=0 dr-id=10.0.0.1 backup-dr-id=10.0.0.2

router-id=10.0.0.1 address=10.0.0.2 priority=1 state="Full" state-changes=5 ls-retransmits=0 ls-requests=0
db-summaries=0 dr-id=10.0.0.1 backup-dr-id=10.0.0.2

Who is online

Users browsing this forum: Abdelhadi, BartoszP, itimo01 and 40 guests