C Commands


This chapter describes the Cisco NX-OS Layer 3 interfaces commands that begin with C.

clear ip arp

To clear the Address Resolution Protocol (ARP) information, use the clear ip arp command.

clear ip arp [ip-addr | ethernet slot/port[.sub_if] | loopback if_number | port-channel number[.sub_if_number]] [force-delete | statistics] [vrf vrf-name | all | default | management]

Syntax Description

ip-addr

(Optional) IPv4 source address. The format is x.x.x.x.

ethernet slot/port

(Optional) Specifies the Ethernet interface and the slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.

sub_if

(Optional) Specifies the Ethernet subinterface port number. The range is from 1 to 48.

loopback if_number

(Optional) Specifies the loopback interface. The loopback interface number is from 0 to 1023.

port-channel number

(Optional) Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.

.sub_if_number

(Optional) Subinterface number. The range is from 1 to 4093.

force-delete

(Optional) Clears the entries from the ARP table without a refresh.

statistics

(Optional) Clears ARP statistics.

vrf vrf-name

(Optional) Specifies the virtual routing and forwarding (VRF) context name. The name can be any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears the ARP information from all VRF entries.

default

(Optional) Clears the ARP information from the default VRF.

management

(Optional) Clears the ARP information from the management VRF.


Command Default

None

Command Modes

Any command mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Examples

This example shows how to clear the ARP table:

switch# clear ip arp 
 
   

Related Commands

Command
Description

show ip arp

Displays information about ARP.


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 arguments or keywords.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Examples

This example shows how to clear the IP interface statistics:

switch# clear ip interface statistics
 
   

Related Commands

Command
Description

show ip interface

Displays IP interface 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

Command History

Release
Modification

5.2(1)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear the 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

Command History

Release
Modification

5.2(1)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

This example shows how to clear the 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] [force-clear] [vrf vrf-name]

Syntax Description

type

(Optional) Interface type. Use ? to see the list of supported interfaces.

number

(Optional) Interface number. Use ? to see the range.

force-clear

(Optional) Clears the IPv6 neighbor cache withouth a refresh.

vrf vrf-name

(Optional) Specifies the virtual router context (VRF) name. The name can be any case-sensitive, alphanumeric string up to 63 characters.


Defaults

None

Command Modes

Any command mode

Command History

Release
Modification

5.2(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 shows how to clear the IPv6 neighbors:

switch# clear ipv6 neighbor
 
   

Related Commands

Command
Description

ipv6 nd

Configures ICMPv6 ND on an interface.