Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 just installed Debian Squeeze as guest on an Ubuntu Server KVM host with bridged networking. I have other Ubuntu Server guests running on the same host, all the VM use static IPs. When I use DHCP, the Squeeze VM has networking working properly, but when I give it a static IP, I can no longer ping Google, or my public IP. However, I can still ping the other VM with static IPs. What could be causing this problem?

share|improve this question
up vote 0 down vote accepted

The following are possible solutions (this data is normally provided by DHCP).

  • Ensure your DNS server(s) are specified in /etc/resolv.conf.
  • Ensure your default route is defined and specifies your router. netstat -r should list your routes.

It is possible to specify fixed IP addresses using DHCP. This can be done by ID, MAC address, or name. Particulars on how do do so depends on your DHCP server. KVM is likely using dnsmasq which may read /etc/ethers when it start up.

share|improve this answer
Ok. It seems like specifying the gateway for eth0 in my /etc/network/interfaces file did not set a default route for that interface. Seems strange. under ubuntu server, it works perfectly well. Is this a normal behaviour for Debian Squeeze ? – arnaud briche Nov 11 '11 at 6:24
I moved to Ubuntu quite a while ago. They have moved to network manager. Directions for getting old behaviour back are at – BillThor Nov 11 '11 at 21:40

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.