LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-10-2004, 02:50 AM   #1
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Rep: Reputation: 15
dhcpd: wrong config or bug?


dear forum!

i have a problem understanding the acting of my dhcp_server.

the problem: a never-before-used-network-card tries to get a ip-address from the dhcp_server. and the server OFFERS one even if the config denies to do that. ok .. the log-file-entries:

dhcpd: DHCPDISCOVER from xx:xx:xx:xx:xx:xx via eth0
dhcpd: DHCPOFFER on yy.yy.yy.yy to xx:xx:xx:xx:xx:xx via eth0

in fact, there are no pools in the dhcpd.conf-file. i want a 1:1 relation between mac-address and ip-address. so there are some subnets and host-paragraphs in the config-file. but the above mentioned xx:xx:xx:xx:xx:xx - mac-address is not in the config.

any ideas why the server offered an ip-address?

thx in advance

gottfried

Last edited by british_76; 09-10-2004 at 02:59 AM.
 
Old 09-10-2004, 04:13 AM   #2
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
Here's my config file. It assigns fixed ips for mac addresses it recognises, otherwise it hands out addresses in the range 192.168.0.101 to 192.168.0.104


subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.101 192.168.0.104;
default-lease-time 86400;
max-lease-time 86400;
option ip-forwarding on;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 4.3.2.1, 1.2.3.4;
}



host PC1 {
hardware ethernet 00:50:FC:89:AD:8A;
fixed-address 192.168.0.2;
}

host PC2 {
hardware ethernet 00:0E:A6:8E:01:A6;
fixed-address 192.168.0.22;
}

host PC3 {
hardware ethernet 00:02:3F:81:CCE;
fixed-address 192.168.0.3;
}
host PC4 {
hardware ethernet 22:BE:94:3B:10:59;
fixed-address 192.168.0.4;
}

host PC6 {
hardware ethernet 00:00:E2:89:E1:CC;
fixed-address 192.168.0.44;
}

host PC7 {
hardware ethernet 00:80:5F:9B:81:51;
fixed-address 192.168.0.5;
}
 
Old 09-10-2004, 04:24 AM   #3
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Original Poster
Rep: Reputation: 15
thx!
my config is very similar to yours. with the main difference, that i don't have a range to hand out ips for mac-addresses not mentionend in the config. because that's exactly what i do not want: workstations in my network which i haven't declared in the conf.
 
Old 09-10-2004, 06:03 AM   #4
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
It looks like you want to prevent unauthorised users from connecting. Is this correct? If so, this isn't the way to do it - they can just come along with a static ip (ie one they have chosen themselves) and connect that way. What you need is a set of firewall rules designed only to allow known clients and to, deny all others.
 
Old 09-10-2004, 08:22 AM   #5
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Original Poster
Rep: Reputation: 15
yes, you are right and it's part of strategie to do it the way described. but for not it's very important to me to know why the dhcpd acts the way he does.
 
Old 09-13-2004, 08:38 AM   #6
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Original Poster
Rep: Reputation: 15
ok. my fault. in a nutshell: i have 2 dhcp-servers (one for backup) and the backup was using the wrong conf-file. mea culpa

thx for help!
 
  


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
X config wrong following upgrade quinnk Red Hat 1 04-26-2005 04:44 PM
redhat-config-users bug? majic Red Hat 5 10-12-2004 10:19 AM
Bug report: wrong date/time format in last visited wipe LQ Suggestions & Feedback 0 07-29-2004 06:21 AM
Suse 9.1 Gnome config bug ricst Linux - Software 0 05-21-2004 12:54 PM
dchpd, multiple interfaces Robert0380 Linux - Networking 4 05-13-2003 11:57 AM

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

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