1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Semi-OT] Naming computers for the Device List

Discussion in 'Tomato Firmware' started by RonJohn, Jul 3, 2012.

  1. RonJohn

    RonJohn Serious Server Member

    Hi,

    Where in my Linux (Ubuntu 12.04, if that matters) clients to I set their names so that Device List will pick them up?

    TIA,
    Ron
     
  2. Canned Hamster

    Canned Hamster Serious Server Member

    You need to edit the hostname for that machine in the /etc/hosts file. It should be kept like this:

    Format:
    <IP> <HOSTNAME>.<DOMAIN> <ALIAS>

    Example:
    127.0.0.1 localhost.localdomain localhost

    You also can set the hostname like this:

    sudo hostname 'enterhostname'

    You will need to restart your network or reboot for the changes to take effect:

    sudo /etc/init.d/networking restart

    or

    sudo reboot
     
  3. RonJohn

    RonJohn Serious Server Member

    Because you reference /etc/init.d/networking I presume you mean modifying the desktop client? They've had static IP addresses for years and are already enumerated in their /etc/hosts and /etc/hostname files.
     
  4. Canned Hamster

    Canned Hamster Serious Server Member

    The computer's hostname is what shows in the Device List under TomatoUSB. You need to change the hostname for that machine. It has nothing to do with the IP address. The easiest way to change the hostname on Ubuntu is to type:

    sudo hostname 'enterhostname'
     
  5. RonJohn

    RonJohn Serious Server Member

    Like I said, the computer names are already set, but Tomato isn't picking it up.
    Code:
    $ hostname
    haggis
    It does, though, discover names of devices assigned dynamic addresses.
     
  6. Canned Hamster

    Canned Hamster Serious Server Member

    It probably has to do with your Ubuntu machines using static IPs and not DHCP, so their hostnames don't show up under Device LIst. Copy the MAC address and IP of your Ubuntu machines, go into Basic -> DHCP/ARP/BW, and add entries for each of your Ubuntu machines starting with their MAC address, IP address, and hostname. Make sure "Bound To" is checked. Hit Add and Save at the bottom. It should show up under Device List now.
     
  7. RonJohn

    RonJohn Serious Server Member

    That's what I was afraid of. :(
    [​IMG]
     
  8. Canned Hamster

    Canned Hamster Serious Server Member

    Go into Device List, under the MAC address of your Ubuntu machines, click "Static", that will set it up for you. Just enter a hostname and check "Bound To". Click Add and Save. It works the same way.
     

Share This Page