# What is the proper way to change the hostname of my Mango v2 device?

**URL:** <https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344>\
**Category:** Router\
**Created:** [December 20, 2023, 9:31pm UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344 "2023-12-20T21:31:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aragorn](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@aragorn](https://forum.gl-inet.com/u/aragorn)\
**Post date:** [December 20, 2023, 9:31pm UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/1 "2023-12-20T21:31:09Z")

</div>

Hello  
For GL-MT300N-V2 how can I change the hostname?

I changed it through Luci here  
…cgi-bin/luci/admin/system/system  
and here  
…/cgi-bin/luci/admin/network/hosts  
but the routers to which I connect the Mango still show the old name?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![hansome](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@hansome](https://forum.gl-inet.com/u/hansome)\
**Post date:** [December 21, 2023, 9:46am UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/2 "2023-12-21T09:46:21Z")

</div>

> [@aragorn](#):
>
> I changed it through Luci here  
> …cgi-bin/luci/admin/system/system

This will work.  
You need to reconnect the terminal.

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [December 21, 2023, 11:55am UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/3 "2023-12-21T11:55:57Z")

</div>

`service network restart` should kick it into effect for any upstream DHCP assignments… or just power cycle/reboot.

---

<div class="post-metadata">

**Author:** ![aragorn](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@aragorn](https://forum.gl-inet.com/u/aragorn)\
**Post date:** [December 21, 2023, 12:18pm UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/4 "2023-12-21T12:18:57Z")

</div>

Where exactly do you enter this command?

---

<div class="post-metadata">

**Author:** ![bring.fringe18](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bring.fringe18/32/11777_2.png) [@bring.fringe18](https://forum.gl-inet.com/u/bring.fringe18)\
**Post date:** [December 21, 2023, 12:22pm UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/5 "2023-12-21T12:22:06Z")

</div>

Apologies; you'll need to SSH into the Mango. Here's a HOW-TO; it'll give you more than what you didn't even know you wanted. See the References & Resources:

> [@HOW-TO: Script: List My OPKGs (to a file for backup)](https://forum.gl-inet.com/t/how-to-script-list-my-opkgs-to-a-file-for-backup/30963):
>
> Keywords: backup, opkg, plugins, list, howto, script, shell, luci, restore, ipk, tarball, conf Description List user’s (your) installed packages, writing them to a text file that can be used to reinstall the binaries of what a user manually installed. The resulting .list file will be use to opkg install to pull from the feeds. That is done with two commands in one execution. The GL GUI doesn’t feature a backup function. Creating & restoring a backup achieve (.tar.gz, aka tarball) of all your…

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:28am UTC](https://forum.gl-inet.com/t/what-is-the-proper-way-to-change-the-hostname-of-my-mango-v2-device/36344/6 "2025-10-29T04:28:39Z")

</div>


