Clear IP OSPF Process Command on CISCO Router/Switch

Command

Clear IP OSPF Process

Use

Reloads the ospf process.

Syntax

Router#clear ip ospf process

Example

Clear IP OSPF Process Command on CISCO Router/Switch 1

In this example, the OSPF process is reloaded on R1. Before changing anything, here is the OSPF information on R2.

R2(config-router)#do show ip ospf neighNeighbor ID Pri State Dead Time Address Interface
133.133.133.133 1 FULL/DR 00:00:39 10.2.2.3 FastEthernet1/0
111.111.111.111 1 FULL/DR 00:00:39 10.1.1.1 FastEthernet0/0

Next, the router-id for R1 is changed to 1.1.1.1. Notice that a warning to “clear ip ospf process” is displayed.

R1(config-router)#router-id 1.1.1.1
Reload or use “clear ip ospf process” command, for this to take effect

After that, the IP OSPF process is reloaded on R1.

R1(config-router)#do clear ip ospf process
Reset ALL OSPF processes? [no]: yes
R1(config-router)#
*Mar 1 00:29:57.307: %OSPF-5-ADJCHG: Process 1, Nbr 10.4.4.4 on Serial1/1 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 1 00:29:57.315: %OSPF-5-ADJCHG: Process 1, Nbr 133.133.133.133 on Serial1/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 1 00:29:57.323: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Mar 1 00:29:57.623: %OSPF-5-ADJCHG: Process 1, Nbr 133.133.133.133 on Serial1/0 from LOADING to FULL, Loading Done
*Mar 1 00:29:57.627: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done
R1(config-router)#
*Mar 1 00:29:57.635: %OSPF-5-ADJCHG: Process 1, Nbr 10.4.4.4 on Serial1/1 from LOADING to FULL, Loading Done

Finally, after reloading the OSPF process on R1, the OSPF information is changed on R2.

R2(config-router)#do show ip ospf neighNeighbor ID Pri State Dead Time Address Interface
133.133.133.133 1 FULL/DR 00:00:39 10.2.2.3 FastEthernet1/0
1.1.1.1 1 FULL/BDR 00:00:39 10.1.1.1 FastEthernet0/0
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x