I provide internet to my apartment building. Each of my clients connect through PPPOE. To avoid downtimes I have got 3 uplinks from 3 different ISPs. I connect to my uplinks with PPPOE authentication. I want to load balance all three of my uplinks so that I can make proper use of the connections. I am using a hAP AC2 routerboard.
- Port 1, 2 and 3 are used for uplinks.
- Port 4 used for my home network with a DHCP server running.
- Port 5 is running a PPPOE server, which is connected to a unmanaged Cisco Gigabit switch to connect my clients.
Code: Select all
/interface pppoe-client
add disabled=no interface=ether1 name=pppoe-out1 password=uddin user=\
uddin
add disabled=no interface=ether2 name=pppoe-out2 password=uddin user=\
uddin
add disabled=no interface=ether3 name=pppoe-out3 password=onu user=onu
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=15Mb ranges=10.10.150.2-10.10.150.254
add name=dhcp_pool12 ranges=10.10.10.2-10.10.10.254
/ip dhcp-server
add address-pool=dhcp_pool12 disabled=no interface=ether4 lease-time=\
10w name=dhcp1
/ppp profile
add dns-server=8.8.8.8 local-address=10.10.150.1 name=15MB only-one=yes \
remote-address=15Mb
/queue type
add kind=pcq name=15mb_Upload pcq-classifier=src-address pcq-rate=150M
/queue simple
add burst-time=10s/10s name=15mb queue=15mb_Upload/15mb_Download target=\
10.10.150.0/24
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface pppoe-server server
add default-profile=15MB disabled=no interface=ether5 max-mru=1480 max-mtu=\
1480 mrru=1500 one-session-per-host=yes service-name=PPPoE
/ip address
add address=10.10.10.1/24 comment=DHCP_lan interface=ether4 network=\
10.10.10.0
add address=10.10.150.0/24 comment=lan interface=ether5 network=10.10.150.0
/ip dhcp-server network
add address=10.10.10.0/24 gateway=10.10.10.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add check-gateway=ping distance=1 gateway=pppoe-out3,pppoe-out1,pppoe-out2
/ppp secret
add name=drrt_2a password=1234 profile=15MB service=pppoe