メインコンテンツへスキップ
  1. Router および Switch 関連記事一覧/
  2. IOS-XR/

IOS XR Config 初期化

IOS XR Config 初期化

configure後にcommit replaceすることで running-config を空の状態にし、Config をリセットすることができます。 実行前にDo you wish to proceed? [no]:の確認があり、y を入力することで実行されます。

Cisco IOS XR Config 初期手順
configure
commit replace

IOS XR Config 初期化 実行例

Cisco IOS XR Config 初期手順実行例
RP/0/RP0/CPU0:xr01#show running-config hostname
Sun Aug  2 02:48:34.609 UTC
! IOS XRv 9000 Config generated on 2026-08-02 00:49
! by ank-ng
hostname xr01

RP/0/RP0/CPU0:xr01#configure
Sun Aug  2 02:48:43.740 UTC

!!! configure で mode 変更後に commit replace することで空のconfigに置き換え(replace)される

RP/0/RP0/CPU0:xr01(config)#commit replace
Sun Aug  2 02:48:56.029 UTC

This commit will replace or remove the entire running configuration. This
operation can be service affecting.
Do you wish to proceed? [no]: y
RP/0/RP0/CPU0:Aug  2 02:49:03.930 UTC: ifmgr[237]: %PKT_INFRA-LINK-3-UPDOWN : Interface MgmtEth0/RP0/CPU0/0, changed state to Down
RP/0/RP0/CPU0:Aug  2 02:49:04.970 UTC: ifmgr[237]: %PKT_INFRA-LINK-3-UPDOWN : Interface MgmtEth0/RP0/CPU0/0, changed state to Up

!!!! しばらくするとConfigが初期化状態となり、プロンプトが初期のiosに変化する

RP/0/RP0/CPU0:ios(config)#
RP/0/RP0/CPU0:ios(config)#end
RP/0/RP0/CPU0:ios#show running-config
Sun Aug  2 02:50:10.385 UTC
!! Building configuration...
!! IOS XR Configuration 26.1.1
!! Last configuration change at Sun Aug  2 02:49:02 2026 by cisco
!
end

RP/0/RP0/CPU0:ios#