cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1645
Views
0
Helpful
3
Replies

Hostname with number at end

mark.graves
Level 1
Level 1

I have noticed that the setup information for switches states on step 2 that "Do not use -n, where n is a number, as the last character in a host name for any switch".  I cannot locate a reason why this is not valid or what the effect is when using a number at the end.  I would like to know why this is listed and what are the consequences of using -n at the end of the name. 

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Hi

:) All my switches/routers ios/ios-xe and nx-os end with a number as I have so many in so many cabs/racks etc , that I have to use numbers in our hostnames to distinguish them in the naming convention  , theres no issue in using them that I have ever seen in 10 years of using Cisco routers and switches , why exactly they listed it you would need to speak to someone on BU in Cisco find out why they have it set like that maybe originally on some versions of ios it was a limitation and just was never removed even when it was not there anymore , that wouldn't be the first time , the only thing they release to the public on passwords is what your seeing on the screen shot you posted

That deos not appear by the way when you don't go through the help system to setup , if you go straight to cli you can type what you want but it is limited to length etc

**Please rate helpful posts**

Totally agree with Mark, I have hostnames with numbers at the end and no issues at all. Also I remember the hosts allow 16 characters only including numbers, maybe the size  was increased for new images. 
:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Joseph W. Doherty
Hall of Fame
Hall of Fame

Ah, but these setup instructions appear to be specific to a stackable switch.  I would guess setup is telling you to not create a hostname with "hyphen digit" suffix because there are probably some informational displays and/or possibly CLI commands that use that kind of suffix (or future plans to do so) to refer to a specific stack member.