(Answer) (Category) Cisco CCIE Certification and CCNP Certification FAQs :
How do I override the hostname prompt?
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ffun_r/ffrprt3/frf012.htm#1025639
sean@ertw.com
Start off with no hostname configured:

 Router#

Set a hostname:

 Router(config)#hostname r0
 r0(config)#exit
 r0#

Note that both the main prompt, and the config prompt say "r0"

Set the prompt with "prompt"

 r0#conf t
 Enter configuration commands, one per line.  End with CNTL/Z.
 r0(config)#prompt Your_Wish#
 r0(config)#exit
 Your_Wish#

"Your Wish#" overrides the main prompt, not the configure prompt.
sean@ertw.com

You can use variables to customize the prompt (from doccd)

%h - Host name. This is either Router or the name defined with the hostname global configuration command.
%n - Physical terminal line (tty) number of the EXEC user.
%p - Prompt character itself. It is either an angle bracket (>) for user EXEC mode or a pound sign (#) for privileged EXEC mode.
%s - Space.
%t - Tab.
%% - Percent sign (%)
sean@ertw.com

[Append to This Answer]
Previous: (Answer) How do I make the router return an error message when a connection fails?
Next: (Answer) Why do I see port 0 in my access-list logs?
This document is: http://ertw.com/cgi-bin/fom?file=53
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ...