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