User defined options question
Joe Hammerman
jhammerman at videoegg.com
Tue May 4 21:53:57 UTC 2010
Hello DHCP users list.
I am trying to setup DHCP classes so I can assign machines to different pools within the same subnet, thereby assigning them to different ddns zones.
It seems the best way to do this is with a user defined option passed along with the request from the client.
My dhclient version is 3.0.5.
I have edited my dhclient.conf on my test machine. It looks like this:
cat /etc/dhclient-eth0.conf
option zone-name code 194 = text;
send zone-name "SACDB";
send host-name "ddns-test6"; # temporary RHL ifup addition
I added the following line to my /etc/dhcpd.conf file:
option zone-name code 194 = text;
But tcpdump yields:
21:03:48.943072 00:24:a8:7c:0a:00 > 00:1e:c9:b1:f7:cf, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 15, id 56396, offset 0, flags [none], proto: UDP (17), length: 328) 172.17.0.2.bootpc > 10.1.64.11.bootps: BOOTP/DHCP, Request from 36:cd:a9:46:42:fa, length: 300, hops:1, xid:0xf4a8e1e, flags: [none]
Gateway IP: 172.17.0.2
Client Ethernet Address: 36:cd:a9:46:42:fa
Vendor-rfc1048:
DHCP:REQUEST
RQ:172.17.8.252
HN:"ddns-test6"
PR:SM+BR+TZ+DG+DN+NS+HN+YD+YS+NTP
T194:83.65.67.68.66
21:03:48.960571 00:1e:c9:b1:f7:cf > 00:00:5e:00:01:a4, ethertype IPv4 (0x0800), length 353: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 339) 10.1.64.11.bootps > 172.17.0.1.bootps: BOOTP/DHCP, Reply, length: 311, hops:1, xid:0xf4a8e1e, flags: [none]
Your IP: 172.17.8.252
Server IP: 10.1.64.11
Gateway IP: 172.17.0.1
Client Ethernet Address: 36:cd:a9:46:42:fa
file "pxelinux.0"
Vendor-rfc1048:
DHCP:ACK
SID:10.1.64.11
LT:21600
SM:255.255.224.0
DG:172.17.0.1
DN:"videoegg.com sacda.videoegg.com"
NS:10.1.64.11,10.1.64.12
21:03:48.962632 00:1e:c9:b1:f7:cf > 00:00:5e:00:01:a4, ethertype IPv4 (0x0800), length 353: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 339) 10.1.64.11.bootps > 172.17.0.2.bootps: BOOTP/DHCP, Reply, length: 311, hops:1, xid:0xf4a8e1e, flags: [none]
Your IP: 172.17.8.252
Server IP: 10.1.64.11
Gateway IP: 172.17.0.2
Client Ethernet Address: 36:cd:a9:46:42:fa
file "pxelinux.0"
Vendor-rfc1048:
DHCP:ACK
SID:10.1.64.11
LT:21600
SM:255.255.224.0
DG:172.17.0.1
DN:"videoegg.com sacda.videoegg.com"
NS:10.1.64.11,10.1.64.12
Can anyone give me any guidance?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100504/c76d6357/attachment.html>
More information about the dhcp-users
mailing list