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 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 instance-tag argument, Cisco NX-OS clears statistics from all OSPF instances. Use the show ip ospf 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 event statistics:
switch# clear ip ospf statistics
Related Commands
Command
|
Description
|
show ip ospf statistics
|
Displays event statistics for OSPF.
|
clear ip ospf traffic
To clear Open Shortest Path First (OSPF) traffic statistics, use the clear ip ospf traffic command.
clear ip ospf [instance-tag] traffic [interface] [vrf vrf-name]
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 20 characters.
|
interface
|
(Optional) Interface to clear traffic statistics for. Use the ? option to see the interface options.
|
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.
|
4.0(3)
|
Added interface argument.
|
Usage Guidelines
Use the clear ip ospf traffic command to clear the traffic statistics from one or more OSPF instances. If you do not specify the instance-tag argument, Cisco NX-OS clears traffic statistics from all OSPF instances. Use the show ip ospf traffic 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 OSPF traffic statistics for OSPF 100:
switch# clear ip ospf 100 traffic
Related Commands
Command
|
Description
|
show ip ospf traffic statistics
|
Displays OSPF traffic statistics.
|
clear ip rip policy statistics redistribute
To clear policy statistics for routes redistributed into the the Routing Information Protocol (RIP) topology table, use the clear ip rip policy statistics redistribute command in any mode.
clear ip rip [vrf vrf-name] policy statistics redistribute {bgp id | direct | eigrp id | isis id | ospf id
| ospfv3 id | static}
Syntax Description
vrf vrf-name
|
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. Length is up to 32 alphanumeric 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 the Enhanced Interior Gateway Routing Protocol (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.
|
ospfv3
|
Clears policy statistics for the Open Shortest Path First version 3 (OSPFv3) protocol.
|
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 d 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
This command has no default settings.
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 does not require a license.
Examples
The following example shows how to clear policy statistics for EIGRP:
switch# clear ip rip policy statistics redistribute eigrp 201
Related Commands
Command
|
Description
|
show ip rip policy statistics
|
Displays policy statistics for RIP.
|
clear ip rip statistics
To clear the the Routing Information Protocol (RIP) statistics, use the clear ip rip statistics command in any mode.
clear ip rip [vrf vrf-name] statistics [interface type instance]
Syntax Description
vrf [vrf-name]
|
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is up to 32 alphanumeric characters.
|
interface type instance
|
(Optional) Specifies the interface to clear topology entries.
|
Defaults
This command has no default settings.
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 does not require a license.
Examples
The following example shows how to clear all RIP statistics:
switch# clear ip rip statistics
Related Commands
Command
|
Description
|
show rip statistics
|
Displays database and interface entry information for the RIP process.
|
clear ip route
To clear individual routes from the unicast RIB, use the clear ip route command.
clear ip route [* | addr | prefix]] [vrf vrf-name]
Syntax Description
*
|
(Optional) Clears all routes.
|
addr
|
(Optional) Clears this route. The format is x.x.x.x.
|
addr
|
(Optional) Clears this prefix. The format is x.x.x.x/length.
|
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(3)
|
This command was introduced.
|
Usage Guidelines
Use the clear ip route command to clear individual routes from the route table.
Note
The * keyword is severely disruptive to routing.
This command does not require a license.
Examples
This example clears the individual route:
switch(config)# clear ip route 192.0.2.1
Related Commands
Command
|
Description
|
show ip route
|
Displays entries in the route table.
|
clear ip traffic
To clear IP traffic information, use the clear ip traffic command.
clear ip traffic
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 traffic information:
switch(config)# clear ip traffic
Related Commands
Command
|
Description
|
show ip traffic
|
Displays IP traffic information.
|
clear ipv6 adjacency statistics
To clear adjacency statistics, use the clear ipv6 adjacency statistics command.
clear ipv6 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 ipv6 adjacency statistics
Related Commands
Command
|
Description
|
show ipv6 adjacency
|
Displays adjacency information.
|
clear ipv6 icmp interface statistics
To clear statistics about ICMPv6, use the clear ipv6 icmp interface statistics command.
clear ipv6 icmp interface statistics [type number]
Syntax Description
type
|
(Optional) Interface type. Use ? to see the list of supported interfaces.
|
number
|
(Optional) Interface number. Use ? to see the range.
|
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 ICMPv6 statistics:
switch(config-if)# clear ipv6 icmp interface statistics
Related Commands
Command
|
Description
|
ipv6 icmp
|
Configures ICMPv6 on an interface.
|
clear ipv6 nd interface statistics
To clear information about Neighbor Discovery (ND), use the clear ipv6 nd interface statistics command.
clear ipv6 nd interface statistics [type number]
Syntax Description
type
|
(Optional) Interface type. Use ? to see the list of supported interfaces.
|
number
|
(Optional) Interface number. Use ? to see the range.
|
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 ND information:
switch(config-if)# clear ipv6 nd interface statistics
Related Commands
Command
|
Description
|
ipv6 nd
|
Configures ICMPv6 ND on an interface.
|
clear ipv6 neighbor
To clear IPv6 neighbors, use the clear ipv6 neighbor command.
clear ipv6 neighbor [type number]
Syntax Description
type
|
(Optional) Interface type. Use ? to see the list of supported interfaces.
|
number
|
(Optional) Interface number. Use ? to see the range.
|
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
Use the clear ipv6 neighbor command to clear the IPv6 adjacency table.
This command does not require a license.
Examples
This example clears IPv6 neighbors:
switch# clear ipv6 neighbor
Related Commands
Command
|
Description
|
ipv6 nd
|
Configures ICMPv6 ND on an interface.
|
clear ipv6 route
To clear individual routes from the unicast RIB, use the clear iv6p route command.
clear ipv6 route [* | addr | prefix]] [vrf vrf-name]
Syntax Description
*
|
(Optional) Clears all routes.
|
addr
|
(Optional) Clears this route. The format is A:B::C:D.
|
prefix
|
(Optional) Clears this prefix. The format is A:B::C:D/length.
|
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(3)
|
This command was introduced.
|
Usage Guidelines
Use the clear ipv6 route command to clear individual routes from the route table.
Note
The * keyword is severely disruptive to routing.
This command does not require a license.
Examples
This example clears the individual route:
switch(config)# clear ipv6 route 2001:0DB8::/8
Related Commands
Command
|
Description
|
show ipv6 route
|
Displays entries in the route table.
|
clear ipv6 traffic
To clear IP traffic information, use the clear ipv6 traffic command.
clear ipv6 traffic
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 traffic information:
switch(config)# clear ipv6 traffic
Related Commands
Command
|
Description
|
show ipv6 traffic
|
Displays IP traffic information.
|
clear ospfv3 neighbor
To clear neighbor statistics and reset adjacencies for Open Shortest Path First version 3 (OSPFv3), use the clear ospfv3 neighbor command.
clear ospfv3 [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 32 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPFv3 virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string 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 ospfv3 neighbor command to clear neighbor information from the show ospfv3 neighbors command. Use the instance-tag argument to clear the neighbor details from one OSPFv3 instance. If you do not use the instance-tag argument, Cisco NX-OS clears the neighbor details from all OSPFv3 instances. Use the show ospfv3 neighbors command to find the neighbor ID.
This command requires the Enterprise Services license.
Examples
This example shows how to clear all OSPFv3 neighbor details for neighbor 192.0.2.1 for instance tag 201:
switch# clear ospfv3 201 neighbor 192.0.2.1
This example shows how to clear all OSPFv3 neighbor details for all OSPFv3 instances:
switch# clear ospfv3 neighbor *
This example shows how to clear all OSPFv3 neighbor details for all neighbors on Ethernet interface 1/2 for OSPFv3 instance 202:
switch# clear ospfv3 202 neighbor ethernet 1/2
Related Commands
Command
|
Description
|
show ospfv3 neighbor
|
Displays details for OSPFv3 neighbors including the neighbor ID.
|
clear ospfv3 policy statistics
To clear policy statistics for Open Shortest Path First version 3 (osPFv3), use the clear ospfv3 policy statistics command.
clear ospfv3 [instance-tag] [vrf vrf-name] policy statistics {area area-id filter-list {in | out} |
redistribute {bgp autonomous-system | direct | isis id | rip id | static}}
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 32 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPFv3 virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string 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 OSPFv3 areas.
|
in
|
Filters prefixes sent into this OSPFv3 area.
|
out
|
Filters prefixes sent from this OSPFv3 area.
|
redistribution
|
Clears OSPFv3 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.
|
isis id
|
Specifies the Intermediate System to Intermediate System 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 ospfv3 statistics command to learn the policy statistics shown in the show ospfv3 policy statistics command. Use the instance-tag argument to clear the policy statistics from one OSPFv3 instance. If you do not specify the instance tag.
Cisco NX-OS clears the policy statistics from all OSPFv3 instances. Use the show ospfv3 policy statistics command to to view the statistics that you are clearing.
This command requires the Enterprise Services license.
Examples
This example shows how to clear all OSPFv3 policy statistics for area 99 inbound filtered routes for OSPFv3 201:
switch# clear ospfv3 201 policy statistics area 99 filter-list in
This example shows how to clear all OSPFv3 policy statistics for all BGP redistributed routes for OSPFv3 202:
switch# clear ospfv3 202 policy statistics redistribute bgp
Related Commands
Command
|
Description
|
show ospfv3 policy statistics
|
Displays details for OSPFv3 policies.
|
clear ospfv3 statistics
To clear Open Shortest Path First version 3 (OSPFv3) event statistics, use the clear ospfv3 statistics command.
clear ospfv3 [instance-tag] [vrf vrf-name] statistics
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 32 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPFv3 virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string 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 ospfv3 statistics command to clear the event statistics from one or more OSPFv3 instances. If you do not specify the instance-tag argument, Cisco NX-OS clears statistics from all OSPFv3 instances. Use the show ospfv3 statistics command to to view the statistics that you are clearing.
This command requires the Enterprise Services license.
Examples
This example shows how to clear all OSPFv3 event statistics:
switch# clear ospfv3 statistics
Related Commands
Command
|
Description
|
show ospfv3 statistics
|
Displays event statistics for OSPFv3.
|
clear ospfv3 traffic
To clear Open Shortest Path First version 3 (OSPFv3) traffic statistics, use the clear ospfv3 traffic command.
clear ospfv3 [instance-tag] [vrf vrf-name] traffic
Syntax Description
instance-tag
|
(Optional) Instance tag. Specify as an alphanumeric string of up to 32 characters.
|
vrf vrf-name
|
(Optional) Specifies the name of the OSPFv3 virtual routing and forwarding instance (VRF). The vrf-name argument can be any alphanumeric string 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 ospfv3 traffic command to clear the traffic statistics from one or more OSPFv3 instances. If you do not specify the instance-tag argument, Cisco NX-OS clears traffic statistics from all OSPFv3 instances. Use the show ospfv3 traffic statistics command to to view the statistics that you are clearing.
This command requires the Enterprise Services license.
Examples
This example shows how to clear OSPFv3 traffic statistics for OSPFv3 100:
switch# clear ospfv3 100 traffic
Related Commands
Command
|
Description
|
show ospfv3 traffic statistics
|
Displays OSPFv3 traffic statistics.
|
clear route-map pbr-statistics
To clear policy-based statistics for a route map, use the clear route-map pbr statistics command..
clear route-map name pbr-statistics
Syntax Description
name
|
Name of the route map. The name can be any alphanumeric string up to 63 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
Use the clear route-map pbr-statistics command to clear policy-based routing statistics enabled by the route-map pbr-statistics command.
This command requires the Enterprise Services license.
Examples
This example shows how to clear the policy-base routing statistics for a route map:
switch# clear route-map testmap pbr-statistics
Related Commands
Command
|
Description
|
route-map pbr-statistics
|
Enables policy-based routing statistics for a route map.
|
confederation
To configure the confederation parameters for the Border Gateway Protocol (BGP, use the confederation command.
confederation {identifier | peers} as-number
Syntax Description
identifier
|
Sets the routing domain confederation AS number.
|
peers
|
Sets the peer AS numbers for a BGP confederation.
|
as-number
|
The autonomous system number. The AS number can be a 16-bit integer or a 32-bit integer in the form of <higher 16-bit decimal number>.<lower 16-bit decimal number>.
|
Defaults
None
Command Modes
Router configuration mode
Router VRF mode
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
This example shows how configure the confederation identifier:
switch(config)# router bgp 33.33
switch(config-router)# confederation identifier 33.33
Related Commands
Command
|
Description
|
show bgp
|
Displays information about BGP.
|