The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
dhcpd - range parameter Keene44 IP Networking 1 03-27-2008 09:02 AM
dhcpd - range parameter Keene44 Linux 1 03-27-2008 09:00 AM
how do I make dynamic parameter names? Or get the value of a parameter evaluated twi Awanka Shell Programming and Scripting 2 04-19-2007 06:37 PM
dhcpd.conf keliy1 Linux 1 11-17-2004 12:05 PM
dhcpd Esaia UNIX for Advanced & Expert Users 2 04-11-2003 12:41 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008
Registered User
 

Join Date: Mar 2008
Posts: 3
dhcpd - range parameter

Hi All,

I'm curious about what this community would think about this portion of a dhcpd.conf file:

subnet 192.168.1.0 netmask 255.255.255.0 {
...
...other parameters/options...
...
range 192.168.1.3 192.168.1.253
range 172.16.0.2 172.16.0.50
}

I tested this and dhcpd did not barf when I put it in. It seems odd that it would allow a range outside of the subnet scope. Anyone use this technique or have experience with it?

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-27-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,111
(post deleted, srry)

Last edited by era; 03-27-2008 at 09:03 AM.
Reply With Quote
  #3 (permalink)  
Old 03-27-2008
redhead's Avatar
Registered User
 

Join Date: Feb 2002
Location: Denmark
Posts: 47
There is nothing wrong with dhcp accepting it, you can use it in conjunction with some allow/disallow classes settings ie:
Code:
class "allowed-LAN"  { match hardware; }
subclass "allowed-LAN" 1:00:14:BF:E8:75:EE; 
subclass "allowed-LAN"  1:00:30:E2:29:E7:DB;
subnet 192.168.1.0 netmask 255.255.255.0 {
  option routers 192.168.1.1;
  option subnet-mask 255.255.255.0;
  pool {
    range 192.168.1.2 192.168.1.10;
    option domain-name-servers 62.157.101.211, 217.146.139.5, 208.67.222.222, 2
08.67.220.220;  # orsn.net / OpenDNS.com
    option domain-name "allowed-lan";
    ddns-domainname "allowed-lan";
    default-lease-time 345600;
    max-lease-time 691200;
    allow members of "allowed-LAN";
  }
  pool {
    range 172.16.0.12 172.16.0.32;
    option domain-name-servers 192.168.1.1;
    option domain-name "denied-lan";
    ddns-domainname "denied-lan";
    deny members of "allowed-LAN";
    default-lease-time 600;
    max-lease-time 7200;
  }
}
So you're capable of controling whatever others that are not allowed in your net of how they get routed without making alot of jumps through hoops.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0