Visit Our UNIX and Linux User Community

Ubuntu Server in VM - DHCP Server not working

Thread Tools Search this Thread
Operating Systems Linux Ubuntu Ubuntu Server in VM - DHCP Server not working
# 1  
Old 10-20-2015
Ubuntu Server in VM - DHCP Server not working

Doing my first steps in Linux and while trying to configure a DHCP server in Linux i encountered some problems:


- Laptop with Windows 8.1
- VM Player 12 with Linux installed (Ubuntu Server 14.04)
- ICS-DHCP-SERVER installed and running
- Another LAPTOP conected to a switch to verify IP discover.

The problem i have is that neither my windows or whatever device i connect can receive IP from Linux DHCP server.

I selected bridge mode in the custom configuration: Vmnet0 which is bridge mode.

- IN DHCP cliente activated i do not receive anything. For test purpose i configured a static IP: and the gateway of my router

My ethernet card is named eth0.
editing /etc/dhcp/dhcp.conf i left all lines as they were having:

ddns-update-style none;
option domain-name "";
option domain-name-servers,;

default-lease-lite 600;
max-lease-time 7200;
option subnet-mask;
option broadcast-address;
option routers;

subnet netmask {


Since this VM will be my DHCP Server i configured a static IP in my NIC. So editing /etc/network/interfaces i configured:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

- Having static IP in my Windows and in Linux insidw VM i have ping. - Ping OK against from both machines.
- My windows do not receive IP from VM DHCP Server.
- If i change the configuration from my ETH0 interface and configure it with DHCP instead of static IP, the ICS-DHCP-SERVER does serve an IP correctly.
- Windows with firewall deactivated. No antivirus.
- Ubuntu firewall ufw disabled.
- In summary DHCP Server is not working outside of VM.
I already tried (since nothing works) configuring the network adpater in bridge mode, NAT, and nothing works.

Can somebody help with some idea i am not considering?

THank you so much.
# 2  
Old 10-27-2015
Hi all.

Found out where the mistake was:
Forgot to edit the file:


And in the line INTERFACES="" i had to input my network card interface:

In the VM configuration i left my Network Adapter selected in:
--> Bridged: Connected directly to the physical network,

Thank you guys!

Previous Thread | Next Thread
Test Your Knowledge in Computers #315
Difficulty: Easy
To bypass US Munitions Export Laws, the creator of the PGP published all the source code in a binary format.
True or False?

10 More Discussions You Might Find Interesting

1. Ubuntu

Set up a Ubuntu server as a FTP server

Hello, How can I set up a ubuntu server as a FTP server? Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies

2. Solaris

Solaris DHCP Server

I need to find out the MAC address of an IP leased from DHCP server . For Eg:-i need to know the MAC of the below mentioned IP at the below mentioned time . IP : Date :Sunday July 2nd 2011 Time : 14.07.2011 OS -Solaris 10 Vital QIP IP management software using to... (0 Replies)
Discussion started by:
0 Replies

3. IP Networking

DHCP server discover

I need a script to scan the surrounding DHCP servers. I want to know how many dhcp servers are there on my connected etnernet. (2 Replies)
Discussion started by: getrue
2 Replies

4. Red Hat

DHCP Server address

Where can you find your DHCP Server address? I checked all of the files that this mentioned with no luck. Quick HOWTO : Ch08 : Configuring the DHCP Server - Linux Home Networking (6 Replies)
Discussion started by: cokedude
6 Replies

5. Solaris

Is a Solaris dhcp server better than windows?

hi, we are moving to dhcp from a static ip and i'm thinking which should best be the DHCP server? i have a windows 2003 server and a solaris 10 running on sun's m5000 server. Note to pinoy43v3r: Your avatar was NSFW. We changed it. (5 Replies)
Discussion started by: pinoy43v3r
5 Replies

6. Solaris

Exporting DHCP to backup server

Hi just looking for some advise on the best way to set-up a passive dhcp server in solaris. Was thinking of exporting the dhcp data/macros etc to a separate server to use as a backup that will be activated when the main dhcp server goes down Any hints/tips etc greatly appreciated (1 Reply)
Discussion started by: eeisken
1 Replies

7. Solaris

DHCP Server in Non-Global Zone

I am having trouble starting the DCHP server in a non-global zone that has exclusive access to an interface. Every time I attempt to start it goes in to maintenance mode and the error in the log shows this: I have seen on a thread on Sun's forums that addressed this but it was dealing with Solaris... (9 Replies)
Discussion started by: Lespaul20
9 Replies

8. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies

9. IP Networking

DHCP server question

hi all... i have a question about of the dhcp server.... how i can configurate 3 vlans on the server....? thank you (5 Replies)
Discussion started by: chanfle
5 Replies

10. UNIX for Dummies Questions & Answers

DHCP Server Suggestions

I need to setup a DHCP server in our office for Macs, Windows (98/ME/NT/2000) Linux and Unix servers and workstations. We want it on a Unix server, but I'm unsure what is out there. The Unix world is new to me, so any suggestions would be appreciated. Thanks! Corey (2 Replies)
Discussion started by: coreyhead
2 Replies

Featured Tech Videos