2.1.8. hostname

Syntax

hostname WORD

Parameter


WORD Specify the hostname of the switch.


Default

Default name string is “Switch”.

Mode

Global Configuration

Usage

Use hostname command to modify hostname of the switch. The system name is also used to be CLI prompt.

Example

This example shows how to modify contact information

Switch(config)# hostname myname
myname(config)#