Re: Assigning static addresses based on Client ID?
Shawn Mamros <mamros@ftp.com> Fri, 24 May 1996 21:06 UTC
Received: from ietf.cnri.reston.va.us by IETF.CNRI.Reston.VA.US id aa04509;
24 May 96 17:06 EDT
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa04504;
24 May 96 17:06 EDT
Received: from reef.bucknell.edu by CNRI.Reston.VA.US id aa14036;
24 May 96 17:06 EDT
Received: from localhost by reef.bucknell.edu with SMTP
(5.65/IDA-1.2.8) id AA00585; Fri, 24 May 1996 17:02:43 -0400
Date: Fri, 24 May 1996 17:02:43 -0400
Message-Id: <9605242031.AA29589@mailserv-C.ftp.com>
Errors-To: droms@bucknell.edu
Reply-To: dhcp-v4@bucknell.edu
Originator: dhcp-v4@bucknell.edu
X-Orig-Sender: dhcp-v4@bucknell.edu
Precedence: bulk
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Shawn Mamros <mamros@ftp.com>
To: Multiple recipients of list <dhcp-v4@bucknell.edu>
Subject: Re: Assigning static addresses based on Client ID?
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: Discussion of DHCP for IPv4
>It works either way. If you want to match the client ID, declare the >host as follows: > >host foo > option dhcp-client-identifier 1:8:0:2b:4c:29:5d > fixed-address confusia-3.fugue.com; > >This assumes that the client identifier is an ethernet address >declared according to the latest draft on DHCP options. Older >versions of FTP software's DHCP client use fairly long ASCII text >client identifiers. Unfortunately, these must also be entered as >binary data. Our DHCP client also allows one to specify their own custom client ID string, one that doesn't have to be tied to the hardware address at all. (Of course, you do need to make sure all your clients have their own unique string...) To handle one of these, you will have to translate the ASCII string into the appropriate binary representation. In other words, if you had a client whose client ID was set to "Client-1", it would be represented in the syntax above as: host foo option dhcp-client-identifier 43:6c:69:65:6e:74:2d:31 fixed-address dhcp-client-1.ftp.com; (The conversion could probably be done using a script with your favorite scripting language, if you like...) If you don't set a custom client ID, then the "long ASCII text" string which Ted refers to is an ASCII representation of the hardware address, in the form "cid-02608CD88398" (replace 02608CD88398 with your own hardware address). Future releases will be changing this to the same hardware type/binary hardware address format used by most other vendors. (I had wanted to change our format some time ago, but couldn't due to backwards compatibility problems with older versions of our own DHCP server.) Hope this helps... -Shawn Mamros E-mail to: mamros@ftp.com