Visit Our UNIX and Linux User Community

How to set DHCP by using Virtualbox?

Thread Tools Search this Thread
Operating Systems Linux Red Hat How to set DHCP by using Virtualbox?
# 1  
Old 05-24-2013
Question How to set DHCP by using Virtualbox?

Hi, Guys,

I met a question.
I've installed the Oracle Virtualbox in my laptop, whose OS is Windows XP.
And I've installed two CentOS 6.4 in the virtualbox : test1, test2.

I wanted the test1 to be the DHCP server and assigned IP Address to the test2.
I knew the principle :
step 1: install the DHCP server in the test1;
step 2: config the dhcpd.conf in the test1;
step 3: restart the DHCP service;

I set the test1's network adapter attached to Host-Only Adapter and set the IP Address by manual (
I set the test2's network adapter attached to Host-Only Adapter and set the IP Address by DHCP.

However, the test2 cannot get the correct IP Address which contains the test1's dhcpd.conf.

It took me a whole day and is terrible!
Please help me! Give me some ideas!
# 2  
Old 05-25-2013
Have you set the correct VirtualBox DHCP range in File --> Preferences -> Network -> [Tool] - DHCP Server?
# 3  
Old 05-25-2013
of course.
I set the range from to
# 4  
Old 06-07-2013
There is a default DHCP server running by the Oracle VM.

You have to stop the DHCP service and then try with your test1 Server.

Previous Thread | Next Thread
Test Your Knowledge in Computers #857
Difficulty: Easy
React cannot be used as a base in the development of single-page web or mobile applications.
True or False?

8 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing


I want to change my virtual box disk to immutable. When I try to do that I get the following error. Error changing medium type from Normal to Immutable. Cannot change the type of medium '/root/VirtualBox VMs/fedora13/fedora13.vmdk' because it is attached to 1 virtual machines Please help me... (2 Replies)
Discussion started by: Ankur Goyal
2 Replies

2. UNIX for Advanced & Expert Users

Set up and configure DNS in virtualbox

hi to everyone. our instructor gave us a cd containing rhel6. where on 3rd week now and he is assgning us to configure a dns. Im using rhel 6.3(anaconda). i install bind. and says:nothing to do. when i follow step by step configuration in some website i encounter problems like i have no file... (1 Reply)
Discussion started by: rpmacaspac
1 Replies

3. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

4. IP Networking

Clone on virtualBox

Hello; Please,I did the clone on virtualBox, but the machines have the same IP address: eth2 Link encap: Ethernet HWaddr 8:00:27: f0: 92:19 inet addr: Bcast: Mask: how to change the address please? Thank you so much (6 Replies)
Discussion started by: chercheur857
6 Replies

5. AIX

How to set dhcp client by using commands

Hi, I have used "smit tcpip" to setup dhcp client but it does not work. Don't know why. Now I want to try using commands to do the job. I have studied commands chdev and mktcpip but did not find howto. Please help. Thank you! (1 Reply)
Discussion started by: aixlover
1 Replies

6. Virtualization and Cloud Computing

NetBSD on VirtualBox

Hello, guys! I use Ubuntu 9.04 as desktop operating system and I want to make some tests on NetBSD. I tried to install as a virtual sistem on VirtualBox but it doesn't want to install. You can see the error in the attached file. Do you guys have any clue about what the problem could be? (3 Replies)
Discussion started by: Sergiu-IT
3 Replies

7. Solaris

OpenSolaris on VirtualBox

I've just installed VirtualBox on my PC and installed OpenSolaris as a virtual machine within it. The PC connects to the internet via a router and uses DHCP to get its IP address. How do I configure the OpenSolaris virtual machine to use the same DHCP server so I can connect it to the net. At the... (4 Replies)
Discussion started by: JerryHone
4 Replies

8. UNIX for Dummies Questions & Answers

How do I set up DHCP on Linux

I have linux box setup and connected to a cable modem via a hub which is shared with other win98 pcs. I need to set up the linux box with dhcp. I have two issues: First: For some reason, every time I activate the eth0 interface, it seems to deactivate itself after some time all by itself.... (1 Reply)
Discussion started by: alam
1 Replies

Featured Tech Videos