Community discussions

MikroTik App
 
earcaesar1
just joined
Topic Author
Posts: 15
Joined: Fri Jun 26, 2015 7:59 pm

Auto add OSPF Routes in v7

Mon Aug 14, 2023 9:55 pm

I am having a problem where routes are not being added automatically to my route table. I can't seem to figure out how to do it. It seems to be isolated to needing to be done on my main router. Everything worked fine in v6 but with the change in v7 it does not automatically add.

I want to automatically add the 172.17.0.x route to my table along with the 10.0.x.1 route too

So I have a network setup as follows.

1 Main SSTP mikrotik router that a few remote sites connect to.
Each of my remote sites has a mikrotik router on site that connects a SSTP tunnel to the Main Router.

Main Router is 172.17.0.1 and has another network on another interface with 10.0.0.1/24 Has version 6
Remote Site 1 has a VPN ip setup as 172.17.0.2 and a local network as 10.0.2.1/24 Has version 6
Remote Site 2 has a VPN ip setup as 172.17.0.3 and a local network as 10.0.3.1/24 Has version 6
Remote Site 3 has a VPN ip setup as 172.17.0.4 and a local network as 10.0.4.1/24 Has version 6

System was working correctly prior. Remote site 1, 2, and 3all have access to Main site and vise versa.

I am trying to add Remote site 4. My new Router has version 7 and I can not downgrade it. In order to try and get this to work I got an older router and loaded my template and upgraded to version 7 so it will adjust the settings.

Remote Site 4 has a VPN ip setup as 172.17.0.5 and a local network as 10.0.5.1/24 and now has version 7.

It appears that the SSTP connection works. I am able to connect Remote site 4 to the Main router. From the Main Router ping tool I am able to Ping each router no issue. From Remote site 4 I can ping Main Router but unable to ping Remote site 1/2/3. It does not appear that OSPF functions are working as it did before.

Does anybody have suggestions as to what I should be looking at? Both of the Codes below are version 6 of the RouterOS and work fine with getting access to resources. As soon as we try to use remote site 4 with the same settings and upgraded from 6 it does not work.

This is the settings I have for my routing for Remote Site 3
/interface sstp-client
add connect-to=x.x.x.x disabled=no name=SSTP password=xxxx \
    profile=default-encryption user=RemoteSite3
/routing ospf area
add area-id=10.0.0.0 name=HVPN
/routing ospf instance
set [ find default=yes ] router-id=10.0.4.1
/ip address
add address=10.0.4.1/24 interface="LAN Bridge" network=10.0.4.0
/routing ospf network
add area=HVPN network=172.17.0.0/16
add area=HVPN network=10.0.4.0/24
This is my Main Router OSPF Settings
/routing ospf area
add area-id=10.0.0.0 name=VPN
add area-id=172.17.0.0 name=area1
/routing ospf instance
set [ find default=yes ] router-id=10.0.0.1
/interface sstp-server server
set enabled=yes
/ip address
add address=10.0.0.1/16 interface=bridge1 network=10.0.0.0
add address=172.17.0.1/16 interface=bridge1 network=172.17.0.0
/ppp secret
add local-address=172.17.0.1 name=RemoteSite1 password=\
    xxxxxx profile=default-encryption remote-address=172.17.0.2 service=sstp
add local-address=172.17.0.1 name=RemoteSite2 password=xxxxxxx \
    profile=default-encryption remote-address=172.17.0.3 service=sstp
add local-address=172.17.0.1 name=RemoteSite3 password=xxxxxx \
    profile=default-encryption remote-address=172.17.0.4 service=sstp
add local-address=172.17.0.1 name=RemoteSite4 password=\
    xxxxx profile=default-encryption remote-address=172.17.0.5 service=\
    sstp
/routing ospf network
add area=VPN network=172.17.0.0/16
add area=VPN network=10.0.0.0/8

Who is online

Users browsing this forum: No registered users and 4 guests