assign fixed address to clients with MAC address range

assign fixed address to clients with MAC address range

Post by Matthias Fuch » Thu, 30 Jan 2003 00:05:35



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. dhcp-server: assign fixed address to clients within 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. how to place the output of grep into a variable

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

4. How can I connect external internet site through proxy server using C?

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

6. is there a driver debugger?

7. How to assign a IP address range to an interface ?

8. Prueba

9. DHCP for specific range of mac addresses?

10. Determine IP address assigned to MAC

11. How assign MAC address to logical interface hme0:1?

12. dhcpd assigned w/o mac address

13. Binding a single IP Address to two different MAC addresses