Community discussions

MikroTik App
 
Estiaan
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Tue Jul 19, 2011 10:15 am

OSPF Connecting 2 seperate networks

Wed Sep 18, 2013 2:45 pm

Ive got 2 OSPF routed networks

the first is in the 192.168.4.32/29 from there ive routed the network out to different subnets" /29, /30" on my highsite, but all my networks setup on /routing ospf networks are in the "backbone" area.

The second OSPF Network is running in 192.168.20.1/29, from where is also goes out to the highsite with different Subnets "/29, /30"
Both Networks has got there own Edge router redistributing the default routes, but all my networks setup on /routing ospf networks are in the "backbone" area.

Ive now built an wireless link between the 2 networks, and used 192.168.50.0/30 as the subnet between the different networks.

What happens is every 5 seconds it will add all the routes from Network 1, and 5 seconds later it drops all those routes and add the routes from network 2.

There is abut 350 routes on Network 1, and about 50 routes on network 2.
at the end of the day I only want 1 edge router redistributing the default route.

Any idea how I can Connect these 2 networks?

On network 1, this is my export

2 192.168.4.182/30 192.168.4.180 wlan1

4 192.168.50.2/30 192.168.50.0 ether1

/routing ospf instance
set [ find default=yes ] disabled=no distribute-default=never in-filter=ospf-in \
metric-bgp=auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
redistribute-bgp=no redistribute-connected=as-type-1 \
redistribute-other-ospf=no redistribute-rip=no redistribute-static=\
as-type-1 router-id=0.0.0.0
/routing ospf area
set [ find default=yes ] area-id=0.0.0.0 disabled=no instance=default name=\
backbone type=default
add area-id=1.1.1.1 disabled=no instance=default name=area1 type=default
/routing ospf network
add area=backbone disabled=no network=192.168.4.180/30 Wireless link coming from Network 1

add area=backbone disabled=no network=192.168.50.0/30


Network 2


/ip address

# ADDRESS NETWORK INTERFACE
0 192.168.50.1/30 192.168.50.0 ether2
1 192.168.20.49/30 192.168.20.48 wlan1
2 192.168.20.41/29 192.168.20.40 LAN-Bridge

/routing ospf instance
set [ find default=yes ] disabled=no distribute-default=never in-filter=ospf-in \
metric-bgp=auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
redistribute-bgp=no redistribute-connected=as-type-1 \
redistribute-other-ospf=no redistribute-rip=no redistribute-static=\
as-type-1 router-id=0.0.0.0
/routing ospf area
set [ find default=yes ] area-id=0.0.0.0 disabled=no instance=default name=\
backbone type=default
/routing ospf network
add area=backbone disabled=yes network=192.168.50.0/30
add area=backbone disabled=no network=192.168.20.40/29
add area=backbone disabled=no network=192.168.20.48/30


Any help?
 
snowcrash
just joined
Posts: 12
Joined: Wed Aug 05, 2009 4:27 am

Re: OSPF Connecting 2 seperate networks

Mon Sep 23, 2013 1:01 am

Try changing your router id. I see you have them both set to 0.0.0.0. You should have a loopback interface and id also. I always use my loopback ip address as my router id also.

Who is online

Users browsing this forum: No registered users and 20 guests