Community discussions

MikroTik App
 
basyir
just joined
Topic Author
Posts: 5
Joined: Thu Jul 28, 2022 4:37 pm
Contact:

Configuring Dual WAN - PPPoE & Ethernet

Thu Jul 28, 2022 4:53 pm

Hi guys,

New to the community here. I've just started tinkering with my Mikrotik Hex S for the past 2 weeks.
Currently my objective is to be able to combine (load balance?) my two available internet connections.

ISP1: PPPoE to Ether1
ISP2: Ethernet to Ether2

The connection for the ISP1 is from ISP ONT to Ether1, while for ISP2 is not as straight-forward.
For ISP2 I have shared and pulled the connection via cat 5e cable from my room mate's ISP router to the Mikrotik (Ether2).
The ISP2 router gives an IP address via DHCP (192.168.x.x subnet).

I use Ether4 as access point (WiFi) and Ether5 as connection to the main bridge.

Note: I do not have access to PPPoE credential for ISP2, so router configuration for ISP2 is not an option.

How can I combine the speed from both ISPs in this case. I've tried following related tutorials on YouTube but found none so far with my specific case.
Appreciate your kind sharing of knowledge. Thank you.

-Basyir
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19109
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Configuring Dual WAN - PPPoE & Ethernet

Thu Jul 28, 2022 10:02 pm

You are a tad confused. PPPOE has nothing to do with ISP2, your provider for your second WAN connection is a private LAN connection from your friends router.
In terms of speed by using something like PCC load balancing
https://mum.mikrotik.com/presentations/US12/steve.pdf

You are combinging the total throughput available to the users behind your router. Lets say ISP 1 is 200up and 200down and ISP2 (friend) has 300up and 300down).
This means your users will have access to 500up or 500 down throughput TOTAL. This does not mean per session, it means that a single user is still limited by 200 up or down via your connection or 300up or 300down via the friends connection. However your users now have more capacity to get or send files up to 300Mbps worth. You gain
a. capacity
b. redundant (assuming the ISP provider for his connection is different, as if its the same loss of an ISP signal hits both connections)
 
basyir
just joined
Topic Author
Posts: 5
Joined: Thu Jul 28, 2022 4:37 pm
Contact:

Re: Configuring Dual WAN - PPPoE & Ethernet

Mon Aug 01, 2022 4:42 am

Thanks for the heads up anav.

Wondering if there is any way to get this setup working. Been tinkering around for several days.
Connecting the 2nd connection via LAN to my Windows PC and connecting my ISP connection via Wifi managed to pool the bandwidth together.

However still struggling to get this working with the Mikrotik. Plugging My 2nd connection into ether2 shows no bandwidth/traffic whatsoever.
Also enabling the masquerade NAT rule for 2nd connection brings both connections down.

Again appreciate the kind sharing.

-Basyir
 
basyir
just joined
Topic Author
Posts: 5
Joined: Thu Jul 28, 2022 4:37 pm
Contact:

Re: Configuring Dual WAN - PPPoE & Ethernet

Mon Aug 01, 2022 4:54 am

Pretty sure something is wrong with these rules:

Mangle rules:

/ip firewall mangle
add action=accept chain=prerouting connection-mark="" disabled=yes \
dst-address=10.0.10.1 in-interface=bridge
add action=accept chain=prerouting connection-mark="" disabled=yes \
dst-address=192.168.1.1 in-interface=bridge
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
yes in-interface=unifi new-connection-mark=WAN1_CONN
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
yes in-interface=ISP2 new-connection-mark=WAN2_CONN
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
yes dst-address-type=!local in-interface=bridge new-connection-mark=\
WAN1_CONN per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
yes dst-address-type=!local in-interface=bridge new-connection-mark=\
WAN2_CONN per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_CONN disabled=\
yes in-interface=bridge new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_CONN disabled=\
yes in-interface=bridge new-routing-mark=to_WAN2
add action=mark-routing chain=output connection-mark=WAN1_CONN disabled=yes \
new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_CONN disabled=yes \
new-routing-mark=to_WAN2

Nat rules (ether2 unplugged atm):

/ip firewall nat
add action=masquerade chain=srcnat out-interface=unifi
add action=masquerade chain=srcnat disabled=yes out-interface=ISP2

Routes:

/ip route
add check-gateway=ping distance=1 gateway=unifi routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=ISP2 routing-mark=to_WAN2

Appreciate any comments to this.

-Basyir
 
basyir
just joined
Topic Author
Posts: 5
Joined: Thu Jul 28, 2022 4:37 pm
Contact:

Re: Configuring Dual WAN - PPPoE & Ethernet

Thu Sep 22, 2022 12:47 pm

You are a tad confused. PPPOE has nothing to do with ISP2, your provider for your second WAN connection is a private LAN connection from your friends router.
In terms of speed by using something like PCC load balancing
https://mum.mikrotik.com/presentations/US12/steve.pdf

You are combinging the total throughput available to the users behind your router. Lets say ISP 1 is 200up and 200down and ISP2 (friend) has 300up and 300down).
This means your users will have access to 500up or 500 down throughput TOTAL. This does not mean per session, it means that a single user is still limited by 200 up or down via your connection or 300up or 300down via the friends connection. However your users now have more capacity to get or send files up to 300Mbps worth. You gain
a. capacity
b. redundant (assuming the ISP provider for his connection is different, as if its the same loss of an ISP signal hits both connections)
Hi anav,

Read your insights on the load balancing. Is it impossible to setup load balancing with this particular environment (PPPoE + LAN)?
Will scrap the idea if so. Thank you for any feedback.

Basyir
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19109
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Configuring Dual WAN - PPPoE & Ethernet

Thu Sep 22, 2022 1:52 pm

Please post your complete config,
/export (minus your serial number and any public WANIP or WANIP gateway info).

Not able to figure out the issues without that.

Who is online

Users browsing this forum: No registered users and 48 guests