damaru wrote:I use my rpi headless so I needed an easy way to track which ip it got when connecting to the network. I uses dhcp but when connecting to a bigger network it becomes hard to find where it is.
to do that I changed the
uncommented the send host-name and added a more suitable host-name:
send host-name "raspberry.pi";
Yes. I can confirm that this method works. You have to do /etc/init.d/networking restart
of course, to get it to "take". Also, the file is, as GoG notes, dhclient.conf (no "cp")
Anyway, going off-topic for a moment, does anyone know how to do the same thing on a Mac? My Mac does not show up in my DHCP table. The net tells me that this is a bug in the Mac side of things - that if the hostname is greater than 15 characters, it won't work - and that the fix is to make sure your hostname is less than 16. And, indeed, my hostname is longer than 15.
But interestingly enough, I noticed that the router display seems to truncate the name to 15 as well. So, maybe both parties are partly responsible for the dilemma.
Never answer the question you are asked. Rather, answer the question you wish you had been asked.
- Robert S. McNamara - quoted in "Fog of War" -