Multiple network cards, controlling where my traffic goes
Posted
by
thefinn93
on Server Fault
See other posts from Server Fault
or by thefinn93
Published on 2012-07-08T19:24:40Z
Indexed on
2012/07/08
21:17 UTC
Read the original article
Hit count: 195
This is an Ubuntu 12.04 server install. I have multiple network cards, eth0
and eth1
lets call them. eth0
is connected to the internet, and all of my traffic goes through it, until eth1
gets plugged in. Then the machine tries to send everything through eth1
, which for various and sundry reasons does not go out to the Interent. The only traffic it doesn't send through eth1
is traffic on eth0
's subnet. It also will not accept inbound connections on eth0
from outside of eth0
's subnet. I'd like all outbound traffic to go out eth0
, but I'd like incoming connections from to either card from any subnet to work.
© Server Fault or respective owner