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

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

TOPOLOGY:

- 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.

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

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

LINUX CONFIGURATION:
My ethernet card is named eth0.
A) ICS-DHCP-SERVER
editing /etc/dhcp/dhcp.conf i left all lines as they were having:

Code:
ddns-update-style none;
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-lite 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
option domain.name-servers 8.8.8.8, 8.8.4.4;

subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.150 192.168.2.170;}

authorative;

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

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.2.5
netmask 255.255.255.0
network 192.168.2.0
broadcast 255.255.255.255
gateway 192.168.2.1

TESTS:
- Having static IP in my Windows and in Linux insidw VM i have ping. - Ping OK against 8.8.8.8 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:

/etc/default/isc-dhcp-server

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

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

Thank you guys!
Login or Register to Ask a Question

Previous Thread | Next Thread

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 : 172.16.28.90 Date :Sunday July 2nd 2011 Time : 14.07.2011 OS -Solaris 10 Vital QIP IP management software using to... (0 Replies)
Discussion started by: sandeep.tk
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
Login or Register to Ask a Question