Cisco Nexus 6000 Series NX-OS Unicast Routing Command Reference
C Commands
Downloads: This chapterpdf (PDF - 102.0KB) The complete bookPDF (PDF - 7.33MB) | Feedback

Table of Contents

C Commands

clear forwarding route

clear forwarding inconsistency

clear ip adjacency statistics

clear ip route

clear sockets statistics

C Commands

This chapter describes the Cisco NX-OS unicast Routing Information Base (RIB) and the Forwarding Information Base (FIB) commands that begin with C.

clear forwarding route

To clear forwarding information, use the clear forwarding route command.

clear forwarding { ip | ipv4 } route [ * | prefix ] [ vrf vrf-name ]

 
Syntax Description

ip

Clears an IPv4 route.

ipv4

Clears an IPv4 route.

*

(Optional) Clears all routes.

prefix

(Optional) IPv4 prefix. The IPv4 format is x.x.x.x/length.

vrf vrf-name

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

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

Examples

This example shows how to clears a route from the FIB:

switch# clear forwarding ip 10.0.0.1/8
 

clear forwarding inconsistency

To clear the Layer 3 inconsistency checker for the Forwarding Information Base (FIB), use the clear forwarding inconsistency command.

clear forwarding inconsistency

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

Examples

This example shows how to clear the Layer 3 inconsistency checker for all modules:

switch# clear forwarding inconsistency module all
 

 
Related Commands

Command
Description

show forwarding inconsistency

Displays information about the FIB inconsistencies.

test forwarding inconsistency

Triggers the forwarding inconsistency checker.

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

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

Examples

This example shows how to clear the adjacency statistics:

switch# clear ip adjacency statistics
 

 
Related Commands

Command
Description

show ip adjacency

Displays adjacency information.

clear ip route

To clear individual routes from the unicast Routing Information Base (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.

prefix

(Optional) Clears this prefix. The format is x.x.x.x/length.

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.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

 
Usage Guidelines

Use the clear ip route command to clear individual routes from the route table.


Caution The * keyword is severely disruptive to routing.

Examples

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

To clear the socket statistics, use the clear sockets statistics command.

clear sockets statistics [ all | raw | tcp | udp ]

 
Syntax Description

all

(Optional) Clears all the socket statistics.

raw

(Optional) Clears the socket statistic for the raw IPv4 protocols.

tcp

(Optional) Clears the socket statistic for the TCP IPv4 protocols.

udp

(Optional) Clears the socket statistic for the UDP IPv4 protocols.

 
Command Default

None

 
Command Modes

Any command mode

 
Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.

Examples

This example shows how to clear the TCP socket statistics:

switch# clear sockets statistics tcp
 

 
Related Commands

Command
Description

show sockets client

Displays information about the socket client information.

show sockets connection

Displays information about the socket connection.

show sockets statistics

Displays information about the socket statistics.