Page 1 of 1
Two WANs (fibre and adsl), only one IP on the adsl
Posted: Mon Apr 29, 2019 12:42 pm
by MauiB
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.
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Mon Apr 29, 2019 2:47 pm
by tdw
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.
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Mon Apr 29, 2019 3:16 pm
by MauiB
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.
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Mon Apr 29, 2019 4:04 pm
by tdw
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)
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Tue Apr 30, 2019 9:07 am
by MauiB
Unfortunately I do only have write permissions. I cannot export my configuration. Thank you for trying though.
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Tue Apr 30, 2019 4:11 pm
by anav
Perhaps mangle the traffic from that single IP (from source to WAN) and then create the appropriate routing rule........
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Tue Apr 30, 2019 5:06 pm
by MauiB
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
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Thu May 02, 2019 3:00 am
by Sob
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)"
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Thu May 02, 2019 2:58 pm
by MauiB
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.
Re: Two WANs (fibre and adsl), only one IP on the adsl
Posted: Thu May 02, 2019 9:27 pm
by Sob
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.