Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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 wiki.debian.org/NetworkManager#Enabling_Interface_Management. –  BillThor Nov 11 '11 at 21:40
add comment

Your Answer

 
discard

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.