LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-20-2015, 09:49 AM   #1
Portuguevos
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
Ubuntu servers 14 in VMPlayer with ICS-DHCP-Server - Windows host no IP


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.
 
Old 10-27-2015, 07:15 AM   #2
Portuguevos
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 7.04 guest on VMPLAYER under WINXP-SP2 Host KrishnaMurthy Linux - Networking 0 07-12-2007 01:22 AM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
Suse 10.1 ICS DHCP server issues AMagic SUSE / openSUSE 0 06-10-2006 11:09 AM
Windows XP as ICS host & Linux as client connection problem ! hemanfan Linux - Networking 3 06-08-2005 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration