Skip to main content
  1. Router and Switch Articles/
  2. IOS-XE/

IOS XE Hostname Configuration (hostname)

Table of Contents

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]
FieldValue
[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#

Related Articles