I have configured the simultaneous use of 2 public WANs, it works correctly, but cannot ping domain from each source, my configuration and problem output as below:
# cat /etc/network/interfaces.d/eth0
# Primary WAN1 - VLAN 194
allow-hotplug eth0.194
iface eth0.194 inet static
address 119.17.246.60
netmask 255.255.255.248
vlan_raw_device eth0
post-up ip route add default via 119.17.246.59 dev eth0.194 table wan1
post-up ip rule add from 119.17.246.60/32 table wan1
post-up ip rule add to 119.17.246.60/32 table wan1
# Secondary WAN2 - VLAN 195
allow-hotplug eth0.195
iface eth0.195 inet static
address 119.17.246.68
netmask 255.255.255.248
vlan_raw_device eth0
post-up ip route add default via 119.17.246.67 dev eth0.195 table wan2
post-up ip rule add from 119.17.246.68/32 table wan2
post-up ip rule add to 119.17.246.68/32 table wan2
# cat /etc/iproute2/rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
1 wan1
2 wan2
# ping 8.8.8.8 -I 119.17.246.60
PING 8.8.8.8 (8.8.8.8) from 119.17.246.60 : 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=27.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=27.3 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 27.274/27.291/27.309/0.017 ms
# ping 8.8.8.8 -I 119.17.246.68
PING 8.8.8.8 (8.8.8.8) from 119.17.246.68 : 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=58 time=27.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=58 time=27.5 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 27.465/27.475/27.486/0.010 ms
# ping google.com -I 119.17.246.60
ping: google.com: Temporary failure in name resolution
# ping google.com -I 119.17.246.68
ping: google.com: Temporary failure in name resolution
# cat /etc/resolv.conf
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4
# ip r
10.11.0.0/24 via 10.12.7.254 dev eth0.99
10.12.7.0/24 dev eth0.99 proto kernel scope link src 10.12.7.250
10.20.27.0/24 via 10.12.7.254 dev eth0.99
119.17.246.56/29 dev eth0.194 proto kernel scope link src 119.17.246.60
119.17.246.64/29 dev eth0.195 proto kernel scope link src 119.17.246.68