LinuxQuestions.org
Visit Jeremy's Blog.
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-30-2006, 08:48 PM   #1
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
dhcpd config for mac addresses


Hello,

I have a dhcpd server on a linux router currently. Its subnet includes a wireless access point where people can connect to. I want to set up the dhcp server in such a way that only hosts (determined by MAC address) can get an IP, and all other computers can't. So far, I have something like

Code:
ddns-update-style ad-hoc;

authoritative;

subnet 10.10.10.0 netmask 255.255.255.0 {
        range 10.10.10.2 10.10.10.20;
        max-lease-time 604800;
        default-lease-time 604800;
        option domain-name "domainname.com";
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.10.10.255;
        option routers 10.10.10.1;
        option domain-name-servers 10.10.10.1, ...., ....;

        host hostname1 {
                hardware ethernet 00:00:00:00:00:00;
                fixed-address 10.10.10.30;
        }
But how do I only give IP addresses and access to only the people who with MAC addresses specified in host...?

Thanks
 
Old 10-01-2006, 12:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'd assume you simply remove the range option, then it can't allocate anything.
 
Old 10-01-2006, 02:00 PM   #3
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
Yep. Its that simple. I thought it would be a completely different setup, but guess not; thanks!
 
Old 10-02-2006, 05:39 PM   #4
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
Hi,

I had a related question: When I use the current setup in dhcp, IP addresses aren't allocated to ones who aren't on the host {} list. However, someone can still hardcode an ip address with the correct subnet and router settings, and go through my router. In what ways can I prevent this so that only hardware addresses I specify can be accepted onto my network?

Thanks
 
Old 10-03-2006, 01:34 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
without things like managed switches you really can't stop access at some level. you can block access out of a router based on mac addresses generally, but outside of that there is no one point of access...
 
  


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
Mapping IP addresses to MAC addresses basilio Linux - Networking 17 09-12-2007 01:48 AM
dhcpd to lease IP addresses depending gateway jlbocanegra Linux - Networking 1 05-28-2006 01:43 PM
dhcpd assigns ip addresses backwards qartis Linux - Networking 5 08-08-2005 06:59 AM
DHCPD Not Giving Out Addresses Trano Linux - Networking 4 04-16-2005 12:12 AM
Mac Addresses nixdisciple Linux - Security 6 07-01-2002 10:55 PM

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

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