classes being global and all...

Adam Moffett adamlists at plexicomm.net
Wed Oct 24 21:10:33 UTC 2012


Would something like the example below work?  Does a DHCP request fall 
into a matching subnet first and then get an IP from a pool where it's 
allowed?  Or does being a member of class "WimaxCPE" mean I might get an 
IP from either subnet?

It seems intuitively like this should work the way I want, but I've been 
burned before when making such assumptions so I thought I'd check first.


class "WimaxCPE" {
   match if substring(hardware,1,3) = 64:ed:57;
}

class "SipuraVoIP" {
   match if substring(hardware,1,3) = 0:e:8;
}


shared-network "towerA" {
   subnet 10.1.0.0 netmask 255.255.255.0 {
     pool {
       allow members of "WimaxCPE";
     }
   }
   subnet x.y.x.n netmask 255.255.255.0 {
     pool {
       allow members of "SipuraVoIP";
     }
   }
}

shared-network "towerB" {
   subnet 10.5.0.0 netmask 255.255.255.0 {
     pool {
       allow members of "WimaxCPE";
     }
   }
   subnet x.y.z.z netmask 255.255.255.0 {
     pool {
       allow members of "SipuraVoIP";
     }
   }
}


More information about the dhcp-users mailing list