NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/46423: dhcpcd does not send hostname to server, even if requested to do.
The following reply was made to PR bin/46423; it has been noted by GNATS.
From: Roy Marples <roy%marples.name@localhost>
To: <gnats-bugs%netbsd.org@localhost>
Cc:
Subject: Re: bin/46423: dhcpcd does not send hostname to server, even if
requested to do.
Date: Mon, 07 May 2012 21:19:45 +0100
dhcpcd-5.1.3 on my amd64 NetBSD-5.1 server works fine
Here's a tcpdump demonstrating this.
With "hostname fooey" in /etc/dhcpcd.conf
uberserver$ sudo tcpdump -i rtk0 -vvv -s 0 port bootps
[0,62/62]
tcpdump: listening on rtk0, link-type EN10MB (Ethernet), capture size
65535 byte
s
21:01:04.934412 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto
UDP (17)
, length 328) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok]
BOOTP/DHCP,
Request from 00:e0:4c:e5:0a:fd (oui Unknown), length 300, xid
0x6ef352b0, Flags
[none] (0x0000)
Client-Ethernet-Address 00:e0:4c:e5:0a:fd (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Requested-IP Option 50, length 4: 10.73.0.199
MSZ Option 57, length 2: 1500
Vendor-Class Option 60, length 12: "dhcpcd 5.1.3"
Hostname Option 12, length 5: "fooey"
Parameter-Request Option 55, length 12:
Subnet-Mask, Static-Route, Default-Gateway,
Domain-Name-Server
Hostname, Domain-Name, BR, NTP
Lease-Time, RN, RB, Option 119
END Option 255, length 0
PAD Option 0, length 0, occurs 11
With just "hostname" in /etc/dhcpcd.conf
uberserver$ sudo tcpdump -i rtk0 -vvv -s 0 port bootps
tcpdump: listening on rtk0, link-type EN10MB (Ethernet), capture size
65535 bytes
21:05:07.654348 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto
UDP (17), length 328) 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum
ok] BOOTP/DHCP, Request from 00:e0:4c:e5:0a:fd (oui Unknown), length
300, xid 0xb990a884, Fla
gs [none] (0x0000)
Client-Ethernet-Address 00:e0:4c:e5:0a:fd (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Requested-IP Option 50, length 4: 10.73.0.199
MSZ Option 57, length 2: 1500
Vendor-Class Option 60, length 12: "dhcpcd 5.1.3"
Hostname Option 12, length 10: "uberserver"
Parameter-Request Option 55, length 12:
Subnet-Mask, Static-Route, Default-Gateway,
Domain-Name-Server
Hostname, Domain-Name, BR, NTP
Lease-Time, RN, RB, Option 119
END Option 255, length 0
PAD Option 0, length 0, occurs 6
So the question now becomes why do you think dhcpcd is at fault? Maybe
your DHCP server is discarding the information.
Can you post a tcpdump from your machine showing your DHCP message?
Thanks
Roy
Home |
Main Index |
Thread Index |
Old Index