title: how to route 2 Nics with 2 public IP on same subnet running with same gateway
body: <p>I'm newbie in networking field. I have trouble with my web server Network configuration (OS is Centos).
  I have 2 NICs (eth0 + eth2 - physically) running 2 public IP which have the same subnet, same gateway.
  When I configure nginx to listen on these 2 NICs, everything works just fine. But when I monitor the traffic, all traffic is on the eth0 only, nothing on eth2.
  My question is: How can I configure so that traffic goes in a NIC, go out on that NIC, too?
  This is my ethernet card config:</p>
  
  <pre><code>DEVICE="eth0"
  ONBOOT=yes
  BOOTPROTO=static
  IPADDR=x.x.x.38
  PREFIX=27
  GATEWAY=x.x.x.x.33
  DNS1=8.8.8.8
  DNS2=8.8.4.4
  NAME="System eth0"
  
  DEVICE="eth2"
  ONBOOT=yes
  BOOTPROTO=static
  IPADDR=x.x.x.39
  PREFIX=27
  GATEWAY=x.x.x.33
  DNS1=8.8.8.8
  DNS2=8.8.4.4
  NAME="System eth2"
  </code></pre>
  
  <p>This is my route -n result</p>
  
  <pre><code>Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  10.14.8.0       0.0.0.0         255.255.255.0   U     0      0        0 eth1
  y.z.0.0         0.0.0.0         255.255.0.0     U     1002   0        0 eth0
  y.z.0.0         0.0.0.0         255.255.0.0     U     1003   0        0 eth1
  y.z.0.0         0.0.0.0         255.255.0.0     U     1004   0        0 eth2
  0.0.0.0         x.x.x.33        0.0.0.0         UG    0      0        0 eth0
  </code></pre>
  
  <p>Hope you can help, thanks in advanced!</p>