Configuration problem

MickB mickb at
Sun May 3 11:41:43 UTC 2009


I post on this mailing-list because I encounter a configuration problem 
of my DHCP server. After many tests and careful read of the man pages, I 
didn't succeed to solve it. I even suspect a bug.

Configuration used:
    * Linux
    * Glibc 2.8
    * DHCPd v4.1.0

Here's some explanations.
I have a single subnet: I have declared two clients classes:
    - one for clients which MAC address begins by 00:FF,
    - one for clients which MAC address doesn't begin by 00:FF.

- In the first class, clients get an IP in the pool -, and get a router address
- In the second class, clients get an IP in the pool -, and no router address

For this purpose, this DHCP server configuration is working correctly:

### Classes ###
class "test" {
        match if substring (hardware, 1, 2) = 00:FF;

### Subnets ###
subnet netmask {

        pool {
                deny members of "test";
                option routers;

        pool {
                allow members of "test";

        option subnet-mask;
        option broadcast-address;


However, it doesn't work anymore when I had a host declaration with a 
fixed-address like this:

host toto {
        hardware ethernet 00:12:A8:13:E1:40;

In such case, the host "toto" doesn't get the router address. I believe 
it isn't coherent. Host "toto" doesn't belong to the "test" class, so 
the first pool in the subnet should match. The range is only for the 
case of dynamic address allocation and is no use in this case. But 
"option routers" should be taken into account, no ?

Any help would be appreciated :)


More information about the dhcp-users mailing list