setting hostname and setting prompt IOS/Cat0S

Answered Question
Feb 21st, 2008

As I am more familiar with IOS-i was trying to set the hostname on a cataylst2948 to xry.1

However after doing some research-I came

across the set system name command

and the set system prompt commmnd

I also noticed that this option was available for IOS-

CatOS:

Console> (enable) set system name Switch-A-SJ1

System name set.

Switch-A-SJ1> (enable)

Cisco IOS:

Router(config)#hostname Switch-A-SJ1

Switch-A-SJ1(config)

CatOS:

Switch-A-SJ1> (enable) set prompt Switch-A>

Switch-A> (enable)

Cisco IOS:

Switch-A-SJ1(config)#prompt Switch-A>

Switch-A-SJ1(config)#exit

Switch-A>

what is the difference in these...and

what is the benefit?

I tried the set system name command first,

however the hostname did not change on my cat0S. This is becuse there was a set system

prompt entry in the config. Will the prompt

always override this?

http://www.cisco.com/en/US/products/hw/switches/ps700/products_tech_note09186a00801aecbb.shtml

I have this problem too.
0 votes
Correct Answer by Richard Burts about 8 years 11 months ago

Richard

For an insight into the difference I suggest that you connect another Cisco device to the router or switch on which you have differing host name and prompt, run CDP, and look at CDP neighbor from the other Cisco device. Or run something that will pull SNMP data from the router.

System name is what the router or switch will use as it identifies itself to other devices. And by default the prompt will also be generated from the system name. But you have an alternative to set the prompt to be something different if you wish to do that.

HTH

Rick

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Richard Burts Thu, 02/21/2008 - 14:52

Richard

For an insight into the difference I suggest that you connect another Cisco device to the router or switch on which you have differing host name and prompt, run CDP, and look at CDP neighbor from the other Cisco device. Or run something that will pull SNMP data from the router.

System name is what the router or switch will use as it identifies itself to other devices. And by default the prompt will also be generated from the system name. But you have an alternative to set the prompt to be something different if you wish to do that.

HTH

Rick

Richard Burts Fri, 02/22/2008 - 07:55

Richard

I am glad that my answer was helpful. Thank you for using the rating system to indicate that your question was resolved (and thanks for the rating). It makes the forum more useful when people can read questions and can know that they will read answers that successfully resolved the question.

The forum is an excellent place to learn about Cisco networking. I encourage you to continue your participation in the forum.

HTH

Rick

Actions

This Discussion