3 NIC & 2 public IP



Hello,
OS is Debian. I've got 2 pblic IP from 2 ISP & 1 LAN(eth0 - LAN, eth2 - ISP1, eth2 - ISP2).
I want to configure this server to route LAN thru eth1.
eth2 should be use to send/receive e-mails and www/webmail.
How should I configoure this server to do what I want?
Now works fine until eth2 is down. When I change state to up server sends ping outside, but dont respond on pings send from outside.
NIC config:
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
brodcast 192.168.1.255
iface eth1 inet static
address 212.160.x.157
netmask 255.255.255.224
network 212.160.x.128
broadcast 212.160.x.191
gateway 212.160.x.129
iface eth2 inet static
address 83.15.y.43
netmask 255.255.255.248
network 83.15.y.40
broadcast 83.15.y.47

Sorry for my English!
.



Relevant Pages

  • Re: Routing with multiple IPs
    ... When You run a server that is then being compromised, ... get its traffic, rather than eth1. ... Or does the router forward? ... sent packets to $ETH2_IP, those should eventually arrive at eth2. ...
    (comp.os.linux.networking)
  • Difficulty with bonded ethernet devices after upgrade to squeeze
    ... Primary Slave: None ... Slave Interface: eth1 ... In troubleshooting I concluded that the issue could be MAC related. ... Started testing with a server in the same subnet. ...
    (Debian-User)
  • Re: bond interface arp, vlan and trunk / network question
    ... Currently Active Slave: eth2 ... Still I receive trafic on eth1, ... 07:54:48.430982 arp who-has 192.168.20.254 tell 192.168.20.110 ... ip link set eth1 up ...
    (Linux-Kernel)
  • Re: NAT-setup: modification requared
    ... Or your third option is to setup a bridge between eth1 and eth2. ... will be on the same network and will be able to communicate together. ...
    (Fedora)
  • Re: NAT-setup: modification requared
    ... eth1 and connect both the clients to that switch. ... please do _not_ configure eth2. ... I have F11 machine which shares WEB to small home wired network. ... inet addr:192.168.0.203 Bcast:192.168.1.255 ...
    (Fedora)