"Commit Replace" Command in Cisco IOS XR

Document

Aug 31, 2014 6:54 AM
Nov 23rd, 2013

Introduction:

Command syntax of IOS XR is different than classis cisco IOS .In this document you will learn about “commit replace” command use in IOS XR.

As you know “write  erase” command uses in IOS to wipe out entire configuration, similarly to wipe out entire running configuration in IOS XR you need to use “commit replace” command.

 

Configuration Example:

Here is a running configuration I have in router running IOS XR.

RP/0/0/CPU0:PE1#sh run

Sat Nov 23 22:36:27.493 TLT

Building configuration...

!! IOS XR Configuration 0.0.0

!! Last configuration change at Sat Nov 23 22:30:37 2013 by

!

hostname PE1

logging console debugging

service timestamps

interface Loopback0

ipv4 address 1.1.1.1 255.255.255.255

!

interface GigabitEthernet0/0/0/0

shutdown

!

interface GigabitEthernet0/0/0/1

ipv4 address 10.1.1.1 255.255.255.252

!

interface GigabitEthernet0/0/0/2

shutdown

!

interface GigabitEthernet0/0/0/3

shutdown

!

interface GigabitEthernet0/0/0/4

mtu 1514

l2transport

!

router ospf 100

router-id 1.1.1.1

area 0

mpls ldp auto-config

interface Loopback0

!

interface GigabitEthernet0/0/0/1

!

l2vpn

!

pw-class ETH_TO_PPP

encapsulation mpls

!

xconnect group GRP1

p2p GRP2

   interface GigabitEthernet0/0/0/4

   neighbor 2.2.2.2 pw-id 200

   pw-class ETH_TO_PPP

   !

   interworking ipv4

!

mpls ldp

router-id 1.1.1.1

interface GigabitEthernet0/0/0/1

!

end

 

RP/0/0/CPU0:PE1#

 

Now to erase entire configuration you need to use “commit replace” command:

RP/0/0/CPU0:PE1#

RP/0/0/CPU0:PE1#conf t

Sat Nov 23 23:01:30.350 TLT

RP/0/0/CPU0:PE1(config)#commit replace

Sat Nov 23 23:01:39.447 TLT

 

This commit will replace or remove the entire running configuration. This

operation can be service affecting.

Do you wish to proceed? [no]: yes

RP/0/0/CPU0:ios(config)#exit

 

Now let’s see what we have in running configuration:

 

RP/0/0/CPU0:ios#sh run

Sat Nov 23 23:01:55.075 TLT

Building configuration...

!! IOS XR Configuration 0.0.0

!! Last configuration change at Sat Nov 23 23:01:45 2013 by UNKNOWN

!

end

 

RP/0/0/CPU0:ios#

 

You can see all configuration has been wipe out.

Please read more about “commit” commands in command reference before you apply any command on live router

Source Information:

Qestion about clear configuration under IOS XR

ERASE START UP CONFIG XR

Actions

This Document