Table Of Contents
C Commands
clear bgp
clear bgp dampening
clear bgp flap-statistics
clear forwarding route
clear ip adjacency statistics
clear ip arp
clear ip bgp
clear ip bgp dampening
clear ip bgp flap-statistics
clear ip eigrp accounting
clear ip eigrp neighbors
clear ip eigrp policy statistics redistribute
clear ip eigrp route-map statistics redistribute
clear ip eigrp traffic
clear ip interface statistics
clear ip mbgp
clear ip mbgp dampening
clear ip mbgp flap-statistics
clear ip ospf neighbor
clear ip ospf policy statistics
clear ip ospf statistics
clear ip ospf traffic
clear ip rip policy statistics redistribute
clear ip rip statistics
clear ip route
clear ip traffic
clear ipv6 adjacency statistics
clear ipv6 icmp interface statistics
clear ipv6 nd interface statistics
clear ipv6 neighbor
clear ipv6 rip policy statistics redistribute
clear ipv6 rip statistics
clear ipv6 route
clear ipv6 traffic
clear ospfv3 neighbor
clear ospfv3 policy statistics
clear ospfv3 statistics
clear ospfv3 traffic
clear route-map pbr-statistics
confederation
C Commands
This chapter describes the Cisco NX-OS unicast routing commands that begin with the letter C.
clear bgp
To clear Border Gateway Protocol (BGP) routes from the BGP table, use the clear bgp command.
clear bgp {{ipv4 | ipv6} {unicast | multicast} | all} {neighbor | * | as-number | peer-template
name | prefix} [vrf vrf-name]
Syntax Description
ipv4
|
(Optional) Clear BGP information for IPv4 address family.
|
ipv6
|
(Optional) Clear BGP information for IPv6 address family.
|
unicast
|
Clears BGP information for unicast address family.
|
multicast
|
Clears BGP information for multicast address family.
|
all
|
(Optional) Clear BGP information for all address families.
|
neighbor
|
A network address. The format is A.B.C.D for IPv4 and A:B::C:D for IPv6.
|
as-number
|
Autonomous system number. The range is from 1 to 65535.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
peer-template name
|
Specifies a BGP peer template. The name can be any case-sensitive alphanumeric string up to 64 characters.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4 and A:B::C:D/length for IPv6.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
4.0(3)
|
Added support for IPv6 prefixes.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear all BGP entries:
clear bgp dampening
To clear Border Gateway Protocol (BGP) route flap dampening information, use the clear bgp dampening command.
clear bgp {{ipv4 | ipv6} {unicast | multicast} | all} dampening [neighbor | prefix] [vrf vrf-name]
Syntax Description
ipv4
|
(Optional) Clears BGP information for IPv4 address family.
|
ipv6
|
(Optional) Clears BGP information for IPv6 address family.
|
unicast
|
Clears BGP information for unicast address family.
|
multicast
|
Clears BGP information for multicast address family.
|
all
|
(Optional) Clears BGP information for all address families.
|
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear BGP route flap dampening information:
switch# clear bgp all dampening
clear bgp flap-statistics
To clear Border Gateway Protocol (BGP) route flap statistics, use the clear bgp flap-statistics command.
clear bgp flap-statistics [neighbor | prefix] [vrf vrf-name]
Syntax Description
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear BGP route flap statistics:
switch# clear bgp flap-statistics
clear forwarding route
To clear forwarding information, use the clear forwarding route command.
clear forwarding {ip | ipv4 | ipv6} route [* | prefix] [vrf vrf-name]
Syntax Description
ip
|
Clears an IPv4 route.
|
ipv4
|
Clears an IPv4 route.
|
ipv6
|
Clears an IPv6 route.
|
*
|
Clears all routes.
|
prefix
|
An IPv4 or IPv6 prefix. The IPv4 format is x.x.x.x/length. The IPv6 format is A:B::C:D/length.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(3)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
The following example clears a route from the FIB:
switch# clear forwarding ip 10.0.0.1/8
clear ip adjacency statistics
To clear adjacency statistics, use the clear ip adjacency statistics command.
clear ip adjacency statistics
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
Any command mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example clears the adjacency statistics:
switch# clear ip adjacency statistics
Related Commands
Command
|
Description
|
show ip adjacency
|
Displays adjacency information.
|
clear ip arp
To clear the Address Resolution Protocol (ARP) information, use the show ip arp command.
show ip arp [ip-addr | interface] [statistics] [vrf vrf-name]
Syntax Description
ip-addr
|
(Optional) An IPv4 source address. The format is x.x.x.x.
|
interface
|
(Optional) An interface. Use ? to determine the supported interface types.
|
static
|
(Optional) Clears static ARP entries.
|
statistics
|
(Optional) Clears ARP statistics.
|
vrf vrf-name
|
(Optional) Specifies the virtual router context (VRF) name. The name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any command mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example clears the ARP table:
Related Commands
Command
|
Description
|
show ip arp
|
Displays information about ARP.
|
clear ip bgp
To clear Border Gateway Protocol (BGP) routes from the BGP table, use the clear ip bgp command.
clear ip bgp [ipv4 {unicast | multicast] {neighbor | * | as-number | peer-template name | prefix}
[vrf vrf-name]
Syntax Description
ipv4
|
(Optional) Clear BGP information for IPv4 address family.
|
unicast
|
Clears BGP information for unicast address family.
|
multicast
|
Clears BGP information for multicast address family.
|
all
|
(Optional) Clear BGP information for all address families.
|
neighbor
|
A network address. The format is A.B.C.D for IPv4 and A:B::C:D for IPv6.
|
as-number
|
Autonomous system number. The range is from 1 to 65535.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
peer-template name
|
Specifies a BGP peer template. The name can be any case-sensitive alphanumeric string up to 64 characters.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4 and A:B::C:D/length for IPv6.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear all BGP entries for the IPv4 address family:
clear ip bgp dampening
To clear Border Gateway Protocol (BGP) route flap dampening information, use the clear ip bgp dampening command.
clear ip bgp {ipv4 {unicast | multicast}} dampening [neighbor | prefix] [vrf vrf-name]
Syntax Description
ipv4
|
(Optional) Clears BGP information for IPv4 address family.
|
unicast
|
Clears BGP information for unicast address family.
|
multicast
|
Clears BGP information for multicast address family.
|
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear BGP route flap dampening information:
switch# clear ip bgp dampening
clear ip bgp flap-statistics
To clear Border Gateway Protocol (BGP) route flap statistics, use the clear ip bgp flap-statistics command.
clear ip bgp flap-statistics [neighbor | prefix] [vrf vrf-name]
Syntax Description
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear BGP route flap statistics:
switch# clear ip bgp flap-statistics
clear ip eigrp accounting
To clear the prefix accounting information for the Enhanced Interior Gateway Routing Protocol (EIGRP) processes, use the clear ip eigrp accounting command.
clear ip eigrp [vrf {vrf-name | *}] [instance-tag] accounting
Syntax Description
vrf vrf-name
|
(Optional) Name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-insensitive alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.
|
vrf *
|
(Optional) Specifies all VRF instances.
|
instance-tag
|
(Optional) Instance tag. This option is available when a virtual routing and forwarding (VRF) instance is not specified. The instance tag can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(3)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
This example shows how to clear the EIGRP accounting information:
switch# clear ip eigrp accounting
clear ip eigrp neighbors
To remove and reestablish the Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor entries from the appropriate table, use the clear ip eigrp neighbors command in EXEC mode.
clear ip eigrp [instance-tag] neighbors [* | ip-address | interface-type interface-instance] [soft]
[vrf {vrf-name | *}]
Syntax Description
instance-tag
|
(Optional) Instance identifier. The instance-tag can be any case-sensitive alphanumeric string up to 64 characters.
|
*
|
(Optional) Clears all neighbors.
|
ip-address
|
(Optional) Address of the neighbor.
|
interface-type
|
(Optional) Interface type. For more information, use the question mark (?) CLI help function.
|
interface-instance
|
(Optional) Either a physical interface instance or a virtual interface instance.
Specifying these arguments removes the specified interface type from the neighbor table that all entries learned via this interface.
For more information about the interface syntax, use the question mark (?) online help function.
|
soft
|
(Optional) Specifies soft reset for the neighbors.
|
vrf {vrf-name | *}
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name is an alphanumeric string of up to 32 characters.
|
Defaults
When no autonomous system number, interface, or VRF instance is specified, all EIGRP neighbor entries are cleared from the table.
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
4.0(3)
|
Added * and soft keywords.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear all EIGRP entries for neighbors on Ethernet interface 2/1:
switch# clear ip eigrp vrf * neighbors ethernet 2/1
Related Commands
Command
|
Description
|
show eigrp interfaces
|
Displays information about interfaces configured for EIGRP.
|
show eigrp neighbors
|
Displays the neighbors discovered by EIGRP.
|
clear ip eigrp policy statistics redistribute
To clear policy statistics for routes redistributed into the the Enhanced Interior Gateway Routing Protocol (EIGRP) topology table, use the clear ip eigrp policy statistics redistribute command.
clear ip eigrp [vrf {vrf-name | *}] policy statistics redistribute {bgp id | direct | eigrp id | isis id
| ospf id | rip id | static}
Syntax Description
vrf vrf-name | *
|
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is an alphanumeric string of up to 32 characters.
|
bgp
|
Clears policy statistics for the Border Gateway Protocol (BGP).
|
direct
|
Clears policy statistics for directly connected routes only.
|
eigrp
|
Clears policy statistics for EIGRP.
|
isis
|
Clears policy statistics for the Intermediate-System to Intermediate-System (IS-IS) routing protocol.
|
ospf
|
Clears policy statistics for the Open Shortest Path First (OSPF) protocol.
|
rip
|
Clears policy statistics for the Routing Information Protocol (RIP).
|
static
|
Clears policy statistics for IP static routes.
|
id
|
For the bgp keyword, an autonomous system number. The range for 2-byte numbers is from 1 to 65535. The range for 4-byte numbers is from 1.0 to 65535.65535.
For the eigrp keyword, an EIGRP instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
For the isis keyword, an IS-IS instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
4.0(3)
|
This command was removed and replaced by the clear ip eigrp route-map statistics command.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear policy statistics for RIP:
switch# clear ip eigrp policy statistics redistribute rip 201
Related Commands
Command
|
Description
|
show ip eigrp policy statistics
|
Displays policy statistics for EIGRP.
|
clear ip eigrp route-map statistics redistribute
To clear statistics for routes redistributed into the the Enhanced Interior Gateway Routing Protocol (EIGRP) topology table, use the clear ip eigrp route-map statistics redistribute command.
clear ip eigrp [vrf {vrf-name | *}] route-map statistics redistribute {bgp id | direct | eigrp id |
isis id | ospf id | rip id | static}
Syntax Description
vrf vrf-name | *
|
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is an alphanumeric string of up to 32 characters.
|
bgp
|
Clears policy statistics for the Border Gateway Protocol (BGP).
|
direct
|
Clears policy statistics for directly connected routes only.
|
eigrp
|
Clears policy statistics for EIGRP.
|
isis
|
Clears policy statistics for the Intermediate-System to Intermediate-System (IS-IS) routing protocol.
|
ospf
|
Clears policy statistics for the Open Shortest Path First (OSPF) protocol.
|
rip
|
Clears policy statistics for the Routing Information Protocol (RIP).
|
static
|
Clears policy statistics for IP static routes.
|
id
|
For the bgp keyword, an autonomous system number. The range for 2-byte numbers is from 1 to 65535. The range for 4-byte numbers is from 1.0 to 65535.65535.
For the eigrp keyword, an EIGRP instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
For the isis keyword, an IS-IS instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
For the ospf keyword, an OSPF instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(3)
|
This command was introduced.
|
Usage Guidelines
This command replaces the clear ip eigrp policy statistics redistribute command.
This command requires the Enterprise Services license.
Examples
The following example shows how to clear policy statistics for RIP:
switch# clear ip eigrp route-map statistics redistribute rip 201
Related Commands
Command
|
Description
|
show ip eigrp route-map statistics
|
Displays redistribution statistics for EIGRP.
|
clear ip eigrp traffic
To clear the Enhanced Interior Gateway Routing Protocol (EIGRP) traffic statistics, use the clear ip eigrp traffic command.
clear ip eigrp [instance-tag] traffic [vrf {vrf-name | *}]
Syntax Description
instance-tag
|
(Optional) Instance of EIGRP. The instance tag can be any case-sensitive alphanumeric string up to 64 characters.
|
vrf vrf-name
|
(Optional) Name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-insensitive alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.
|
vrf *
|
(Optional) Specifies all VRF instances.
|
Defaults
This command clears information for the default VRF if no VRF is specified.
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(3)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
This example shows how to clear the EIGRP traffic statistics:
switch# clear ip eigrp traffic
clear ip interface statistics
To clear IP interface statistics, use the clear ip interface statistics command.
clear ip interface statistics
Syntax Description
This command has no keywords or arguments.
Defaults
None
Command Modes
Any command mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example clears the IP interface statistics:
switch# clear ip interface statistics
Related Commands
Command
|
Description
|
show ip interface
|
Displays IP interface information.
|
clear ip mbgp
To clear Multiprotocol Border Gateway Protocol (MBGP) routes from the BGP table, use the clear ip mbgp command.
clear ip mbgp {neighbor | * | as-number | peer-template name | prefix} [vrf vrf-name]
Syntax Description
neighbor
|
A network address. The format is A.B.C.D for IPv4.
|
as-number
|
Autonomous system number. The range is from 1 to 65535.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
peer-template name
|
Specifies a BGP peer template. The name can be any case-sensitive alphanumeric string up to 64 characters.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear all MBGP entries for the IPv4 address family:
clear ip mbgp dampening
To clear Multiprotocol Border Gateway Protocol (MBGP) route flap dampening information, use the clear ip mbgp dampening command.
clear ip mbgp dampening [neighbor | prefix] [vrf vrf-name]
Syntax Description
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear MBGP route flap dampening information:
switch# clear ip mbgp dampening
clear ip mbgp flap-statistics
To clear Multiprotocol Border Gateway Protocol (MBGP) route flap statistics, use the clear ip mbgp flap-statistics command.
clear ip mbgp flap-statistics [neighbor | prefix] [vrf vrf-name]
Syntax Description
neighbor
|
A neighbor from the selected address family. The format is A.B.C.D for IPv4.
|
prefix
|
A prefix from the selected address family. The format is A.B.C.D/length for IPv4.
|
vrf vrf-name
|
(Optional) Specifies a particular VPN routing and forwarding instance (VRF) or all VRF instances. The VRF name can be any case-sensitive alphanumeric string up to 64 characters.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command requires the Enterprise Services license.
Examples
The following example shows how to clear MBGP route flap statistics:
switch# clear ip mbgp flap-statistics
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] [vrf vrf-name] neighbor {* | neighbor-id | interface-type number |
loopback number | port-channel number}
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 20 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPF virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string of up to 32 characters, except "default" and "all".
|
*
|
Clears all neighbors.
|
neighbor-id
|
Specifies the Neighbor ID (as an IP address) of the neighbor to clear.
|
interface-type number
|
Specifies 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.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
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 Enterprise Services license.
Examples
The following 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
The following example shows how to clear all OSPF neighbor details for all OSPF instances:
switch# clear ip ospf neighbor *
The following example shows how to clear all OSPF neighbor details for all neighbors on Ethernet interface 1/2 for OSPF instance 202:
switch# clear ip ospf 202 neighbor ethernet 1/2
Related Commands
Command
|
Description
|
show ip ospf neighbor
|
Displays details for OSPF neighbors including the neighbor ID.
|
clear ip ospf policy statistics
To clear policy statistics for Open Shortest Path First (OSPF), use the clear ip ospf policy statistics command.
clear ip ospf [instance-tag] [vrf vrf-name] policy statistics {area area-id filter-list {in | out} |
redistribute {bgp autonomous-system | direct | eigrp autonomous-system | isis id | ospf id | rip
id | static}}
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 20 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPF virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string of up to 32 characters, except "default" and "all".
|
area
|
Clears policy statistics for an area.
|
area-id
|
Area ID as an integer or IP address.
|
filter-list
|
Specifies the policy statistics for filtered prefixes between OSPF areas.
|
in
|
Filters prefixes sent into this OSPF area.
|
out
|
Filters prefixes sent from this OSPF area.
|
redistribution
|
Clears OSPF route redistribution statistics.
|
bgp autonomous-system
|
Specifies the autonomous system number for the Border Gateway Protocol. Specify the autonomous system number as x.y, where the range is from 1 to 65535 for both x and y, or as a single integer, where the range is from 1 to 65535.
|
direct
|
Specifies directly connected routes.
|
eigrp autonomous-system
|
Specifies the autonomous system number for the Enhanced Interior Gateway Protocol. The range is from 1 to 65535.
|
isis id
|
Specifies the Intermediate System to Intermediate System instance. Specify the id argument as any alphanumeric string.
|
ospf id
|
Specifies the Open Shortest Path First version 2 instance. Specify the id argument as any alphanumeric string.
|
rip id
|
Specifies the Routing Information Protocol instance. Specify the id argument as any alphanumeric string.
|
static
|
Specifies static routes.
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
Use the clear ip ospf statistics command to learn the policy statistics shown in the show ip ospf policy statistics command. Use the instance-tag argument to clear the policy statistics from one OSPF instance. If you do not specify the instance tag.
Cisco NX-OS clears the policy statistics from all OSPF instances. Use the show ip ospf policy statistics command to to view the statistics that you are clearing.
This command requires the Enterprise Services license.
Examples
The following example shows how to clear all OSPF policy statistics for area 99 inbound filtered routes for OSPF 201:
switch# clear ip ospf 201 policy statistics area 99 filter-list in
The following example shows how to clear all OSPF policy statistics for all BGP redistributed routes for OSPF 202:
switch# clear ip ospf 202 policy statistics redistribute bgp
Related Commands
Command
|
Description
|
show ip ospf policy statistics
|
Displays details for OSPF policies.
|
clear ip ospf statistics
To clear Open Shortest Path First (OSPF) event statistics, use the clear ip ospf statistics command.
clear ip ospf [instance-tag] [vrf vrf-name] statistics
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 20 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPF virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string of up to 32 characters, except "default" and "all".
|
Defaults
None
Command Modes
Any
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
Use the clear ip ospf statistics command to clear the event statistics from one or more OSPF instances. If you do not specify the instan