Community discussions

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

need help with OSPF

Sat May 07, 2011 7:14 pm

right, as the title says, i need a little help.

we have a network that was setup in a very interesting way
Every tower connects to each other through wireless interfaces that are on a /30 network.
Within the tower OSPF is running but how the towers transport traffic is not how you would expect, each tower connects to the next down the line by using a 0.0.0.0/0 router pointing to the tower down the line
Now recently I've finally been able to make a loop in the physical network but the logical one is still straight.
here comes the kicker, if you think of a big ring that has been setup imagine the core router is hooked onto that ring and all the traffic has to flow there for net.
Thee are currently four ADSL router connected to it and a 0.0.0.0/0 route points to all four of those routers.
the router adjacent to the core router connects to it via a /30 address but the core router connects back via a /24 address.
For some reason when i put that connection to /30 the who system falls apart.



I bought a book called "basic routing" and one of the chapters talks about OSPF and i have read through that thing a few times can i can't figure out what the reason for it failing.
from what i can see, every tower (despite them using gateway routes to forward traffic) has an update LSA and routing database of every other tower on the network except the connection to the core router for obvious reasons.
when i changed the IP on the core router from /24 to /30 i could get next from the office but the office connects to the adjacent router, beyond that there was nothing. It also took me longer and longer to connect to other towers on the network the further a got logically from my directly connected router.

I really need to some help here as i need to get this network running properly on OSPF. i need to do this as i need to create a loop in the network for redundant purposes.
If you need more info please ask.
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Sat May 07, 2011 8:06 pm

Please draw a basic diagram and post it here. It is hard to understand your topology and requirements without such drawing.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sat May 07, 2011 9:20 pm

okay, it'll take me a while to do so.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sat May 07, 2011 10:11 pm

Image
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: need help with OSPF

Sat May 07, 2011 10:51 pm

http://forum.mikrotik.com/viewtopic.php?f=14&t=51026
That thread contains a similar setup and some general discussion on the related OSPF configuration.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sat May 07, 2011 11:03 pm

damn, my brain went squige half way through that. it will take me a while to fully understand it, will also need to talk with some people.

Thanks for the help

one question though, from what is have told you, why does my network fall apart when bring the link between tower one and the core router into the same broadcast domain. it just doesn't make sense.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: need help with OSPF

Sat May 07, 2011 11:06 pm

Don't know - I don't think there is enough information for a reply. It depends on your IP addressing and specific OSPF configuration.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sat May 07, 2011 11:19 pm

ya, i just realised that i hadn't given you everything
Our previous network admin set it up like this

default routes: never
connected routes : no
static routes: type 2
rip routes: no
BGP routes: no
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Sun May 08, 2011 9:21 am

Please priovide us with output of the following commands from console (ssh, new terminal, etc.):
/routing ospf export
/ip address print

It would be really helpful.
Please confirm that you would like to use only one shortest path from each router to the modems as the default route and alternative part as backup.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sun May 08, 2011 11:01 am

Tower 1
#
/routing ospf area
add area-id=0.0.0.0 authentication=none disabled=no name=backbone type=\
    default
/routing ospf
set distribute-default=never metric-bgp=20 metric-connected=20 \
    metric-default=1 metric-rip=20 metric-static=20 mpls-te-area=unspecified \
    mpls-te-router-id=unspecified redistribute-bgp=no redistribute-connected=\
    no redistribute-rip=no redistribute-static=as-type-2 router-id=\
    192.168.100.102
/routing ospf network
add area=backbone disabled=no network=0.0.0.0/0



Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE              
 0   192.168.42.1/24    192.168.42.0    192.168.42.255  ether1                 
 1   192.168.100.42/30  192.168.100.40  192.168.100.43  Seanet Heads BB        
 2   ;;; hotspot network
     10.5.50.1/24       10.5.50.0       10.5.50.255     Virtual Hotspot AP     
 3   192.168.100.102/30 192.168.100.100 192.168.100.103 Heads Percy Int        
 4 D 192.168.152.242/32 192.168.152.241 0.0.0.0         <pppoe->            
 5 D 192.168.152.236/32 192.168.152.235 0.0.0.0         <pppoe->           
 6 D 192.168.152.234/32 192.168.152.233 0.0.0.0         <pppoe->        
 7 D 192.168.152.230/32 192.168.152.229 0.0.0.0         <pppoe->     
 8 D 192.168.152.228/32 192.168.152.227 0.0.0.0         <pppoe->           
 9 D 192.168.152.226/32 192.168.152.225 0.0.0.0         <pppoe->           
10 D 192.168.152.222/32 192.168.152.221 0.0.0.0         <pppoe->         
11 D 192.168.152.220/32 192.168.152.219 0.0.0.0         <pppoe->         
12 D 192.168.152.218/32 192.168.152.217 0.0.0.0         <pppoe->          
13 D 192.168.121.254/32 192.168.121.253 0.0.0.0         <pppoe->      
14 D 192.168.152.214/32 192.168.152.213 0.0.0.0         <pppoe->           
15 D 192.168.152.212/32 192.168.152.211 0.0.0.0         <pppoe->          
16 D 192.168.152.210/32 192.168.152.209 0.0.0.0         <pppoe->          
17 D 192.168.152.204/32 192.168.152.203 0.0.0.0         <pppoe->         
18 D 192.168.152.200/32 192.168.152.199 0.0.0.0         <pppoe->      
19 D 192.168.152.198/32 192.168.152.197 0.0.0.0         <pppoe->        
20 D 192.168.152.194/32 192.168.152.193 0.0.0.0         <pppoe->         
21 D 192.168.152.192/32 192.168.152.191 0.0.0.0         <pppoe->         
22 D 192.168.152.190/32 192.168.152.189 0.0.0.0         <pppoe->          
23 D 192.168.152.188/32 192.168.152.187 0.0.0.0         <pppoe->         
24 D 192.168.152.186/32 192.168.152.185 0.0.0.0         <pppoe->         
25 D 192.168.152.144/32 192.168.152.124 0.0.0.0         <pppoe->           
26 D 192.168.112.10/32  192.168.112.11  0.0.0.0         <pppoe->       
27 D 192.168.152.159/32 192.168.152.112 0.0.0.0         <pppoe->        
28 D 192.168.152.158/32 192.168.152.113 0.0.0.0         <pppoe->         
29 D 192.168.152.107/32 192.168.152.99  0.0.0.0         <pppoe->          
30 D 192.168.152.115/32 192.168.152.98  0.0.0.0         <pppoe->          
31 D 192.168.152.97/32  192.168.152.96  0.0.0.0         <pppoe->      
32 D 192.168.152.119/32 192.168.152.95  0.0.0.0         <pppoe->         
33 D 192.168.152.109/32 192.168.152.92  0.0.0.0         <pppoe->           
34 D 192.168.152.93/32  192.168.152.80  0.0.0.0         <pppoe->          
35 D 192.168.152.76/32  192.168.152.75  0.0.0.0         <pppoe->       
36 D 192.168.140.29/32  192.168.140.30  0.0.0.0         <pppoe->          
37 D 192.168.152.73/32  192.168.152.70  0.0.0.0         <pppoe->    
38 D 192.168.152.74/32  192.168.152.69  0.0.0.0         <pppoe->   


Tower 2 (next to tower 1)

Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE              
 0   192.168.250.1/24   192.168.250.0   192.168.250.255 ether2                 
 1   192.168.100.17/28  192.168.100.16  192.168.100.31  Hunters-Leisure        
 2   192.168.100.41/30  192.168.100.40  192.168.100.43  Heads Link             
 3   192.168.110.2/24   192.168.110.0   192.168.110.255 ether1                 
 4   10.0.10.2/24       10.0.10.0       10.0.10.255     ether1                 
 5   ;;; Hotspot
     10.5.50.1/24       10.5.50.0       10.5.50.255     Virtual Hotspot AP     
 6 D 192.168.160.76/32  192.168.160.30  0.0.0.0         <pppoe-> 

# may/08/2011 10:00:03 by RouterOS 3.16
# software id = 28SJ-LTT
#
/routing ospf area
add area-id=0.0.0.0 authentication=none disabled=no name=backbone type=\
    default
/routing ospf
set distribute-default=never metric-bgp=20 metric-connected=20 \
    metric-default=1 metric-rip=20 metric-static=20 mpls-te-area=unspecified \
    mpls-te-router-id=unspecified redistribute-bgp=no redistribute-connected=\
    no redistribute-rip=no redistribute-static=as-type-2 router-id=\
    192.168.100.17
/routing ospf area range
add advertise=yes area=backbone cost=default disabled=no range=0.0.0.0/0
/routing ospf network
add area=backbone disabled=no network=0.0.0.0/0
these are exports from one of the towers. i decided not to pull data from the core router as the OSPF is not connected to rest of the network there.

if you need that export then tell me.
I also removed the IDs of the PPPoEs
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Sun May 08, 2011 11:13 am

I think it would be helpful also to provide
 
/routing ospf neighbor print  
/routing ospf interface print  
/ip route print where static
Also show us this and above output from the tower 6 (last router in loop).
Also please show me output from the core router:
/ip route print where static
/ip addresses print
I think this will be enough.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Sun May 08, 2011 11:24 am

okay, there are actually eight routers, the image i made was a quick slap together explaining the topology
as for get all the details to you it will have to wait. there is a massive power outage in an area that has killed the one linking tower and i have no good batteries to replace the current one with leaving me to wait for the municipality to fix the problem.

no i can't use the new link, the one card is bad (getting another one in) and it bandwidth is too low to take the pressure
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Mon May 09, 2011 10:15 pm

just one question, i'm time to sit down and work on anything at the moment tricky.
Before i got an tackle everest, baring in mind there are eight towers in the core plus the core router (make nine)

do you want those print outs for every router in the ring?
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Tue May 10, 2011 1:32 pm

Only from core router, firs and last router.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Tue May 10, 2011 8:13 pm

wow, just read my reply up above and man my English becomes bad when i'm tired :P


First router
Routing ospf neighbor

 routing ospf neighbor print
 0 router-id=192.168.100.202 address=192.168.100.202 interface=Stadium 
   priority=1 dr-address=192.168.100.202 backup-dr-address=192.168.100.201 
   state="Full" state-changes=13 ls-retransmits=0 ls-requests=0 
   db-summaries=0 adjacency=3d11h8m27s 

 1 router-id=192.168.100.154 address=192.168.100.154 interface=Belvidere 
   priority=1 dr-address=192.168.100.154 backup-dr-address=192.168.100.153 
   state="Full" state-changes=5 ls-retransmits=0 ls-requests=0 db-summaries=0 
   adjacency=5w4d9h2m50s 

 2 router-id=192.168.100.125 address=192.168.100.125 interface=Hunters 
   priority=1 dr-address=192.168.100.125 backup-dr-address=192.168.100.126 
   state="Full" state-changes=20 ls-retransmits=0 ls-requests=0 
   db-summaries=0 adjacency=2w5d3h3m2s 

Routing Ospf interfaces

Flags: X - disabled, I - inactive, D - dynamic, P - passive 
 #    INTERFACE                COST  PRI NETWORK-TYPE   AUT... AUTHENTICATIO...
 0 D  ether2                   10    1   broadcast      none                   
 1 D  <pppoe-elna>             10    1   point-to-point none                   
 2 D  <pppoe-janie>            10    1   point-to-point none                   
 3 D  Hunters                  10    1   broadcast      none                   
 4 D  Stadium                  10    1   broadcast      none                   
 5 D  Belvidere                10    1   broadcast      none                   
 6 D  ether1                   10    1   broadcast      none   

Ip route print

Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                          192.168.100.1      1       
 2 A S  192.168.0.0/24                     192.168.100.1      1       
hmm, i just spotted that extra static route there, the /24 one. i wonder why our previous network admin put it in ??
also, ether 1 is the connection to the core and ether 2 connects the office.

Last router
routing ospf neighbor

Flags: X - disabled, I - inactive, D - dynamic, P - passive 
 #    INTERFACE                COST  PRI NETWORK-TYPE   AUT... AUTHENTICATIO...
 0 D  ether2                   10    1   broadcast      none                   
 1 D  <pppoe-shirley>          10    1   point-to-point none                   
[admin@Para B] > routing ospf neighbor  print            
 0 instance=default router-id=192.168.100.10 address=192.168.100.5 
   interface=ether2 priority=1 dr-address=192.168.100.5 
   backup-dr-address=192.168.100.6 state="Full" state-changes=5 
   ls-retransmits=0 ls-requests=0 db-summaries=0 adjacency=5d5h33m34s 


Routing ospf interfaces

Flags: X - disabled, I - inactive, D - dynamic, P - passive 
 #    INTERFACE                COST  PRI NETWORK-TYPE   AUT... AUTHENTICATIO...
 0 D  ether2                   10    1   broadcast      none                   
 1 D  <pppoe-shirley>          10    1   point-to-point none                   

ip route print

Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                          192.168.100.5      1       
Core router
ip route print

Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                      41.134..     1       
                                         41.134..  
                                         41.134..      
                                         41.134..       
Ip address print

Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE              
 0   192.168.100.1/24   192.168.100.0   192.168.100.255 ether01                           
 2   41.134../29     41.134..     41.134..     ether03                
 3   41.134../29   41.134..   41.134..   ether04                
 4   41.134../29    41.134..    41.134..    ether05                
 5   41.134../29  41.134..  41.134..  ether02                
 6   192.168.100.249/29 192.168.100.248 192.168.100.255 bridge1  
For security purposes i have not posted the entirety of how gateway addresses (live IPs)
the bridge you see is three ports bridged together for servers
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Wed May 11, 2011 1:02 pm

At first try to change you redistribution configuration on each OSPF router like this:
/routing ospf set redistribute-static=as-type-1 
Explanation:
A type 1 route has a metric that is the sum of the internal OSPF cost and the external redistributed cost. A type 2 route has a metric equal only to the redistributed cost.
So in this case your router will chose shortest path to the destination on each router based on interfaces costs.
I do not quite understand your question about the subnet 192.168.0.0/22
You can (as a must) remove this static route 192.168.0.0/24, it is not needed because you already have default route pointing towards same gateway. It can be needed only if there is another discontinuous subnet 192.168.0.0/22 in your network.
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: need help with OSPF

Fri May 13, 2011 3:06 pm

Was it helpful?
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: need help with OSPF

Fri May 13, 2011 6:26 pm

sorry, i got distracted by a new problem, after looking over a few things i realise that i'll have to completely break the network apart and rebuild it :(
something that i really don't feel like doing, not with the kinds of clients i have to deal with

if anything you have helped me to understand OSPF a little better :)
thanks

Who is online

Users browsing this forum: No registered users and 4 guests