Server Fault is a question and answer site for system and network administrators. 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'm installing CentOS server on virtual box to test it out. I have little sysadmin and networking knowledge, so please elaborate as much as you can.

I'm following this tutorial, and I'm stuck on the following 2 steps (IP and DNS stuff). See the images, sorry couldn't insert images, the system wouldn't let me.

The tutorial uses IP for the server. I checked my router and checked the next available IP address which was I then entered as the submask without knowing why.

My next (and main) problem now is the Hostname, Gateway, Primary DNS, and Secondary DNSin image 11:

How do I decide what to put there? What if I put random IPs (as they appear to have done in this tutorial) and it pings that real IP or something similar.

Anyone can help me understand this better?

share|improve this question
up vote 1 down vote accepted

What to put there depends primarily on how you configure networking on VirtualBox. If you are using NAT (default), you should configure Centos to use DHCP. With other configurations (Bridged, Internal network, Host Only), you should set an IP address depending on the target network. Random addresses might be good for tutorials but not for real life, unless you don't mind connecting your Centos to something else.

share|improve this answer
So you're saying I should not use manual as the tutorial suggests, ad keep it on DHCP instead? – don Jul 6 '10 at 0:39
@don: HTF makes many, many, many assumptions, and you need to be very careful when following any of its articles. – Ignacio Vazquez-Abrams Jul 6 '10 at 1:38

If your host running VM is configured using DHCP, simplest solution would be let Centos use DHCP as well and use Bridged setting.

share|improve this answer

Your Answer


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