How to direct outgoing traffic through specific interface?

Posted by user1434058 on Server Fault See other posts from Server Fault or by user1434058
Published on 2012-11-18T20:35:09Z Indexed on 2012/11/18 23:06 UTC
Read the original article Hit count: 229

Filed under:

I added eth1 and eth2 to my Ubuntu Server, all 3 use DHCP and are on the same lan

eth0 10.0.0.41 
eth1 10.0.0.42
eth3 10.0.0.43

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router.net      0.0.0.0         UG    100    0        0 eth0
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
10.0.0.0        *               255.255.255.0   U     0      0        0 eth2

curl --interface eth1 www.google.com doesn't work

what else do i need to do for the above to work?

© Server Fault or respective owner

Related posts about networking