Setting hostname on a switch

Hostname is very important if there are hundreds of switches in the network.

Hostname is provided to a switch so that we can identify it. Hostname has to manually configure on a switch.

By default, hostname of a switch is Switch>


Below are some of the rules for configuring hostname on a switch.
– It must always start with a letter
– It should end with a letter or digit
– It can be upto 63 characters

Configuring hostname on a Switch

Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Access_Switch

Using show running configuration to check hostname of a switch.

Access_Switch#show running-config | i hostname
hostname Access_Switch

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s