How to set the hostname of a switch in controller mode?

How to set the hostname of a switch in controller mode?

How to set the hostname of a switch in controller mode?
How to set the hostname of a switch in controller mode?
Monday - last edited 7 hours ago
Model: TL-SG2008  
Hardware Version:
Firmware Version:

I have a few of these switches (all 8 ports but only 2 strictly identical) under control of an OC200.

 

I have local DNS via OPNSense (ditched my ER-605v1 that was EOL. Lack of local DNS was one of the many reasons I didn't upgrade...).

I have not been able to set the hostname on the switches and since 2 are identical, they have the same hostname (SG2008) and every time they request a new IP via DHCP, the FQDN flips to the new IP. It creates noise in the DNS logs (from DHCP assignments).

 

I could probably override this hostname in my DHCP configuration but setting the hostname should be fairly straightforward and not bother the controller that does not seem to care about them (nor DNS).

I can SSH into the switches, enter "Privilege EXEC Mode" but not "Global Configuration Mode" which seems to be the mode the hostname command requires.

 

Looking at the running-config, I see that a hostname is set to whatever I chose in DEVICE>Config>General>Name in the controller UX.

The various prompts used once the ssh connection has been established feature that name (eg SG2008-O> and SG2008-O#).

But that hostname does not appear to be used in the DHCPREQUEST message.

 

I can understand using the model number as a fallback if the hostname contains invalid characters (a character substitution would be fine too).

Why not use the actual hostname when valid?

Even if I was able to enter the proper command mode, I suspect the supplied name would no be used during the DHCP phase...

  0      
  0      
#1
Options