What's new

How to tell router to forget a connected client?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Laxarus

Regular Contributor
This should be a simple trick but I cannot find anything related to it.

When a device joins the network for the first time with a hostname "Dev1" (Set by the device), dhcp assigns a local ip to that device and the hostname shows as "Dev1". However, if the client device changes its own hostname to "Dev2", this does not reflect to Router. It stays as "Dev1" all the time for that particular MAC IP. You can assign a name (Alias) from the router GUI to that device but essentially it stays as "Dev1".

So, what I want to do is to disconnect the device, change the hostname of the device within itself, let router completely forget that MAC IP, and let device join the network with the proper name.

The question is how do I make the router forget that device?
Thanks in advance.


Fw: 386.7_2 merlin
Router: RT-AC5300
 
Either reboot the router, or wait for the DHCP lease to expire.
 
So, what I want to do is to disconnect the device, change the hostname of the device within itself, let router completely forget that MAC IP, and let device join the network with the proper name.
What "name" are you referring to? The "Client name" used by the Network Map, or the hostname in DNS? If it's DNS you shouldn't need to do anything. When the client reconnects it updates the hostname automatically.
 
I mean the actual hostnames set by the client itself. Not DNS, or network map "Client Name".

Gonna give a quick example,
Assume you have an iphone with name set as "iphone" in Settings/About/Name
When you connect your phone to network for the first time, it shows on the router with the name "iphone" associated with that particular MACC address because you set it from the client itself prior to network connection.
However, if you change the name later from the iphone itself to something like "myphone", the router client name does not reflect that. It stays as "iphone".
So I want to make Router completely forget that client and simulate it like a first connection.
 
I mean the actual hostnames set by the client itself. Not DNS, or network map "Client Name".

Gonna give a quick example,
Assume you have an iphone with name set as "iphone" in Settings/About/Name
When you connect your phone to network for the first time, it shows on the router with the name "iphone" associated with that particular MACC address because you set it from the client itself prior to network connection.
However, if you change the name later from the iphone itself to something like "myphone", the router client name does not reflect that. It stays as "iphone".
So I want to make Router completely forget that client and simulate it like a first connection.
Yes, that's DNS. The client tells dnsmasq what its hostname is and then dnsmasq puts it in DNS. (At least that's how it works in the non-Apple world).

Here's me changing the hostname on my Android phone:
Rich (BB code):
Oct 17 22:46:06 hostapd: eth7: STA ec:1f:72:f8:4a:21 IEEE 802.11: associated
Oct 17 22:46:06 hostapd: eth7: STA ec:1f:72:f8:4a:21 RADIUS: starting accounting session 59D4E004C388B929
Oct 17 22:46:06 hostapd: eth7: STA ec:1f:72:f8:4a:21 WPA: pairwise key handshake completed (RSN)
Oct 17 22:46:06 dnsmasq-dhcp[20345]: DHCPDISCOVER(br0) ec:1f:72:f8:4a:21
Oct 17 22:46:06 dnsmasq-dhcp[20345]: DHCPOFFER(br0) 192.168.1.186 ec:1f:72:f8:4a:21
Oct 17 22:46:06 dnsmasq-dhcp[20345]: DHCPREQUEST(br0) 192.168.1.186 ec:1f:72:f8:4a:21
Oct 17 22:46:06 dnsmasq-dhcp[20345]: DHCPACK(br0) 192.168.1.186 ec:1f:72:f8:4a:21 Galaxy-S6
:
:
Oct 17 22:47:22 hostapd: eth7: STA ec:1f:72:f8:4a:21 IEEE 802.11: associated
Oct 17 22:47:22 hostapd: eth7: STA ec:1f:72:f8:4a:21 RADIUS: starting accounting session 3E7F48A15B9ECB82
Oct 17 22:47:22 hostapd: eth7: STA ec:1f:72:f8:4a:21 WPA: pairwise key handshake completed (RSN)
Oct 17 22:47:22 dnsmasq-dhcp[20345]: DHCPDISCOVER(br0) ec:1f:72:f8:4a:21
Oct 17 22:47:22 dnsmasq-dhcp[20345]: DHCPOFFER(br0) 192.168.1.186 ec:1f:72:f8:4a:21
Oct 17 22:47:22 dnsmasq-dhcp[20345]: DHCPREQUEST(br0) 192.168.1.186 ec:1f:72:f8:4a:21
Oct 17 22:47:22 dnsmasq-dhcp[20345]: DHCPACK(br0) 192.168.1.186 ec:1f:72:f8:4a:21 Galaxy-S6xxxx

However, IIRC if you have ever changed the "Client list" entry for a device it saves that as the "client name" and always associates it with that MAC address. So try killall networkmap; rm /jffs/nmp_cl_json.js and see if that makes a difference.
 
However, IIRC if you have ever changed the "Client list" entry for a device it saves that as the "client name" and always associates it with that MAC address. So try killall networkmap; rm /jffs/nmp_cl_json.js and see if that makes a difference.

I've even noticed that it is easy to do this by accident, you click in that field and hit "enter" to get out of it without making changes, and that saves the name to NVRAM.
 
Doesn't removing the SSID (or fully resetting the network) from the client device, rebooting both the client and the router, then re-associating the device fix this issue?
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top