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 12-22-2006, 06:42 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
dhcpd exclusion for gateway address


I have a dhcp server on my lan which gives out a .200 to .250 range of addresses. The thing is, my router/default gateway is in this range. I basically redid an old configuration on a new server that was pre-existing when I arrived, but it didn't have an exlusion for the gateway's ip address. There has never been any problem regarding this and I am wondering why that is.

1. Does the dhcpd server check if an ip is in use before assigning or does the dhcpcd/pump client do this?

2. Also, how should I create the exclusion? I have seen configs on the net where they statically assign an ip to a hardware address. Is this what I have to do just to make sure the ip address doesn't get assigned? It seems kind of a round about way of doing it... Or do I have to define 2 ranges either side of this address just to do this?
 
Old 12-22-2006, 07:04 AM   #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
1. depends what the server is, but generally no it's not something you'd do by default as it does slow down the over all process.

2. just create a reservation, easy enough on most servers, so that wheter the router requests an ip by dhcp or not, only that one mac address is eleigble for that ip.
 
Old 12-22-2006, 11:04 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I'm referring to isc dhcpd (sorry should have said). I will probably just create the reservation for the gateway address if there isn't a better way. I suppose having 2 address ranges either side of the address isn't a good idea either and it will take more lines, right?
 
Old 12-22-2006, 12:28 PM   #4
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
you can do next to anything with ISC, it's by far the industry standard, so generally if it can't do it, no one can... having two ranges isn't a problem, but it's not massively elegant really, making a reservation is simple enough, here's a suitable example... http://ezine.daemonnews.org/200207/dhcp.html
 
  


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
dhcpd to lease IP addresses depending gateway jlbocanegra Linux - Networking 1 05-28-2006 01:43 PM
dhcpd address deletions japplewhaite Linux - Software 5 03-18-2006 08:09 PM
DHCPd based on Hardware Address Wildcard. Big_tummy Linux - Networking 1 05-23-2005 11:44 AM
dhcpd , bind, iptables gateway help munkie_poo Linux - Networking 1 01-25-2005 04:21 AM
Firewall to function as gateway for dhcpd dengi Linux - Networking 1 10-06-2003 07:43 PM

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

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