LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2014, 06:24 PM   #1
filius_deus
LQ Newbie
 
Registered: Feb 2010
Posts: 13

Rep: Reputation: 1
Help Needed: ISC DHCPD MAC address matching classes confusion


'm having trouble successfully matching a mix of different mac address classes to their appropriate subnet declarations. These classes are meant to differentiate IP phones, kvm guests and desktops from each other. So far only the IP Phones (grandstream class) correctly. The pcs class is a mix of different kinds of mac addresses but they all fall into the same (wrong category). I'm wondering if anyone can review my configuration, and set me straight what I am doing improperly?

class "grandstream" {
match if (substring(hardware, 1, 3) = 00:0b:82);
}
class "vms" {
match if (substring(hardware, 1, 3) = 52:54:00);
}

class "pcs" {
#match if not
#(substring(hardware, 1, 3) = 00:0b:82);
match if (binary-to-ascii (16,8,":",substring(hardware, 1, 3)) = "24:BE:05")
or (binary-to-ascii (16,8,":",substring(hardware, 1, 3)) = "00:1C:C0")
or (binary-to-ascii (16,8,":",substring(hardware, 1, 3)) = "A4:BAB")
or (binary-to-ascii (16,8,":",substring(hardware, 1, 3)) = "02:80:FD")
or (binary-to-ascii (16,8,":",substring(hardware, 1, 3)) = "5C:F8:A1");
log (debug, (binary-to-ascii (16,8,":",substring(hardware, 1, 3))));
}

#shared-network we-we {
subnet 192.168.1.0 netmask 255.255.255.0 {
pool {
range 192.168.1.10 192.168.1.210;
deny members of "grandstream";
allow members of "pcs";
allow members of "vms";
}
# Subnet for management network
subnet 192.168.10.0 netmask 255.255.255.0 {
pool {
deny members of "grandstream";
deny members of "pcs";
range 192.168.10.200 192.168.10.253;
}
# Subnet for future lan network
subnet 192.168.20.0 netmask 255.255.255.0 {
pool{
deny members of "grandstream";
deny members of "pcs";
range 192.168.20.10 192.168.20.210;
}
# Subnet for future servers network
subnet 192.168.30.0 netmask 255.255.255.0 {
pool {
deny members of "grandstream";
deny members of "pcs";
range 192.168.30.200 192.168.30.253;
}
# Subnet for future phone network
subnet 192.168.40.0 netmask 255.255.255.0 {
pool {
allow members of "grandstream";
deny members of "pcs";
range 192.168.40.200 192.168.40.240;
}
# Subnet for future wifi-guests network
subnet 1
 
  


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
Blocking dhcpd address lease for specific MAC address kulman Linux - Server 8 03-30-2013 01:51 PM
how to do dhcpd to give a certain ip address based on mac address robertjinx Linux - Server 11 11-27-2010 05:57 AM
[SOLVED] ISC DHCP - class matching based on mac address sinthetic Linux - Networking 3 08-17-2010 11:48 AM
ISC DHCP Server MAC Address dlucas10 Linux - Networking 1 05-25-2004 05:49 PM

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

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