How to Change Cisco Router Name in GNS3
By changing the device names of your Router or Switch in your network topology, you can avoid complexity and have a more detailed network design.
How to Use the Hostname Command in Router
In a growing network, configuring the names of devices according to their location prevents both complexity and faster resolution of network errors that may occur.
For example, suppose your headquarters is named A, and you have branches in 2 different cities. When you define these cities as B and C, you can have a more organized structure by changing the name of the Router in center A to ARouter.
Now, to change the label of a Router on the network, open your GNS3 simulator, and create a new project and then add a Router to the workspace.
After running your router in GNS3, double-click on it to open the CLI prompt.
At the CLI prompt, the router’s title will default to R1#. When you add one or more devices to the working environment, the device’s name will be named R2, R3, R4.
At the CLI prompt, execute the Configure Terminal command to switch to Global Configuration Mode, and then use the hostname + (name) command to rename the Router.
R1# configure terminal R1(config)# hostname ? R1(config)# hostname ARouter
To learn how to use the hostname command in the CLI, use the ” ? ” character. Note that this command only works in config mode!
How to Change Cisco Router Hostname ⇒ Video
To rename a Router or Switch on GNS3, you can watch the video below and also subscribe to our YouTube channel to support us!
Final Word
In this article, we have examined how to use the hostname command, which is the easiest setting to configure on a network device, but which causes trouble in a growing network. Thanks for following us!
Related Articles
TolgaBagci
Hi, I’m Tolga, a computer expert with 20 years of experience. I help fix computer issues with things like hardware, systems, networks, virtualization, servers, and operating systems. Check out my website for helpful info, and feel free to ask me anything. Keep yourself in the loop about the newest technologies!
Артём Санников
Данная книга является руководством для начинающих специалистов в области анализа и обработки данных. В книге рассматривается язык SQL и его процедурное расширение PL/SQL от компании Oracle.
Главная › Cisco › Cisco Packet Tracer › Присвоение имени коммутатору. Cisco packet tracer.
Присвоение имени коммутатору. Cisco packet tracer.
Чтобы присвоить имя коммутатору, необходимо выполнить команду hostname в CLI.
Switch> enable //переходим в привилегированный режим EXEC
Switch# configure terminal // переходим в режим глобальной конфигурации
Switch(config)# hostname S1 //присваиваем имя S1 текущему коммутатору
S1(config)# exit //выходим из режима настроек
S1#
Результат выполнения команды hostname.
Записи по теме
- Запрет на передачу данных для MAC-адресов. Cisco packet tracer.
- Запись MAC-адреса в рабочую конфигурацию. Cisco packet tracer.
- Время старения MAC-адреса. Cisco packet tracer.
- Количество MAC-адресов на порт устройства. Cisco packet tracer.
- Активация функции port-security. Cisco packet tracer.
- Исключение IP-адреса из пула DHCP. Cisco packet tracer.
- Адрес домена для пула DHCP. Cisco packet tracer.
- Срок аренды IP-адреса для пула DHCP. Cisco packet tracer.
Configuring Hostname on a Cisco Router
One of the first things you want to configure on a router or a switch is the hostname. Although it is mainly important to us administrators (so we can identify our devices easier), the hostname can be used to authenticate one router to another as well, but I’ll talk about that in another post.
configuration
The default name for routers is Router and the default name for switches is … Yes, you guessed right, it is Switch! Now lets rename our router to R1. The command we need is hosname folowed by the desired hostname (in this case R1):
Router>enable Router#conf terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#exit R1# *Mar 1 00:07:14: %SYS-5-CONFIG_I: Configured from console by console R1#copy running-config startup-config Destination filename [startup-config]? Building configuration. [OK] R1#
The official documentation states that a hostname cannot be longer than 63 characters, must start with a letter and end with a letter or digit. Hyphen is accepted as internal character only. In reality you could start and finish the hostname with either a letter, a digit, a hyphen or an underscore. It’s up to you, but the best practice is to keep it short and simple.
commands explained
Commands used with a brief explanation.
enable : Moves the user from User mode to Privileged mode
conf terminal : Moves the user into Global Configuration mode. This is where you can make changes to the configuration
hostname R1 : Sets the hostname to R1
exit : Moves you back one level. In this case back to Privileged mode
copy running-config startup-config : Saves the running configuration into the startup configuration
Destination filename [startup-config]? : Verifies the destination file name. Just press ENTER!
Артём Санников
Данная книга является руководством для начинающих специалистов в области анализа и обработки данных. В книге рассматривается язык SQL и его процедурное расширение PL/SQL от компании Oracle.
Главная › Cisco › Cisco Packet Tracer › Присвоение имени для VLAN. Cisco packet tracer.
Присвоение имени для VLAN. Cisco packet tracer.
Команда name или na позволяет присвоить имя нужному VLAN.
Switch>en // Привилегированный режим EXEC
Switch#conf t // Режим глобальной конфигурации
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2 // Объявляем новый VLAN под номером 2
Switch(config-vlan)#name vlan2-voice // Присваиваем имя vlan2-voice
Записи по теме
- Запрет на передачу данных для MAC-адресов. Cisco packet tracer.
- Запись MAC-адреса в рабочую конфигурацию. Cisco packet tracer.
- Время старения MAC-адреса. Cisco packet tracer.
- Количество MAC-адресов на порт устройства. Cisco packet tracer.
- Активация функции port-security. Cisco packet tracer.
- Исключение IP-адреса из пула DHCP. Cisco packet tracer.
- Адрес домена для пула DHCP. Cisco packet tracer.
- Срок аренды IP-адреса для пула DHCP. Cisco packet tracer.