At work we have two WAN access. I wish to install an Ubuntu server/router that shares these two WAN to our internal LAN.
I have prepared a box with three interfaces (eth0, eth1 and eth3):
eth0will be used for the first WAN IP address, for example172.16.1.19/29eth1will be used for the second WAN IP address, for example172.16.4.107/29eth3will be the internal LAN, let's say192.168.1.1/24
The current config is simple (/etc/network/interface)
....
iface eth0 inet static
address 172.16.4.107
netmask 255.255.255.248
gateway 172.16.4.106
dns-nameservers 8.8.8.8
iface eth1 inet static
address 172.16.1.19
netmask 255.255.255.248
gateway 172.16.1.18
dns-nameservers 8.8.8.8
.....
Will that kind of configuration share the two WAN, or will it randomly use one of them?
Is there a way to merge these two WAN to be considered as only one with a better bandwidth? If so, then how can we configure that?