Ubuntu – Two NICs Ubuntu Server 12.04


I have two NICs within my Ubuntu server. One being the internet, the other being an internal network.
I have the following configuration whereas eth0 is the internet, eth1 is the internal network

auto lo eth0 eth1
iface lo inet loopback

iface eth0 inet dhcp

iface eth1 inet static

Eth0 works correctly and I cannot connect via the internal IP. Both eth's are up.

Best Answer

  • I assume that you want to be able to access the Internet from machines on and you want to serve as a gateway for those machines which I also assume are connected to a switch which has an uplink to your gateway's eth1 interface.

    I don't see you mention a couple of things: 1. NAT functionality being configured 2. IP forwarding enabled 3. Other appropriate firewall rules added 4. DHCP server running on eth1 assigning IP configuration to your internal machines.

    If you confirm my assumptions and let me know what the state of those 4 components is, I'll update my answer and help you set it up.

    PS. Let's say that you have a machine with the IP address connected directly to your server's eth1. Are you able to ping from it?

  • Related Question