LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2010, 05:08 AM   #1
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Rep: Reputation: 15
how to configure dhcp client


Hello Linux gurus

I'm trying to configure in fedora 13 a dhcp client that would request IP address on my finished DHCP test server.

I've already configured dhcp on eth0 on the client machine,

I'm really lost.

here is the configuration on my DHCP test server



default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;
option domain-name "sample.testnet.com";
option broadcast-address 192.168.1.255;
subnet 192.168.1.0 netmask 255.255.255.0{
range 192.168.1.6 192.168.1.10;
}
 
Old 08-13-2010, 05:15 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
And what exactly appears to be the issue to begin with? Is it failing to get the IP? Have you tried the command dhclient (located in /sbin/) to see if this command is able to make dhcp work. Overall it's hard to diagnose a problem that's symptoms have not actually been stated.
 
Old 08-13-2010, 05:21 AM   #3
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by r3sistance View Post
And what exactly appears to be the issue to begin with? Is it failing to get the IP? Have you tried the command dhclient (located in /sbin/) to see if this command is able to make dhcp work. Overall it's hard to diagnose a problem that's symptoms have not actually been stated.
I guess my DHCP server is ok because it runs when issuing service dhcpd start, my problem is the dhcp client is not getting an ip that I've assigned in the range of my DHCP Test Server.
 
Old 08-13-2010, 05:23 AM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
What IP is it taking? This will likely help in diagnosing the problem (if I remember correctly there is usually a default range used in case of failure that shows a failure likely occurred in attempting to DHCP)

Last edited by r3sistance; 08-13-2010 at 05:27 AM.
 
Old 08-13-2010, 05:29 AM   #5
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by r3sistance View Post
What IP is it taking? This will likely help in diagnosing the problem.
instead of the ip that range from 192.168.1.6 - 192.168.1.10 its taking a 192.168.52.101

honestly both DHCP server and Client is running in sun virtualbox, I've tried to assign an ip to the client with 192.168.1.6 and when I try to ping the DHCP server it replys
 
Old 08-13-2010, 05:31 AM   #6
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
What type of networking are you running, bridged, private? etc. If you are running Bridged networking are you sure the virtual machine isn't speaking to a router or similar device and dhcping off of that?
 
Old 08-13-2010, 05:36 AM   #7
struggled_newbie
Member
 
Registered: Sep 2009
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by r3sistance View Post
What type of networking are you running, bridged, private? etc. If you are running Bridged networking are you sure the virtual machine isn't speaking to a router or similar device and dhcping off of that?
on my dhcp server
network 1 bridge adapter
network 2 host only


on my dhcp client
network 1 host only
 
Old 08-13-2010, 09:15 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Given that, I would say it's most likely your issue will be with your DHCP server, not the client... are you sure the DHCP server is running correctly? And not just a "the process appears to be running", after all it could have bound itself to the bridge adapter and not the host network.
 
  


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
Linux DHCP client unsuccessful on a windows DHCP served network tom1080 Linux - Newbie 1 12-16-2009 12:37 PM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 01:54 AM
How to configure a linux DHCP client? linuxharsha Linux - Networking 2 12-23-2003 12:29 PM
How to configure DHCP client at server /etc/hosts ? x2000koh Linux - Networking 1 08-06-2003 04:02 AM
Configure Red Hat 7.2 Workstation as DHCP Client eboggess Linux - Networking 4 01-18-2002 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration