LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2008, 06:35 PM   #1
MheAd
Member
 
Registered: Jun 2007
Distribution: Ubuntu 14.04
Posts: 186

Rep: Reputation: 36
Turn off dhcp on Vmware-vmnet8 ?


Hi guys.
I'm running Vmware Workstation on my Fedora 8 and I was wondering whether there is a way of turning off DHCP on the vmnet8 in Vmware while keeping NAT at the same time? I need this cause I want to install a real dhcp server on one of my virtual servers (to do some experiments and stuff) and also keep the connection to the Internet at the same time.

Second question concerns the actual DHCP server running on the vmnet8 that I'm currently experimenting with while waiting a response whether what I asked above is possible to do.

I've noticed a strange thing. If I create a range of addresses, let's say 172.168.80.5 to .8, isn't that supposed to give me 4 addresses for the lease, (.5 to .8 )? What happens is that only the first 3 can be leased to the hosts, while the 4th host, when started, cannot obtain the address through its dhcp-client. As soon as I edit the range to .9 - then another host can get an address (.8) but it's always this same reaction - the dhcp server refuses to give away the last address. What's the deal? Is this some odd limitation in the vmnet implementation of the dhcp or what?

Bellow is my dhcp.conf for vmnet8.

Code:
allow unknown-clients;
default-lease-time 1800;                # 30 minutes
max-lease-time 7200;                    # 2 hours

subnet 172.16.80.0 netmask 255.255.255.0 {
    range 172.16.80.5 172.16.80.8;
    option broadcast-address 172.16.80.255;
    option domain-name-servers 172.16.80.4;
    option domain-name "mydomain-here";
    option routers 172.16.80.2;
}
So, with the configuration above, addresses from .5 to .7 can be assigned to any virtual host that I start, but not the last one - (.8). I would need to make range bigger (.9) to be able to assign .8, but .9 cant be then assigned either...well...you get the picture - always the last IP is "reserved" for something.

I'm running a virtual DNS server, inside of the virtual network, everything's fine there, all hosts configured properly in the zone. The router/gateway is the vmnet8 standard NAT device at the address stated in the config.

Thanks in advance!

Last edited by MheAd; 10-25-2008 at 06:59 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP on VMware does not resolve domain correctly skibud2 Linux - Networking 1 09-09-2008 12:12 PM
VMware Player, Fedora7 and DHCP richard64 Linux - Networking 1 10-04-2007 05:01 AM
No DHCP offers when VMware is running wkuballa Debian 0 06-25-2007 09:34 AM
Redhat 9, VMware and DHCP Server triplem Linux - Networking 26 07-28-2005 10:14 AM
vmware dhcp zuessh Linux - Software 1 06-30-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 AM.

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