How to configure Hostname in Cisco Switches and Router
If you want to configure on a router or a switch is the hostname. The default name for routers is Router and the default name for switches is Switch. To configure the hostname for the switch, use the hostname command:- Router>enableRouter# configure terminalRouter(config)# hostname TESTTEST(config)# endTEST(config)# copy running-config startup-config