C Commands


This chapter describes the Cisco NX-OS Enhanced Interior Gateway Routing Protocol (EIGRP) commands that begin with C.

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 accounting [vrf {vrf-name | all | default | management}]

Syntax Description

vrf vrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.

all

(Optional) Clears the EIGRP accounting information from all VRF instances.

default

(Optional) Clears the EIGRP accounting information from the default VRF.

management

(Optional) Clears the EIGRP accounting information from the management VRF.


Command Default

None

Command Modes

Command HistoryAny command mode

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

This command requires the LAN Base 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.

clear ip eigrp neighbors [* | ip-address | ethernet slot/port | loopback if_number | port-channel number] [soft] [vrf {vrf-name | all | default | management}]

Syntax Description

*

(Optional) Clears all neighbors.

ip-address

(Optional) Address of the neighbor.

ethernet slot/port

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

loopback if_number

(Optional) Clears the loopback interface from the neighbor table. The loopback interface number is from 0 to 1023.

port-channel number

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

soft

(Optional) Specifies soft reset for the neighbors.

vrf vrf-name

(Optional) Specifies a virtual routing and forwarding (VRF) instance. The VRF name is an alphanumeric string of up to 32 characters.

all

(Optional) Clears the EIGRP neighbor information from all VRF instances.

default

(Optional) Clears the EIGRP neighbor information from the default VRF.

management

(Optional) Clears the EIGRP neighbor information from the management VRF.


Command Default

When no autonomous system number, interface, or VRF instance is specified, all EIGRP neighbor entries are cleared from the table.

Command Modes

Command HistoryAny command mode

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

This command requires the LAN Base Services license.

Examples

This 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 ip eigrp interfaces

Displays information about interfaces configured for EIGRP.

show ip eigrp neighbors

Displays the neighbors discovered by EIGRP.


clear ip eigrp redistribution

To clear redistribution information for the Enhanced Interior Gateway Routing Protocol (EIGRP) , use the clear ip eigrp redistribution command.

clear ip eigrp redistribution [vrf {vrf-name | all | default | management}]

Syntax Description

vrf vrf-name

(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is a case-sensitive, alphanumeric string of up to 32 characters.

all

(Optional) Clears the redistribution information from all VRF instances.

default

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

management

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


Command Default

None

Command Modes

Command HistoryAny command mode

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

This command requires the LAN Base Services license.

Examples

This example shows how to clear redistribution information:

switch# clear ip eigrp redistribution
 
   

Related Commands

Command
Description

feature eigrp

Enables the EIGRP feature.


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 traffic [vrf {vrf-name | all | default | management}]

Syntax Description

vrf vrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters.

all

(Optional) Clears the traffic statistics from all VRF instances.

default

(Optional) Clears the traffic statistics from the default VRF.

management

(Optional) Clears the traffic statistics from the management VRF.


Command Default

This command clears information for the default VRF if no VRF is specified.

Command Modes

Command HistoryAny command mode

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

This command requires the LAN Base Services license.

Examples

This example shows how to clear the EIGRP traffic statistics:

switch# clear ip eigrp traffic