Bonding problem

Hi
I’m having some problems with bonding i know that pppoe client can not bonding so i use vlan with two router and redirect

traffic pppoe1 to vlan 1
and pppoe 2 to vlan 2
but the problem no internet to r2 via vlans when i redirect pppoe traffic to bonding1 in firewall. r2 have internet access

from one pppoe not two pppoe. so bonding not working. I try with vpls and eoip and nothing


““R1 RB 750up””


Router OS 6.12

/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether2 ] name=ether2-master-local
set [ find default-name=ether3 ] name=ether3-slave-local
set [ find default-name=ether4 ] name=ether4-slave-local
set [ find default-name=ether5 ] name=ether5-slave-local
/interface vlan
add interface=ether2-master-local l2mtu=1594 name=vlan1 use-service-tag=yes \
    vlan-id=1
add interface=ether2-master-local l2mtu=1594 name=vlan2 use-service-tag=yes \
    vlan-id=2

/interface bonding
add lacp-rate=1sec mii-interval=1ms mode=802.3ad name=bonding1 slaves=\
    vlan1,vlan2 transmit-hash-policy=layer-2-and-3

/ip pool
add name=dhcp_pool3 ranges=\
    192.168.88.1-192.168.88.9,192.168.88.11-192.168.88.254

/ip dhcp-server
add address-pool=dhcp_pool3 disabled=no interface=bonding1 name=dhcp1

/interface pppoe-client
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 \
    dial-on-demand=no disabled=no interface=ether1-gateway keepalive-timeout=\
    60 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-out1 password=\
    saadrk profile=default service-name="" use-peer-dns=no user=\
    saadrk@thkrayt
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 \
    dial-on-demand=no disabled=no interface=ether1-gateway keepalive-timeout=\
    60 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-out2 password=xxx \
    profile=default service-name="" use-peer-dns=no user=xxx@thkrayt

/ip address
add address=192.168.88.10/24 interface=bonding1 network=192.168.88.0

/ip dhcp-client
add add-default-route=no comment="default configuration" dhcp-options=\
    hostname,clientid disabled=no interface=ether1-gateway

/ip dhcp-server config
set store-leases-disk=immediately

/ip dhcp-server network
add address=192.168.88.0/24 gateway=192.168.88.10

/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

/ip dns static
add address=192.168.88.1 name=router

/ip firewall mangle
add action=mark-routing chain=prerouting in-interface=bonding1 \
    new-routing-mark="TO PPPOE 1"
add action=mark-routing chain=prerouting in-interface=vlan2 new-routing-mark=\
    "TO PPPOE 2"
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=pppoe-out2

/ip route
add check-gateway=ping distance=1 gateway=pppoe-out1 routing-mark=\
    "TO PPPOE 1"
add check-gateway=ping distance=1 gateway=pppoe-out2 routing-mark=\
    "TO PPPOE 2"

"“R2 RB1100"”

RouterOS 6.12

/interface vlan
add interface=ether1 l2mtu=1594 name=vlan1 use-service-tag=yes vlan-id=1
add interface=ether1 l2mtu=1594 name=vlan2 use-service-tag=yes vlan-id=2

/interface bonding
add lacp-rate=1sec mii-interval=1ms mode=802.3ad name=bonding1 slaves=\
    vlan1,vlan2 transmit-hash-policy=layer-2-and-3

/ip pool

add name=dhcp_pool3 ranges=10.10.10.1-10.10.10.9,10.10.10.11-10.10.10.254

/ip dhcp-server
add address-pool=dhcp_pool3 disabled=no interface=ether3 name=dhcp1

/ip address
add address=192.168.88.20/24 interface=bonding1 network=192.168.88.0
add address=10.10.10.10/24 interface=ether3 network=10.10.10.0

/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=bonding1

/ip dhcp-server network
add address=10.10.10.0/24 gateway=10.10.10.10

/ip dns
set allow-remote-requests=yes

/ip firewall nat
add action=masquerade chain=srcnat out-interface=bonding1

Hello,

I’m having some problems with bonding i know that pppoe client can not bonding so
i use vlan with two router and redirect

What you try out exactly please would you come closer to tell us
what you really want to do and set up?

Do you mean perhaps you want to bond the WAN ports of both RouterBoards
over or better through the internet? Or did you try out to bond this ports
on both routers local?

There are two methods to do so

  1. You set up MPPLS and your provider is also offering this service to you
    on both ends of the sites.
  2. You try out load balancing methods such as;
  • policy based routing
  • service based routing
  • session based routing
  • GBP, VRRP & HRSP are also points that can match you needs.

I really suggest you to set up the following:

  • Between the both router and through the internet:
    – Set up dual wan port load balancing by using policy based routing
    – Set up a VPN connection to the other router
    – there fore you dont need vlans only on both local networks you are
    able to set up vlans and during or through the VPN connection you are
    able to reach each point on the other side, matching your rules

  • Between the both routers and locally (LAN):
    – Activate IEEE 802.3ad or since 2008 IEEE 802.1AX
    – set up LAG (LACP) and activate RSTP
    – Stitch or plug two cables inside of each router
    – then transport over the LAG the VLANs by adding the LAG to an VLAN