In which CLI configuration mode can you configure the hostname of a device?
Click on the arrows to vote for the correct answerA. B. C. D.
The correct answer is C. global mode.
Global configuration mode is a privileged mode in Cisco IOS that allows the configuration of system-wide parameters. It is the mode in which the hostname of a device can be configured.
To access global configuration mode, you need to enter the "configure terminal" command from the privileged EXEC mode. Once in global configuration mode, you can configure various parameters such as the hostname, interfaces, routing protocols, security settings, and more.
To configure the hostname of a device, use the following command in global configuration mode:
Where <name> is the desired hostname for the device. The hostname is used to identify the device in the network and should be unique.
For example, to configure the hostname of a device as "Router1", enter the following command in global configuration mode:
Router1(config)# hostname Router1
After configuring the hostname, you can verify it by entering the "show running-config" command or the "show hostname" command.
In summary, the CLI configuration mode in which you can configure the hostname of a device is global mode.