The following command is used to change the hostname of a Cisco router or switch.
Router(config)#hostname NewYork - Change the system's network name to NewYork
About Internetwork Training
Internetwork Training specialize in CCNA training online.
To watch some free training videos, get a free study guide, plus loads more tips and information geared towards getting your Cisco certification sign-up here.