The hostname is used to identify the switch on the network, and it is displayed in the command prompt. You can choose any hostname that is meaningful to you, as long as it meets the naming conventions for network devices, which usually require the hostname to start with a letter and consist of alphanumeric characters.
To configure the hostname on a Cisco switch, follow these steps:
- Connect to the switch via a console or Telnet connection and log in with your credentials.
- Enter configuration mode by typing
configure terminal
:
switch> configure terminal
Set the hostname with the following command:
switch(config)# hostname
Replace
with the desired hostname.
- To make the change persistent across reboots, save the configuration:
switch(config)# end
switch# copy running-config startup-config
- Verify the new hostname with the
show running-config
command:
switch# show running-config | include hostname
Categories
- Indian TV Channels (DTH & Cable TV)
- Telecom News
- Dishtv DTH
- Airtel Digital TV
- Tata Sky
- DTH & Cable TV
- DD Free Dish
- Shopping & Recharge Offers
- Mobile & Tablets
- Computer Networking Tutorials
- Indian TV Channels
- Computer Hardware Tutorials
- Videocon D2H
- Windows Operating System Tutorials
- TV Channel Numbers
- Sun Direct DTH
- Mobile Applications
- Smartphones
- Cisco CCNA Tutorials
- Viral on Internet
- Jio TV
- Live TV
- Technology Facts