Wrong gateway when using class in a subnet

Adam Moffett adamlists at plexicomm.net
Fri Jun 1 19:37:50 UTC 2012


Sorry to post again so soon, but I'm still trying to wrap my head around 
the full implications of my misunderstanding about classes.

Can I use the same class in multiple shared networks and expect to get 
the right IP out to somebody?

Example:

class "EndUserStuff" {
    match if not substring(hardware,1,3) = 00:04:f2;
}

shared-network "A" {
[...]
   subnet 204.80.232.0 netmask 255.255.255.0 {
     [...]
     pool {
       allow members of "EndUserStuff";
     }
   }
}

shared-network "B" {
[...]
   subnet 174.47.201.0 netmask 255.255.255.0 {
     [...]
     pool {
       allow members of "EndUserStuff";
     }
}

If that's expected to do the right thing, then it would tremendously 
simplify my dhcpd.conf.



More information about the dhcp-users mailing list