OpenWrt Forum Archive

Topic: Router name in local network

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Please help
I was lost in numerous explications about setting DNS. What I want is to access router only in my local network by name , not by an ip address. It will be great benefit because I don't have to run ip scanner each time when I turn on my router.

Best
U

I do not understand clearly your question.  But you can set your openwrt router name to let say "lila"

The UCI method for setting the hostname of the OpenWrt system itself is via /etc/config/system:

  config system
      option hostname    lila

If your Openwrt router is set to get address by DHCP then you go to your Home Router DHCP Client Table you will see it.

Read More of this in

http://wiki.openwrt.org/doc/howto/notuc … g#etchosts

If you are tire to try to find your routers.  What you need to do is set your IP router as a Static IP instead of Dinamic(DHCP).  Then your IP will be always the same for example 74.125.115.103.


Static IP

    *
      Example configuration commands:

      uci set network.wan.proto=static
      uci set network.wan.ipaddr=74.125.115.103
      uci set network.wan.netmask=255.255.255.0
      uci set network.wan.gateway=74.125.115.1
      uci set network.wan.dns='8.8.8.8 8.8.4.4'
      uci commit network
      ifup wan

or by edit the part of the info in  /etc/config/network

* * *

config 'interface' 'wwan'
        option 'ifname'     'eth0.1'
        option 'proto'      'static'
        option 'ipaddr'     '74.125.115.103'
        option 'netmask'    '255.255.255.0'

      * * * *

The discussion might have continued from here.