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

IOS XR Hostname Configuration (hostname)

Table of Contents

How to Configure the Hostname on Cisco IOS XR

The command for setting the hostname on Cisco IOS XR.

Cisco IOS XR Hostname Configuration
hostname [HOSTNAME]
FieldValue
[HOSTNAME]Specify the hostname to set

Example: Changing the Cisco IOS XR Hostname

This example changes the hostname from ios to IOS-XR. After the commit, you can see the prompt change from ios to IOS-XR.

Hostname Change Example
RP/0/RP0/CPU0:ios#configure
Sat Aug  1 09:33:37.759 UTC
RP/0/RP0/CPU0:ios(config)#hostname IOS-XR
RP/0/RP0/CPU0:ios(config)#commit
Sat Aug  1 09:33:45.834 UTC
RP/0/RP0/CPU0:IOS-XR(config)#end
RP/0/RP0/CPU0:IOS-XR#

Related Articles

IOS XR Basic Configuration