LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-21-2013, 07:39 AM   #1
Siddharth Sharma
LQ Newbie
 
Registered: Feb 2013
Location: Jaipur
Distribution: Rhel5, Rhel6, CentOS, MAC OS X
Posts: 13

Rep: Reputation: Disabled
Deny ip address range in dhcp configuration


hello

i have configured dhcp server on centos 6 with the subnet of 192.168.0.0 netmask 255.255.255.0 and range is 192.168.0.1 to 192.168.0.50.
Now i want to deny some ip address (like 192.168.0.10 ,192.168.0.20 , 192.168.0.30 ).
how do i do that

thanks
 
Old 06-21-2013, 09:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Add a reservation. e.g

Code:
host Accountant {
hardware ethernet A1:B2:C3:D4:E5:F6;
fixed-address 192.168.10.29;
}
 
Old 06-21-2013, 10:04 AM   #3
Siddharth Sharma
LQ Newbie
 
Registered: Feb 2013
Location: Jaipur
Distribution: Rhel5, Rhel6, CentOS, MAC OS X
Posts: 13

Original Poster
Rep: Reputation: Disabled
Mac address that you mention is a valid one or any fake address we can mention.
 
Old 06-21-2013, 10:08 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
it can be anything, nothign will ever use it, as that device will (presumably) never make a DHCP request. but it'd be neat and tidy admin work to make it correct.
 
  


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
squid proxy server configuration in rhel5 and deny deny accessing websites renjindd Linux - Newbie 1 09-09-2012 08:58 AM
DHCP assign address start from the last ip in the range procfs Linux - Newbie 2 10-12-2011 06:12 AM
[SOLVED] centos 5.6 setting up static ip address with DHCP; configuration questions needsleep Linux - Server 3 08-20-2011 03:33 PM
How can i exclude an ip address from given range in dhcp server? saurabh_pandya4 Linux - Networking 4 03-05-2009 03:39 AM
how to deny ssh for ip range? maginotjr Slackware 11 11-01-2005 07:01 AM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration