Community discussions

MikroTik App
 
MauiB
just joined
Topic Author
Posts: 11
Joined: Fri Apr 12, 2019 11:13 am

Two WANs (fibre and adsl), only one IP on the adsl

Mon Apr 29, 2019 12:42 pm

Good day,

I have two WAN connections set up. One for fibre and one for ADSL (as a failover). What I am struggling with now is, I want to keep the entire office on the fibre and only one IP on the ADSL for example my local IP. Any assistance will be appreciated.

Thanks in advance.
 
tdw
Forum Guru
Forum Guru
Posts: 2084
Joined: Sat May 05, 2018 11:55 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Mon Apr 29, 2019 2:47 pm

Presumably you have set this up with a gateway check on the fibre WAN default gateway, and the ADSL WAN default gateway has a greater distance so becomes active when the fibre WAN goes away.

Create an additional default gateway for the ADSL WAN, but for marked routes. You will need to mark new connections from your one LAN IP address, then mark routing for the marked connections. Separately, if you want inbound connections via the ADSL WAN to work you should mark new input connections.
 
MauiB
just joined
Topic Author
Posts: 11
Joined: Fri Apr 12, 2019 11:13 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Mon Apr 29, 2019 3:16 pm

Thank you tdw,

This is only temporary. What I did was adding only my local IP address in the address list on the ADSL interface. If I disable that same address I have internet on the fibre, if I enable it, I do not have internet access. Another company configured the mikrotik and I cannot get hold of the technician to get internet access on the local IP I added. I cannot make sense on how it is configured. If I can get help on how to give my IP I added internet access on ADSL, I do not have to struggle getting hold of them to guide me through.
 
tdw
Forum Guru
Forum Guru
Posts: 2084
Joined: Sat May 05, 2018 11:55 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Mon Apr 29, 2019 4:04 pm

I'd suggest posting your current configuration - use '/export hide-sensitive file=MYCONFIGNAME' then replace any public IPs, etc. still visible and post between code tags (the [] option above)
 
MauiB
just joined
Topic Author
Posts: 11
Joined: Fri Apr 12, 2019 11:13 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Tue Apr 30, 2019 9:07 am

Unfortunately I do only have write permissions. I cannot export my configuration. Thank you for trying though.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22257
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Two WANs (fibre and adsl), only one IP on the adsl

Tue Apr 30, 2019 4:11 pm

Perhaps mangle the traffic from that single IP (from source to WAN) and then create the appropriate routing rule........
 
MauiB
just joined
Topic Author
Posts: 11
Joined: Fri Apr 12, 2019 11:13 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Tue Apr 30, 2019 5:06 pm

Because I cannot export the configuration I made screenshots of how I did the configuration. For the life of me I do not know what I am doing wrong
You do not have the required permissions to view the files attached to this post.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Two WANs (fibre and adsl), only one IP on the adsl

Thu May 02, 2019 3:00 am

I think you're looking for this:
/ip route
add dst-address=0.0.0.0/0 gateway=ADSL1_PPPoE routing-mark="routing mark 1 IP (ADSL)"
/ip firewall mangle
add chain=prerouting src-address=10.0.x.x action=mark-routing new-routing-mark="routing mark 1 IP (ADSL)"
 
MauiB
just joined
Topic Author
Posts: 11
Joined: Fri Apr 12, 2019 11:13 am

Re: Two WANs (fibre and adsl), only one IP on the adsl

Thu May 02, 2019 2:58 pm

Thank you everyone for trying to help. Nothing seems to be working, so I am going to put that one user on the ADSL manually.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Two WANs (fibre and adsl), only one IP on the adsl

Thu May 02, 2019 9:27 pm

You give up too fast, there are still things you can try:
- Check if counter for mangle rule increases.
- Test internet access from router, e.g. with:
/ping routing-table="routing mark 1 IP (ADSL)" address=8.8.8.8
- Use Tools->Torch on ADSL1_PPPoE and see if you see correct outgoing packets, with right address, i.e. that srcnat works.