82
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
clear ip ospf neighbor
clear ip ospf neighbor
To clear neighbor statistics and reset adjacencies for Open Shortest Path First (OSPF), use the clear ip
ospf neighbor command.
clear ip ospf [instance-tag] neighbor {* | neighbor-id | interface-type number | loopback number |
port-channel number} [vrf vrf-name]
Syntax Description
Command Default None
Command Modes Any command mode
Command History
Usage Guidelines Use the clear ip ospf neighbor command to clear neighbor information from the show ip ospf neighbor
command. Use the instance-tag argument to clear the neighbor details from one OSPF instance. If you
do not use the instance-tag argument, Cisco NX-OS clears the neighbor details from all OSPF instances.
Use the show ip ospf neighbor command to find the neighbor ID.
This command requires the LAN Base Services license.
Examples This example shows how to clear all OSPF neighbor details for neighbor 192.0.2.1 for instance tag 201:
switch# clear ip ospf 201 neighbor 192.0.2.1
This example shows how to clear all OSPF neighbor details for all OSPF instances:
switch# clear ip ospf neighbor *
This example shows how to clear all OSPF neighbor details for all neighbors on Ethernet interface 1/2
for OSPF instance 202:
instance-tag (Optional) Instance tag. Specify as an alphanumeric string of up to 20
characters.
* Clears all neighbors.
neighbor-id Neighbor ID (as an IP address) of the neighbor to clear.
interface-type
number
Interface from which to clear all neighbors.
loopback number Clears all neighbors on a loopback interface.
port-channel number Clears all neighbors on a port-channel interface.
vrf vrf-name (Optional) Specifies the name of the OSPF virtual routing and
forwarding (VRF) instance. The vrf-name argument can be any
alphanumeric string of up to 32 characters, except “default” and “all”.
Release Modification
5.0(3)A1(1) This command was introduced.