Command
Hostname
Use
Sets the hostname of the router.
Syntax
Router(config)#hostname <WORD>
Example
In the below example the hostname command is used to change the router name.
R1(config)#hostname TEST TEST(config)#hostname R1 R1(config)#
Hostname
Sets the hostname of the router.
Router(config)#hostname <WORD>
In the below example the hostname command is used to change the router name.
R1(config)#hostname TEST TEST(config)#hostname R1 R1(config)#