For some reason, the hostnames of about every computer were being forgotten by my 2wire router. This is bad because I named my computers for a reason! I didn't want to memorize IP addresses. The IPs weren't hard to remember. Its just that memorizing an arbitrary number to a computer that does specific things is hard.
I couldn't ssh into the servers easily, because I'd have to look up the IP each time rather than just typing in the hostname.
It was a simple fix!
You just have to edit dhclient.conf
sudo vim /etc/dhcp3/dhclient.confInsert this linesend host-name "yourhostname";Restart the DHCP daemonI used this command for Hardy Heron
sudo /etc/init.d/dhcdbd restartI used this command for Jaunty JackalopeYour computer should now tell your router its hostname!sudo /etc/init.d/dbus restart

0 comments:
Post a Comment