To change the name of a Cisco network switch, you can use
the command hostname newHostname
where
newHostname is the new name you wish to apply to the switch. To
make the change permanent so the new name is still in place after a reboot,
you can follow the command with the write memory
command.
Switch> Switch>enable Password: Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname Styx Styx(config)#end Styx# *Sep 23 01:14:23.917: %SYS-5-CONFIG_I: Configured from console by console Styx#write memory Building configuration... [OK] Styx#