Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu server edition installed

I have setup 2 nic's

The one on the local network works perfectly but the one connecting to the internet is not working properly, I can't ping and domain name's aren't getting resolved.

My /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet static
    address 192.168.0.X

iface eth1 inet static
    address 41.161.0.XXX
    gateway 41.161.0.XXX

I have tried stopping, starting the nics, my iptables are set to

iptables --flush
iptables -P INPUT ACCEPT

I can not ping the gateway any ideas?


The settings are as provided by the ISP, the settings work perfectly on my mac and on my windows machine, which is both disconnected from that network at the moment so there can't be IP conflicts


Kernel IP routing table
Destination        Gateway        Genmask          Flags        MSS  Window   irtt Iface            41.161.2.XXX          UG             0  0           0 eth1
41.161.2.XXX  U              0  0           0 eth1      U              0  0           0 eth1    U              0  0           0 eth0
share|improve this question

Check the actual configuration using ifconfig eth1.

Make sure the gateway is in the same subnet as the eth1 address. (Please edit your question and unobscure the netmask and the local part (last few X) of the addresses)

Check routing using netstat -nr

Check your configuration with with the persons who provide the gateway router.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.