Community discussions

MikroTik App
 
atuxnull
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Tue Feb 07, 2017 10:02 pm

dual wan with pppoe, only 1 works

Thu Oct 03, 2019 8:15 am

trying to setup dual wan load balancing in my Mikrotik. I have two 50M from same ISP and it provides pppoe. Always uses only 1 connection, never the 2nd, even if i disconnect the cable from 1st pppoe.
Here is my config
/interface bridge
add name=LAN
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
/interface pppoe-client
add add-default-route=yes disabled=no interface=WAN1 name=pppoe-WAN1 \
    password=mn57zf2 use-peer-dns=yes user=atux@otenet.gr
add add-default-route=yes disabled=no interface=WAN2 name=pppoe-WAN2 \
    password=98%xvzf use-peer-dns=yes user=null@otenet.gr
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.88.200-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=LAN name=dhcp1
/tool user-manager customer
set admin access=\
    own-routers,own-users,own-profiles,own-limits,config-payment-gw
/interface bridge port
add bridge=LAN interface=ether3
add bridge=LAN interface=wlan1
/ip address
add address=192.168.88.1/24 interface=LAN network=192.168.88.0
/ip cloud
set update-time=no
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
# pppoe-WAN1 ready
add action=masquerade chain=srcnat out-interface=pppoe-WAN1
# pppoe-WAN2 ready
add action=masquerade chain=srcnat out-interface=pppoe-WAN2
/tool user-manager database
set db-path=user-manager
I am trying to achieve a better utilization of both xDSL lines and in case of multiple connections to use both. So if a user opens many sessions in a browser, then it will use both pppoes.

could you help me please?
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: dual wan with pppoe, only 1 works

Thu Oct 03, 2019 11:25 am

Use Mangles and PCC to load balance your traffic.
https://wiki.mikrotik.com/wiki/Manual:PCC

Who is online

Users browsing this forum: FunTasTik and 86 guests