LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure dhcp client (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-dhcp-client-825965/)

struggled_newbie 08-13-2010 04:08 AM

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;
}

r3sistance 08-13-2010 04:15 AM

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.

struggled_newbie 08-13-2010 04:21 AM

Quote:

Originally Posted by r3sistance (Post 4064982)
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.

r3sistance 08-13-2010 04:23 AM

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)

struggled_newbie 08-13-2010 04:29 AM

Quote:

Originally Posted by r3sistance (Post 4064989)
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

r3sistance 08-13-2010 04:31 AM

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?

struggled_newbie 08-13-2010 04:36 AM

Quote:

Originally Posted by r3sistance (Post 4065002)
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

r3sistance 08-13-2010 08:15 AM

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.


All times are GMT -5. The time now is 06:40 AM.