LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2006, 10:01 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Question DHCP can't get IP automatically


Dear Friend ,

I have a DHCP server where 13 real IP are used .I have configured properly and it works fine ? I have 10 clients agains this DHCP server .

But after 3/4 month i get a problem . My Clients pc cannot get IP from DHCP server several times . Then if I set IP statically then they get internet . But I cannot understand why sometimes my client pc can't get IP from DHCP server ?

Waiting for ur help ..........
 
Old 08-01-2006, 11:18 PM   #2
cs.cracker
LQ Newbie
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
I'm not sure I understand you correctly, but if you mean that your DHCP server has 13 addresses it can lease, this may not be enough if your lease time is long. In some cases, the DHCP server will lease an IP to a computer, the computer will shut down or crash unexpectedly, and then the DHCP server will give it another without releasing the first one. While the DHCP server is supposed to be smart enough to release the address automatically when a computer requests another, misconfigured servers can keep the address reserved, thus running you out of IPs to assign.

If you meant that there are 13 statically assigned IPs on the same network, make sure the DHCP server is not allowed to lease those same IPs, as this would result in an IP conflict.

It is also possible that if you are on a large network, but in your own subnet, that some clients outside your subnet are mistakenly recieving addresses from your DHCP server. This would only apply on larger networks like those in schools or corporations, and would require configuration on the routers between the subnets.


As a real solution, I'd recommend either revising the lease policy on the DHCP server or adding more IPs available to lease.

Last edited by cs.cracker; 08-01-2006 at 11:20 PM.
 
Old 08-02-2006, 02:01 AM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
Question Client pc can't get IP from DHCP server

Dear cs.craker ,

Thx for ur reply . My Ip block for DHCP server is "202.59.125.20/28".Domain (Let , example.com) My "/etc/dhcpd.conf" file is the following :

ddns-update-style interim;
ignore client-updates;

subnet 202.59.125.0 netmask 255.255.255.0 {

# --- default gateway
option routers 202.59.125.20;
option subnet-mask 255.255.255.240;

option nis-domain "domain.org";
option domain-name "example.com";
option domain-name-servers 202.59.136.2;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 202.59.125.21 202.59.125.34;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}

My DHCP server has 3 Lan card and has 3 different Network . My IP Block for DHCP is 202.59.125.20/28. In this Configuration My DHCP server has 10/11 Clients . But now the problem is My clients are not get IP dynamically from My
DHCP server . So that they use their IP Statically . In this situation what is the solution of my problem . Is the problem occured for "default-lease-time" or others ? Plz help me again ...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting with DHCP automatically. HiIamBill Linux - Networking 2 07-22-2006 04:58 PM
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
dhcp won't start automatically on boot blk96gt Slackware 5 01-24-2005 01:42 PM
Automatically renewing DHCP addresses? irishbear Linux - Networking 6 01-21-2005 11:53 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:46 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