LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-10-2007, 06:33 AM   #1
reachjohney
LQ Newbie
 
Registered: Sep 2007
Location: kottayam
Distribution: Fedora core 6
Posts: 6

Rep: Reputation: 0
Some Pc's Getting Out Of Range Ip In Dhcp


I have got server configured with dhcp, dns, squid proxy, nat ideally used as the internet server for our 62 pc computer lab. I have recently upgraded to a 1 GB machine with fedora core 6 and configured it fresh. However in the new scenerio my dhcp windows clients, not all but some, are getting ip that's not defined with in the dhcp range assigned with in dhcp.conf [range 172.16.2.0 172.16.2.255; entry]. And these pc's not in the range of ip's are not getting internet access .Wireless clients are also allowed access to the network. can any one find out whether the problems is with dns, or any other setting in dhcp or due to wireless lan configuration problems. These clients are not getting access to internet, but on giving fixed ip , they can get full access to internet.
 
Old 10-11-2007, 02:32 PM   #2
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
My 1st .02 is that you need to provide a bit more info. You said they are windows clients, so what IP's are they getting as you are setup to use the entire 172.16.2 subnet. Are these machines getting that old 169.254.x.x address?

Not sure what wireless has to do with anything above, but can some/any of the wireless clients get internet access?

As for DNS, well if you think that it "may" be a factor, simply ping some outside address such as google (72.14.207.99) and see if you get a reply. But again, if these machines are getting an IP outside the subnet, they won't be able to reach the gateway and get out.

I would say start simple, you only have 65 machines, so allocate 100-200 as the subnet. On the windows machine, restart, do an ipconfig /all and check the IP as well as the DHCP server. It's quite possible there is another box out there giving IP's, but start there and report back with some more info to help.

-lr
 
Old 10-11-2007, 03:50 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Your range statement looks incorrect to me..

range 172.16.2.0 172.16.2.255

You have included the Network Address 172.16.2.0
You have included the Broadcast Address 172.16.2.255

What is the Subnet mask you are handing out, 255.255.255.0 ?
Do your servers and network gateway addresses fit in that range as well ? If so you should not be handing out addresses that are already statically assigned.. the range should be more along the lines of:

range 172.16.2.50 172.16.2.254


I would post your dhcp conf file, and a bit more information about your network..
 
Old 10-15-2007, 05:16 AM   #4
reachjohney
LQ Newbie
 
Registered: Sep 2007
Location: kottayam
Distribution: Fedora core 6
Posts: 6

Original Poster
Rep: Reputation: 0
My dhcpd .conf

this is my dhcpd.conf file ...


default-lease-time 86400;
max-lease-time 86400;

option subnet-mask 255.255.0.0; option broadcast-address 172.16.255.255;
option routers 172.16.1.1; option domain-name-servers 172.16.1.1;
option domain-name"ls.edu.in" ;
ddns-update-style interim; subnet 172.16.0.0 netmask 255.255.0.0
{
range 172.16.2.10 172.16.2.200;

}
 
Old 10-15-2007, 11:44 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Personally I would change it to this...



default-lease-time 86400;
max-lease-time 86400;

option subnet-mask 255.255.255.0; option broadcast-address 172.16.1.255;
option routers 172.16.1.1; option domain-name-servers 172.16.1.1;
option domain-name"ls.edu.in" ;
ddns-update-style interim; subnet 172.16.1.0 netmask 255.255.255.0
{
range 172.16.1.50 172.16.2.254;

}


then put all servers, routers, switches, and other devices in the 1-49 address range.

a 16 bit subnet mask as you have defined (255.255.0.0) is HUGE.. that allows for 65,535 Hosts for that network, if you try and put that many hosts on a network it just simply wont work. It's a bad habit to get into to configure a subnet that large imho.

The largest subnet I would consider using would be a /22 (255.255.252.0) which would allow for 1022 hosts per subnet, but is still rather large and would probably come to a screaching halt if you tried to put tha tmany devices on it.
 
  


Reply

Tags
access, dhcp, dns, internet, ip, range



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
5 PC's and a server how do I get the PC's to access stuff on the server TheHammer Linux - Networking 9 05-07-2007 11:05 PM
to list pc's. bruse Linux - Networking 1 10-13-2005 09:03 AM
How to get my pc's information? pablowablo Linux - Newbie 1 08-12-2004 11:37 AM
dhcp ip range & ip NIC attribution exalik Linux - Networking 1 04-08-2003 10:00 AM
pc's jISV General 15 04-27-2002 12:07 PM

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

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