Hi, I have a DHCP setup using dhcp-client-identifier option.
On the DHCP server side, i use something similar to this: ---8<---- /etc/dhcpd.conf host rex { option dhcp-client-identifier "rex"; fixed-address 192.168.1.219; } --->8---- On the clients, I use to configure them like that: $ grep -v '^#' /etc/dhclient.conf send dhcp-client-identifier "rex"; $ Using -current and dhcpleased, I tried to configure it this way: ---8<---- /etc/dhcpleased.conf interface vio0 { send client id browser } --->8---- But the generated packet doesn't seem to be well interpreted by dhcpd. Old packet (from dhclient machine called 'rex') is attached in packet_dhclient.txt and the new packet (from dhcpleased machine called 'browser') is attached in packet_dhcpleased.txt. The diff show some differences: 19,22c19,22 < 0110: 0000 0000 0000 6382 5363 3501 030c 0372 ......c.Sc5....r < 0120: 6578 370b 011c 0279 030f 7706 0c43 423d ex7....y..w..CB= < 0130: 0372 6578 ff00 0000 0000 0000 0000 0000 .rex............ < 0140: 0000 0000 0000 0000 0000 0000 0000 0000 ................ --- > 0110: 0000 0000 0000 6382 5363 3501 030c 0762 ......c.Sc5....b > 0120: 726f 7773 6572 3d08 0062 726f 7773 6572 rowser=..browser > 0130: 3708 0103 060c 0f1c 7779 3204 c0a8 0162 7.......wy2....b > 0140: ff00 0000 0000 0000 0000 0000 0000 0000 ................ It seems dhcpleased is automatically adding the hostname of the machine in the DHCP message. That's the first instance of "browser" seen above. dhcpd(8) doesn't seem to catch correctly the client identifier. Is it supposed to work like that ? Thanks for any advice. Best. -- Olivier Cherrier Phone: +352691570680 mailto:o...@symacx.com
Aug 13 18:12:13.530188 fe:e1:bb:d1:c2:c4 fe:e1:ba:d0:b7:ec 0800 342: 192.168.1.219.68 > 192.168.1.12.67: [udp sum ok] xid:0xfbdfb850 secs:4188 C:192.168.1.219 vend-rfc1048 DHCP:REQUEST HN:"rex" PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:114.101.120 [tos 0x10] (ttl 128, id 38490, len 328) 0000: fee1 bad0 b7ec fee1 bbd1 c2c4 0800 4510 ..............E. 0010: 0148 965a 0000 8011 1f03 c0a8 01db c0a8 .H.Z............ 0020: 010c 0044 0043 0134 aa3e 0101 0600 fbdf ...D.C.4.>...... 0030: b850 105c 0000 c0a8 01db 0000 0000 0000 .P.\............ 0040: 0000 0000 0000 fee1 bbd1 c2c4 0000 0000 ................ 0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0110: 0000 0000 0000 6382 5363 3501 030c 0372 ......c.Sc5....r 0120: 6578 370b 011c 0279 030f 7706 0c43 423d ex7....y..w..CB= 0130: 0372 6578 ff00 0000 0000 0000 0000 0000 .rex............ 0140: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0150: 0000 0000 0000 ......
Aug 13 18:10:11.599556 fe:e1:bb:d1:b2:92 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] xid:0xba962e2 vend-rfc1048 DHCP:REQUEST HN:"browser" CID:0.98.114.111.119.115.101.114 PR:SM+DG+NS+HN+DN+BR+119+121 RQ:192.168.1.98 [tos 0x10] (ttl 128, id 0, len 328) 0000: ffff ffff ffff fee1 bbd1 b292 0800 4510 ..............E. 0010: 0148 0000 0000 8011 3996 0000 0000 ffff .H......9....... 0020: ffff 0044 0043 0134 9006 0101 0600 0ba9 ...D.C.4........ 0030: 62e2 0000 0000 0000 0000 0000 0000 0000 b............... 0040: 0000 0000 0000 fee1 bbd1 b292 0000 0000 ................ 0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 0110: 0000 0000 0000 6382 5363 3501 030c 0762 ......c.Sc5....b 0120: 726f 7773 6572 3d08 0062 726f 7773 6572 rowser=..browser 0130: 3708 0103 060c 0f1c 7779 3204 c0a8 0162 7.......wy2....b 0140: ff00 0000 0000 0000 0000 0000 0000 0000 ................ 0150: 0000 0000 0000 ......