Hi

I am trying to configure a DHCP server under RedHat 7.3 to use the 
dhcp-client-identifier to assign a fixed IP address to a client. Rather than use the 
clients' MAC address as the identifier I want to use an integer. This means that the 
clients' IP address is not tied to the MAC address so the client can keep the same IP 
address if the network card is swapped.

I am using the following in /etc/dhcpd.conf:

host myhost {
        option dhcp-client-identifier "5555";
        fixed-address 10.129.72.93;
        }

rfc2132 - which describes dhcp says the following in section 9.14 "Client Identifiers" 
- 

"The client identifier MAY consist of type-value pairs similar to the 'htype'/'chaddr' 
fields defined in [3].
For instance, it MAY consist of a hardware type and hardware address. In this case the 
type field SHOULD be one of the ARP hardware types defined in STD2 [22]. A hardware 
type of 0 (zero) should be used when the value field contains an identifier other than 
a hardware address (e.g. a fully qualified domain name)."

and then:

"The code for this option is 61, and its minimum length is 2."
 
                 Code Len Type Client-Identifier
                 +-----+-----+-----+-----+-----+---
                 | 61 | n | t1 | i1 | i2 | ...
                 +-----+-----+-----+-----+-----+---

I have setup my DHCP client to use a client identifier value field of 5555, hardware 
type (t1) of 0 (since the value field is an identifier other than an IP address), and 
checked with a network sniffer what it is sending:

        0x61 (code), 0x3 (len), 0x0 (type), 0x55, 0x55 (client identifier)

however, I get no response from the server.

As a sanity check I tried sending the MAC address (hardware type 1), with the 
following in /etc/dhcpd.conf:

host myhost {
        hardware ethernet 12:23:34:45:56:67;
        fixed-address 10.129.72.93;
        }

The DHCP setup works in this case.

So what am I doing wrong when I try to use an identifier that isn't a MAC address?

Thanks in Advance

Ed Hebden




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to