dhcp-server: assign fixed address to clients within MAC address range

dhcp-server: assign fixed address to clients within MAC address range

Post by Matthias Fuch » Thu, 30 Jan 2003 17:41:21



Hi,

I have to do a very special dhcp setup:

A number of client (about 100) that have NICs from the same vendor have to get
fixed-addresses that are dependant from the dhcp-client-identifier.

With some host sections I managed to give thie client the correct fixed addresses,
but because of security reasons we have to forbit any client whose MAC address does not
fit to a specific mask (the first 3 bytes of the MAC have to be checked).

This means I need this:

        if mac_address = 01.02.03:xx.xx.xx {
                if option dhcp-client-identifier = "ID_1234" {
                        fixed-address 192.168.1.2;
                } else if option dhcp-client-identifier = "ID_1235" {
                        fixed-address 192.168.1.3;
                } else if .... {

                }
        } else ... no IP is assigned

Is this possible with the ISC dhcp-server ?

I tried host sections within a pools, but it does not seem to work. My idea was to create a pool
for all clients with the correct MAC addresses and to put some host section inside
the pool. But when the dhcp-client-identifier options was accepted, the pool allow rule was ignored.

Matthias

 
 
 

1. assign fixed address to clients with MAC address range

Hi,

I have to do a very special dhcp setup:

A number of client (about 100) that have NICs from the same vendor have to get
fixed-addresses that are dependant from the dhcp-client-identifier.

With some host sections I managed to give thie client the correct fixed addresses,
but because of security reasons we have to forbit any client whose MAC address does not
fit to a specific mask (the first 3 bytes of the MAC have to be checked).

This means I need this:

        if mac_address = 01.02.03:xx.xx.xx {
                if option dhcp-client-identifier = "ID_1234" {
                        fixed-address 192.168.1.2;
                } else if option dhcp-client-identifier = "ID_1235" {
                        fixed-address 192.168.1.3;
                } else if .... {

                }
        } else ... no IP is assigned

Is this possible with the ISC dhcp-server ?

I tried host sections within a pools, but it does not seem to work. My idea was to create a pool
for all clients with the correct MAC addresses and to put some host section inside
the pool. But when the dhcp-client-identifier options was accepted, the pool allow rule was ignored.

Matthias

2. Code to change MAC address in Tru64 4.0f

3. DHCP Server Leasing Addresses to MAC Addresses of 00-00-00-00-00-00

4. lcc and linux header files

5. Assigning IP Range via First Half of MAC ( hardware ) Address

6. in need of in.pop3d w/ shadow support

7. Command for assigning IPv6 address and MAC address on the interface

8. How can I know when it is 'ok' to do an stty?

9. DHCP for specific range of mac addresses?

10. make dhcp-server ignore unknown mac-addresses

11. ISC DHCP server: last address of range?

12. DHCP server with statically assigned addresses ?

13. DHCP Server doesn't assign IP address