Route all traffic for specific ip over specific network interface in Linux
ip route add 192.168.72.20/32 dev eth3
Do not forgetĀ via <gateway_ip>
if the target IP is not directly reachable.
ip route add 44.5.134.90/32 via 192.168.1.1 dev eth3
ip route add 192.168.72.20/32 dev eth3
Do not forgetĀ via <gateway_ip>
if the target IP is not directly reachable.
ip route add 44.5.134.90/32 via 192.168.1.1 dev eth3
openĀ /etc/network/interfaces with editor
auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.56.101 netmask 255.255.255.0 gateway 192.168.56.1
and then
service networking restart