Customizing chassis and host names

To customize the chassis name and host name, perform the following steps:
  1. In privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Configure the chassis name.
    device(config)# switch-attributes chassis-name SLX-market1
    A chassis name can be from 1 through 30 characters long, must begin with a letter, and can contain letters, numbers, and underscore characters.

    The default chassis name is SLX<model> where model is the model name of the chassis.

  3. Configure the host name.
    device(config)# switch-attributes host-name SLX-mrkt
    SLX-mrkt(config)#
    This example changes the host name to SLX-mrkt and it is displayed in the prompt.
    A host name can be from 1 through 30 characters long. It must begin with a letter, and can contain letters, numbers, and underscore characters. The default host name is SLX.
  4. Exit global configuration mode.
    SLX-mrkt(config)# exit
  5. Verify the configuration.
    SLX-mrkt# show running-config switch-attributes
    switch-attributes chassis-name SLX-market1
    switch-attributes host-name SLX-mrkt
    !

Example

The following configuration is an example of the previous steps.

device# configure terminal
device(config)# switch-attributes chassis-name SLX-market1
device(config)# switch-attributes host-name SLX-mrkt
SLX-mrkt(config)#