11-09-2011 10:02 PM - last edited on 03-25-2019 04:17 PM by ciscomoderator
Hi all
I was trying to give the following host name to my 3925 router.Iht comes up with the following error.
DRT0(config)#hostname DRT#0
% Hostname contains one or more illegal characters.
% Hostname "DRT#0" is not a legal LAT node name, Using "CISCO_000000"
DRT#0(config)#
Nov 10 12:59:02: %CNS-3-WARNING: CNS ID not changed: bad hostname -Process= "Exec", ipl= 0, pid= 15
Nov 10 12:59:02: %CNS-3-WARNING: CNS ID not changed: bad hostname -Process= "Exec", ipl= 0, pid= 15
Nov 10 12:59:02: %CNS-3-WARNING: CNS ID not changed: bad hostname -Process= "Exec", ipl= 0, pid= 15
the IOS is "VVersion 15.1(4)M1"
Any suggestions on this issue?
Ullas
11-09-2011 10:45 PM
hi ullas,
you may want to re-assign another hostname without the "#" or just ignore the error message since it's non service impacting.
11-09-2011 11:20 PM
Correct,
# symbol is not smth this commands is expecting according to guide:
The name must also follow the rules for ARPANET host names. They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphens. Names must be 63 characters or fewer. A host name of less than 10 characters is recommended. For more information, refer to RFC 1035, Domain Names—Implementation and Specification.
The other thing is that it as decided to apply some those names as happening in your case. But some time it might chage it - e.g. if name is longer than 16 characters - console will truncate it.
Nik
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