Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcpd multi pool

Reply
Thread Tools Display Modes

dhcpd multi pool

 
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      05-24-2005, 04:22 PM
What is wrong with this?


subnet 10.16.0.0 netmask 255.0.0.0 {
default-lease-time 777600;
pool {
deny members of "www";
deny members of "nodhcp";
allow members of "recognizedMAC";
range 10.16.70.1 10.16.74.254;
}
pool {
deny members of "www";
deny members of "nodhcp";
deny members of "recognizedMAC";
range 10.16.50.1 10.16.59.254;
}
}

recognized mac uses, for example,

class "nodhcp" {
match if (
(substring(hardware,1,6) = 00:11:22) );
}

Existing leases that are part of recognized MAC are
being offered leases in the second pool, the one that states deny
members of recognizedMAC. They are being DHCPNAK'ed on the leases in
the first pool where there is the allow rule.??

This is an existing setup where I am changing from adding rogue MAC
ranges to "nodhcp" (which works) to only allowing those MAC ranges that
our NIC's use in "recognized MAC"

Thanks for any help;

Edwin Davidson

 
Reply With Quote
 
 
 
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      05-25-2005, 11:42 PM
Thamks for all your help, to recap:

class "nodhcp" {
match if (
(substring(hardware,1,6) = 00:11:22) );

is wrong

class "nodhcp" {
match if (
(substring(hardware,1,3) = 00:11:22) );

is correct. position 0 is type (Ethernet/FDDI/token ring)
and positions 1-3 are the first 6 characters of the MAC address.

00 is one position as 00 means $00 (hex) or 00, decimal 00001011
11 is one position as 11 means $11 (hex) or 17, decimal 00010001
22 is one position as 22 means $22 (hex) or 34, decimal 00100010

While this is six characters when looking at it in human form, in
reality this is three bytes. Thus the 1,3.

I post this because I see other examples on the web using 1,6. I cut
and pasted one of these into my dhcpd.conf in the first place.

I also found one article stating to use 0,3 (as of this writing) which
is apparently inaccurate, unless the hardware type is 00 and the mac
address is starting with 05:02 or 61:61 (that is not what they are
trying to accomplish though):

http://www.nominum.com/getOpenSourceResource.php?id=7

if substring (hardware, 0, 3) = 00:05:02 or
substring (hardware, 0, 3) = 00:61:61 {
default-lease-time 3599;
max-lease-time 3599;
min-lease-time 3599;

}

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAS Address Pool/Reservations and ICMP Hiebert, John D. Windows Networking 0 11-30-2007 07:39 PM
iptables DNAT with MAC pool NeCrOS Linux Networking 0 08-09-2006 10:10 PM
Nonpaged Pool Memory Leak kokofoot Windows Networking 1 04-29-2006 05:51 PM
Router + Wan IP Pool monster_en_co Home Networking 7 02-13-2005 01:01 AM
Remote Access: Two different address pool Glenn Windows Networking 6 09-23-2004 02:40 PM



1 2 3 4 5 6 7 8 9 10 11