LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-07-2008, 05:15 AM   #1
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Rep: Reputation: 15
dhcpd assigning reserved mac-to-ip addresses to unregistered pcs


Dear Sir/madam

i set up dhcpd recently to only assign ip addresses to only know mac addresses. the range is also setup so there are enough ip addresses to be given out to all the mac-to-ip reservations and know more.
My problem is that if i add an unknow laptop whos mac addresses have not been recored the dhcpd server still assigns it an ip address(an ip address which is already reserved for another known mac addres pc). I did this setup in the first place to control the computer which connect to my basic network.
my dhcpd.conf file is below. if anyone can shed some light on this i would be most greatful....

dhcpd.conf:
# DHCP Configuration file for subnet 138.37.65 updated 12.10.2003
#
#
# DNS update scheme

ddns-update-style interim;
authoritative;

# Subnet declaration

subnet 188.37.65.0 netmask 255.255.255.0 {
option routers 188.37.65.254;
option subnet-mask 255.255.255.0;

option domain-name "helix.edu";
option domain-name-servers 188.37.65.3;

range 188.37.65.64 188.37.65.67;
}

# MAC address to IP mapping


host copeedddl {
hardware ethernet 00:0d:54:a8:90:85;
fixed-address 188.37.65.22;
}

host akroasdku {
hardware ethernet 00:08:74:46:89:db;
fixed-address 188.37.65.30;
}

host NP15F3B33EC {
hardware ethernet 00:01:e6:5f:3b:ec;
fixed-address 188.37.65.216;
}

host lpt106aa {
hardware ethernet 00:06:5b:02:bd:67;
fixed-address 188.37.65.8;
}

# Range Parameter

default-lease-time 600;
max-lease-time 86400;
[root@zika etc]#
 
Old 05-07-2008, 08:02 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You need the option ignore unknown-clients
 
Old 05-07-2008, 12:48 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,959

Rep: Reputation: Disabled
You are using public addresses, I assume you do not do NAT. Are you sure there is no other DHCP server and your computers are actually using your DHCP server?
 
Old 05-08-2008, 04:39 AM   #4
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Talking i think it works

cheers for replies
i think the ignore unknown-clients option has done the job. IP addresses were still been given out to any unknown pc(not using nat). But now it seems to be under control- pcs seem to get a limited connectivity response or in the case of wireless in a continuous loop in tring to obtain ip.
thanks very much. Now just left to edit the iptables to prevent somebody being smart and trying to use static ip to get connected. hope its going to be more straight forward..
 
  


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
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 08:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 07:17 AM
DHCPD and Assigning Subnets to Different Interfaces metallica1973 Linux - Networking 8 01-25-2008 05:22 AM
dhcpd config for mac addresses jqcaducifer Linux - Networking 4 10-03-2006 01:34 AM


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