How to change Hostname of OpenWrt ?

How to change Hostname of OpenWrt ?

Sometimes you may need to change the hostname of your OpenWrt. Host name is stored in the system configuration file. You can view it in the following command.

cat /etc/config/system
System Configuration - OpenWrt

System Configuration – OpenWrt

It is very easy to change hostname of OpenWrt, using following commands. Here we are changing our hostname to “electroSome”.

uci set [email protected][0].hostname='electroSome'
uci commit system
/etc/init.d/system reload
Changing Hostname of OpenWrt

Changing Hostname of OpenWrt

Share this post