DHCP classes and MAC address matching

Luke Miller millerlu at integraonline.com
Wed Apr 26 20:54:43 UTC 2006


I am trying to setup DHCP matching on both a class and a MAC address.  I have a DSL modem that will be getting two different DHCP addresses on two different VLAN's..  The address on the first VLAN should be assigned dynamically by a pool..  The address for the second VLAN should be assigned statically based on the MAC address.  Both of these requests will come from the same MAC address.

The DHCP requests are being directed to the server via a DHCP relay agent on the DSL equipment.  Below is my configuration.  The commented out option in the host declaration is what I thought should work, but that option isn't accepted there.  I am running ISC DHCP version 3.0.3.

I have tried putting the host declaration inside the subnet or poll declarations with no change in behavior.  What happens is the DHCP server gives out the static address (192.168.240.11) to the requests on both VLAN's.  

What can I do to talk the DHCP server in to doing what I want?

Thanks,

Luke


class "TESTOR-AI00-RGMGMT-RG624A" {
        match if ( substring (option agent.remote-id,0,29)="TESTOR-AI00-PTTIX71-RG-MGMT")
        and ( substring (option agent.circuit-id,2,2)="\x01\x2C" );
}

class "TESTOR-AI00-INET-basic" {
        match if ( substring (option agent.remote-id,0,26)="TESTOR-AI00-PTTIX71-MAIN" )
        and ( substring (option agent.circuit-id,2,2)="\x01\x90" );
}

subnet 10.111.50.0 netmask 255.255.255.0 {
        option routers 10.111.50.1;
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.111.50.255;
        pool { # AI00RMGMT  Vlan 300
                authoritative;
                allow members of "TESTOR-AI00-RGMGMT-RG624A";
                range 10.111.50.10 10.111.50.200;
                default-lease-time 86400;
                max-lease-time 86400;
        }
}

subnet 192.168.240.0 netmask 255.255.255.0 {
        option routers 192.168.240.1;
        option domain-name-servers 204.130.255.3,64.122.32.71;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.240.255;
        pool { # AI00INET  Vlan 400
                authoritative;
                allow members of "TESTOR-AI00-INET-basic";
                range 192.168.240.101 192.168.240.200;
                default-lease-time 86400;
                max-lease-time 86400;
        }
}

host test {
     #   allow members of "TESTOR-AI00-INET-basic";
        fixed-address 192.168.240.11;
        hardware ethernet 00:0D:DA:01:AA:4C;
        default-lease-time 86400;
        max-lease-time 86400;
}




More information about the dhcp-users mailing list