02-07-2017 06:24 AM - edited 03-08-2019 09:13 AM
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.
02-07-2017 06:54 AM
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**
02-07-2017 06:08 PM
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.
:-)
02-08-2017 06:22 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide