Multi-WAN link balancing

Multi-WAN (MWAN) provides outbound traffic balancing and failover across multiple WAN links. It comes as a default feature for HSG, CMG and HSA, without special licensing requirement. 

Added onto mbox powerful performance and multiple GE ports, MWAN offers a simple and cost-effective choice for enterprises to efficiently aggregate the total bandwidth available from multiple upstream ISP links with highest resiliency. If you have multiple internet connections, and want to fully utilize the total available bandwidth with failover, or even control which traffic goes through which WAN link, mbox CMG is the ideal choice for this type of requirement.

You can do load-balancing based on weights between links (weights are relative to each WAN link capacity), or just do failover with multiple levels of primary and backup interfaces. For example, Different sources can have different primary or backup WANs, eg. group 1 use WAN1 as primary and WAN2 as backup; group2 use WAN1 as backup and WAN2 as primary etc etc. 

In summary, MWAN does below 

Special NOTES:

In this configuration example, we are simulating 3 ISP links (ISP1 - 10Mbps, ISP2 - 20Mbps, ISP3 - 30Mbps).

CONFIGURATION STEPS


CONFIGURATION EXAMPLE

In this example, we are configuring 3 x ISP links, connected to eth0, eth1, eth2 respectively.

Note: the weight for eth2 is not relevant to eth0 & eth1 (only effective if there's another interface in the same mwan-group and having the same metric value of 2)

-------------------------------------------------------------------

!hostname CMG-MWAN!interface eth0 description "to ISP1 Internet" enable ip address 172.16.1.2/24 !configure mwan-group and assign interface to the group mwan-group 0  track 172.16.1.1  metric 1  weight 1!interface eth1 description "to ISP2 Internet" enable ip address 172.16.2.2/24 mwan-group 0  track 172.16.2.1  metric 1  weight 2!interface eth2 description "to ISP3 Internet" ip address 172.16.3.2/24 mwan-group 0  track 172.16.3.1  metric 2  weight 3!interface eth3 description "to LAN - HSG" enable ip address 172.16.99.1/24!!configure default-gateway for each WAN interfaceip route 0.0.0.0/0 nexthop 172.16.1.1ip route 0.0.0.0/0 nexthop 172.16.2.1ip route 0.0.0.0/0 nexthop 172.16.3.1!ip dhcp-server 172.16.99.0 255.255.255.0 description "DHCP for LAN users" dns 8.8.8.8 8.8.4.4 router 172.16.99.1 domain ransnet.com range 172.16.99.5 172.16.99.254 static epson-printer 64:EB:8C:F9:30:C4 172.16.99.2 start!
firewall-input 10 permit all tcp dport 22!!configure firewall rules to permit outbound access through each WAN interfacefirewall-access 10 permit outbound eth0firewall-access 11 permit outbound eth1firewall-access 12 permit outbound eth2!!hide all internal source addresses to WAN IP addressfirewall-snat 10 overload outbound eth0firewall-snat 11 overload outbound eth1firewall-snat 12 overload outbound eth2!mwan-rule 10 tcp dport 443 group 0 persistent remark "https traffic"mwan-rule 14 dst 0.0.0.0/0 group 0 remark "default rule"!mwan start!

Config below is example snip when both WAN interfaces are getting dynamic/dhcp addresses from ISP. The mbox will auto learn default gateway via DHCP from each ISP, so there's no need to add any default routes. Example below:

!!hostname MWAN!interface eth0 description "to ISP1/PE01" enable ip address dhcp mwan-group 0  track 172.16.1.1 timer 3 3  metric 1  weight 10!interface eth1 description "to ISP2/PE02" enable ip address dhcp mwan-group 0  track 172.16.2.1 timer 3 3  metric 1  weight 20!interface eth2 description "to LAN/HSG" enable ip address 172.16.3.1/24!mwan-rule 11 tcp dport 443 group 0 persistent remark "https traffic"mwan-rule 14 dst 0.0.0.0/0 group 0 remark "default rule"mwan start!firewall-access 10 permit outbound eth0firewall-access 11 permit outbound eth1!firewall-snat 10 overload outbound eth0firewall-snat 11 overload outbound eth1

However if one of the link is static (need to add default route), another link is DHCP (auto learn gateway from upstream ISP), you will need to manually add default route for both link (despite you may already auto learn default route from upstream ISP). For example, you may use a static fiber connection and a LTE connection, then you need to add default route as below:


ip route 0.0.0.0/0 nexthop 138.75.64.1  (static route for fiber connection)ip route 0.0.0.0/0 nexthop 3g-lte0      (manual add route again for LTE connection)

Attached a similar senario when the other DHCP using dhcp is a PPPoE connection. Please download attached config example, for configuring MWAN with PPPoE interfaces.