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.
Here is a running configuration I have in router running IOS XR.
Sat Nov 23 22:36:27.493 TLT
!! IOS XR Configuration 0.0.0
!! Last configuration change at Sat Nov 23 22:30:37 2013 by
logging console debugging
ipv4 address 184.108.40.206 255.255.255.255
ipv4 address 10.1.1.1 255.255.255.252
router ospf 100
mpls ldp auto-config
xconnect group GRP1
neighbor 220.127.116.11 pw-id 200
Now to erase entire configuration you need to use “commit replace” command:
Sat Nov 23 23:01:30.350 TLT
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
Now let’s see what we have in running configuration:
Sat Nov 23 23:01:55.075 TLT
!! Last configuration change at Sat Nov 23 23:01:45 2013 by UNKNOWN
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
Qestion about clear configuration under IOS XR
ERASE START UP CONFIG XR