How to Configure the Hostname on Cisco IOS XE
The command for setting the hostname on Cisco IOS XE.
Cisco IOS XE Hostname Configuration
hostname [HOSTNAME]| Field | Value |
|---|---|
| [HOSTNAME] | Specify the hostname to set |
Example: Changing the Cisco IOS XE Hostname
This example changes the hostname from Router to IOS-XE.
Unlike IOS XR, IOS XE does not require a commit — the prompt changes from Router to IOS-XE immediately after the command is entered.
Hostname Change Example
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname IOS-XE
IOS-XE(config)#end
IOS-XE#