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 two virtual machines setup in VirtualBox. One is acting as a DNS server, and has two network adapters attached to it:

  • Adapter 1: Internal Network (intnet)
  • Adapter 2: Bridged adapter (wlan0)

The DNS server is setup using Debian and DNSMasq. DNSMasq is configured to act as DHCP server and cache DNS queries. From the DNS server itself, I can ping without a problem.

My second virtual machine is setup using CentOS 6.5, and has the same two adapters, however this time the bridged adapter is currently disabled. The CentOS virtual machine detects the DHCP server fine, and is given an address ( From CentOS, I can ping the DNS server at, and vice-versa, the DNS server can ping the CentOS machine.

However, when I try to ping from the CentOS guest, I receive:

--- ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2523ms

I can however, dig the fine from CentOS:

[developer@centos ~]$ dig

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31867
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;          IN  A

;; ANSWER SECTION:       260 IN  A       260 IN  A       260 IN  A

;; Query time: 3 msec
;; WHEN: Sun Feb  9 14:18:51 2014
;; MSG SIZE  rcvd: 78

My /etc/resolv.conf on CentOS is set to use (the DNS server) as a nameserver.

The DNS server's /etc/network/interfaces file looks like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth1 eth0
iface lo inet loopback

# The primary network interface (VM Network)
allow-hotplug eth0
iface eth0 inet static

# Secondary Interface (Bridged adapter)
iface eth1 inet dhcp

If anybody could offer any advice as to why the CentOS virtual machine fails to connect to, I would be extremely grateful!

Thanks in advance!

share|improve this question

Seems pretty obvious from your setup... the CentOS box has it's bridged-adapter disabled. I would presume that's where the default route would be pointing for all things Internet, and resolves to 173.194.41.X addresses, so if there's no route to a subnet containing those addresses specifically through your internal adapter, then the connection goes through the default route. If that's out the disabled adapter, well it's not going to work of course.

share|improve this answer
Hey, thanks for the tip! I removed the bridged adapter and removed its network from the centOS box, but I still can't ping, even though the DNS server can. Do you know if there's something I have to setup in DNSMasq specifically to reach external addresses? – BnMcG Feb 11 '14 at 6:56

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.