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.
Oh, how I wish that the signature facility on this board weren't so broken.
It is broken in that every time you change your signature, all of your posts reflect the change, not just those going forward.