clear ipv6 ospf

Clears OSPFv3 data processes, graceful restart, counters, force-spf, neighbors, redistribution, routes, and traffic.

Syntax

clear ipv6 ospf all [ vrf vrf-name ]
clear ipv6 ospf graceful-restart { vrf vrf-name | all-vrf }
clear ipv6 ospf counts [ vrf vrf-name ]
clear ipv6 ospf counts neighbor A.B.C.D [ vrf vrf-name ]
clear ipv6 ospf counts neighbor interface { ethernet slot/port | loopback number | port-channel number | ve vlan_id } [ A.B.C.D ]
clear ipv6 ospf { force-spf | redistribution | traffic } [ vrf vrf-name ]
clear ipv6 ospf neighbor A.B.C.D [ vrf vrf-name ]
clear ipv6 ospf neighbor all [ vrf vrf-name ]
clear ipv6 ospf neighbor interface { ethernet slot/port | loopback number | port-channel number | ve vlan_id } [ A.B.C.D ]
clear ipv6 ospf routes { IPv6addr | all } [ vrf vrf-name ]

Parameters

all
Clears all OSPFv3 data.
gr vrf-name
Gracefully restarts the OSPFv3 session for the specified VRF. If no VRF is specified, the default-vrf session is restarted.
counts
Clears OSPFv3 counters.
neighbor
Clears all OSPFv3 counters for a specified neighbor.
A.B.C.D
Specifies a neighbor.
vrf vrf-name
Specifies a VRF.
interface
Specifies an interface.
ethernet slot / port
Specifies an Ethernet slot and port.
loopback number
Specifies a loopback interface. Valid values range from 1 through 255.
port-channel number
Specifies a port-channel.
ve vlan_id
Specifies a virtual Ethernet (VE) interface. Valid values range from 1 through 4096.
force-spf
Performs the shortest path first (SPF) calculation without clearing the OSPFv3 database.
redistribution
Clears OSPFv3 redistributed routes.
traffic
Clears OSPFv3 traffic statistics.
routes
Clears OSPFv3 routes.

Modes

Privileged EXEC mode

Usage Guidelines

Use the force-spf keyword to perform the shortest path first (SPF) calculation without clearing the OSPFv3 database.

Examples

The following example restarts the OSPFv3 processes.

device# clear ipv6 ospf all
 

The following example clears all OSPFv3 counters for a specified neighbor.

device# clear ipv6 ospf counts neighbor 10.10.10.1

This example gracefully restarts the OSPFv3 session for the VRF named "red."

device# clear ipv6 ospf gr red