Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

RouterOS bonding: Difference between revisions

case w.x.y.z username: admin password: <whatever you set it too>
 
==Setting up PPPoE.==
 
*Select Interfaces.
*Password : ***** (your adsl login password)
*profile : Default
*Dial On DemanaDemand : unticked
*Add fefaultdefault Route : unticked
*Use Peer DNS : ticked
*pap : ticked chap : ticked
*mschap1 : untick mschap2 : unticked
 
Click apply and you should see in the bottom right corner of that interface window saying dialing/authenticated/connected.
For multiple lines, I use the 'copy' feature to duplicate the PPPoE interfaces changing the relevant details accordingly.
dialing/authenticated/connected.
For multiple lines, I use the 'copy' feature to duplicate the PPPoE interfaces changing the
relivant details accordingly.
 
You now need to set up the 'mangle' section of 'IP firewall'. This is the part that marks the data packets ready for the desired outbound route.
data packets ready for the desired outbound route.
 
Create a new mangle rule (click the red '+')
*Select the 'Extra' Tab
*Nth ->
*Every : 5 (count every 5 packets - becasuebecause I'm splitting the data across 5 lines)
*Packet : 1 (1st packet out of 5)
*Select 'Action' tab
Apply
 
Now I use the copy function again only this time I change 'Nth Packet' to '2' and 'New packet mark : two'.
mark : two'.
 
Keep repeating increasing the packet and mark till you get to (as in my setup of 5) 5/five.
 
Now all packets coming in from ether9 are marked like this 'one,two,three,four,five,one,two,three..." and so on. We now need to mark the corresponding packets with the desired outbound route. e.g all packets marked 'one' go via 'A&A1', 'two' - A&A2 etc.
'one,two,three,four,five,one,two,three..." and so on. We now need to mark the corresponding
packets with the desired outbound route. e.g all packets marked 'one' go via 'A&A1', 'two' -
A&A2 etc.
 
*IP Firewall - Mangle
 
Repeat for all packet marks (two, three, four, five)
At this point you maybe thinking.. "why not just do this section instead of marking the packets first before marking them again for routing?" Thats because I have more than 1 subnet that gets balanced in my setup. For every other subnet you only need to repeat the packet marking rules with the one, two, three etc. There's no need to repeat the routing marker rules.
There may be better ways to do this but in my setup, it works. I configure 1 subnet and the wlan to use the packet making, the 2nd subnet (home lan) is marked to use the 'Orange' adsl route.
packets first before marking them again for routing?" Thats because I have more than 1 subnet that
gets balanced in my setup. For every other subnet you only need to repeat the packet marking
rules with the one, two, three etc. There's no need to repeat the routing marker rules.
There may be better ways to do this but in my setup, it works. I configure 1 subnet and the
wlan to use the packet making, the 2nd subnet (home lan) is marked to use the 'Orange' adsl
route.
 
Now the last bit to get the marked route packets out to the right adsl link.
 
You may have noticed in the PPPoE interface setups I did not tick ""add default route", thats because I don't want the PPPoE to set up any default routes automatically otherwise everytime an adsl link drops and regains connection the default route will change.
because I don't want the PPPoE to set up any default routes automatically otherwise everytime
an adsl link drops and regains connection the defualt route will change.
 
Ip Route
Now apply, copy and repeat for A&A2, A&A3 with routing mark two, three and so on.
 
That now gets the data out but doesn't cover a default route should lines start to drop. Rather than setting up 1 default route, set up all the adsl links with increasing distance. e.g all the marked routing routes have a distance of 1 (default)
Rather than setting up 1 default route, set up all the adsl links with increasing distance.
e.g all the marked routing routes have a distance of 1 (default)
 
create new routes like so..
apply, copy repeat with A&A2, distance 3. A&A3, distance 4.
 
This doesn't balance the data should a line drop, all that happens is the data that should be going over e.g. A&A1 will now go over A&A2 which will already be carrying A&A2 marked packets. Should A&A2 also drop then it means A&A3 will carry A&A1 and A&A2 etc. Again, it works for me
going over e.g. A&A1 will now go over A&A2 which will already be carrying A&A2 marked packets.
Should A&A2 also drop then it means A&A3 will carry A&A1 and A&A2 etc. Again, it works for me
but there are probably more efficient ways of doing it.
 
That hopefully covers the basics. I've not included the NAT portion on the home lan/Orange adsl nor backup of the server lan via orange as this is integrated via a tunneled firebrick.
adsl nor backup of the server lan via orange as this is integrated via a tunneled firebrick.
 
''bazzer''
 
 
[[Category:Configuring]][[Category:Bonding]][[Category:Router]]
[[Category:Bonding]]
[[Category:Router]]
editor
698

edits