beautypg.com

Clearing ospf information, Clearing ospf neighbors, Disabling and re-enabling the ospf process – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual

Page 316: Clearing ospf routes

background image

The show ip ospf command displays LSAs that have been configured with a maximum metric.

Clearing OSPF information

You can use the clear ip ospf commands to clear OSPF data on an router as described in the
following:

• Neighbor information
• Reset the OSPF process
• Clear and re-add OSPF routes

Clearing OSPF neighbors

You can use the following command to delete and relearn all OSPF neighbors, all OSPF neighbors for
a specified interface or a specified OSPF neighbor.

device# clear ip ospf neighbor all

Syntax: clear ip ospf [ vrf vrf-name ] neighbor all [ interface ] | interface | ip-address [ interface ]

Selecting the all option without specifying an interface clears all of the OSPF neighbors on the router.

The interface variable specifies the interface that you want to clear all of the OSPF neighbors on. The
following types of interfaces can be specified:

ethernet slot/port
tunnel tunnel-ID
veve-ID

The ip-address variable allows you to clear a specific OSPF neighbor.

Disabling and re-enabling the OSPF process

You can use the following command to disable and re-enable the OSPF process on a router.

device# clear ip ospf all

Syntax: clear ip ospf [ vrf vrf-name ] all

This command resets the OSPF process and brings it back up after releasing all memory used while
retaining all configurations.

Clearing OSPF routes

You can use the following command to clear all OSPF routes or to clear a specific OSPF route.

device# clear ip ospf routes all

Syntax: clear ip ospf [ vrf vrf-name ] routes { all | ip-address/prefix-length }

Selecting the all option resets the OSPF routes including external routes, and OSPF internal routes.

The ip-address and prefix-length variables specify a particular route to delete and then reschedules
the SPF calculation.

Clearing OSPF information

316

FastIron Ethernet Switch Layer 3 Routing Configuration Guide

53-1003087-04