The command is simply hostname, space, and then you go ahead and type whatever the name is that you would like to give to your router. Router host names can be up to 63 characters, they have to start and end with a letter, or a number, and they can only contain letters, digits, or a hyphen.
![basic router configuration commands basic router configuration commands](https://www.certificationkits.com/assets/images/stories/cisco-ccna/ch-2-2-configuring-interfaces/cisco-ccna-router-configuration-03.jpg)
A best practice is to have a unique name that helps you keep track of the router and if you have multiple routers you're configuring at the same time, then you will know which router that you're on at any given point because of the unique name that you have assigned to that device. You can see right now, in front of the parentheses, the router is just simply called Router, and that's not really a best practice. And this command is used to change the name of the router. The host name command, if you scroll up you'll see it is one of the commands in the command line list at this level. The command that I'm going to do now is the host name command.
![basic router configuration commands basic router configuration commands](https://docplayer.net/docs-images/43/15031441/images/page_8.jpg)
Or as I remind you, you can hit the spacebar, which takes you on full screen at a time. I can hit, again, the enter key, which takes me down one line at a time. And you can hit the question mark, and these are all of the global configuration commands, so again, these are commands that will change some aspect of the router, but affects the whole router and not some sub-aspect, like an interface or a different line on the router. And the first command that is part of the global configuration group, and again, you can see the commands available at this level by going ahead and typing config from the terminal, and I just use the tab key to bring up the full command. That means these commands are configurations that will change or affect the whole entire router.
![basic router configuration commands basic router configuration commands](https://media.cheggcdn.com/media%2F1ae%2F1aeb3022-29cb-4029-beae-22f73775f4ba%2FphpIdIVit.png)
BASIC ROUTER CONFIGURATION COMMANDS HOW TO
What I'm going to show you now is how to do the basic configuration command setter at the global config level.