Clear commands

router

Syntax

router [router-instance]

Context

clear

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears information for the specified router instance.

Parameters

router-instance

Specifies the router name or service ID.

Values

service-id: 1 to 2147483647

Default

Base

arp

Syntax

arp {all | ip-addr | interface {ip-int-name | ip-addr}}

Context

clear>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all or specific ARP entries.

The scope of ARP cache entries cleared depends on the command line option(s) specified.

Parameters

all

Clears all ARP cache entries.

ip-addr

Clears the ARP cache entry for the specified IP address.

interface ip-int-name

Clears all ARP cache entries for the IP interface with the specified name.

interface ip-addr

Clears all ARP cache entries for the specified IP interface with the specified IP address.

icmp6

Syntax

icmp6 all

icmp6 global

icmp6 interface interface-name

Context

clear>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears ICMP statistics.

Parameters

all

Clears all statistics.

global

Clears global statistics.

interface-name

Clears ICMP6 statistics for the specified interface.

dhcp

Syntax

dhcp

Context

clear>router

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

Commands in this context clear and reset DHCP entities.

local-dhcp-server

Syntax

local-dhcp-server server-name

Context

clear>router>dhcp

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

This command clears DHCP server data.

Parameters

server-name

Clears data for the specified local DHCP server.

declined-addresses

Syntax

declined-addresses ip-address[/mask]

declined-addresses pool pool-name

Context

clear>router>dhcp>local-dhcp-server

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

This command clears declined DHCP addresses.

Parameters

pool-name

Specifies the declined pool name.

ip-address[/mask]

Specifies the declined IP address and mask.

leases

Syntax

leases ip-address[/mask] [state]

leases all [state]

Context

clear>router>dhcp>local-dhcp-server

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

This command clears DHCP leases.

Parameters

ip-address[/mask]

Clears the specified IP address and mask.

state

Clears the state of the lease to be removed.

Values

offered | stable | force-renew-pending | remove-pending | held | internal | internal-orphan | internal-held | sticky

server-stats

Syntax

server-stats

Context

clear>router>dhcp>local-dhcp-server

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

This command clears all server statistics.

statistics

Syntax

statistics [ip-int-name | ip-address]

Context

clear>router>dhcp

Platforms

7210 SAS-K 2F6C4Tand 7210 SAS-K 3SFP+ 8C

Description

This command clears DHCP statistics.

Parameters

ip-int-name

Clears DHCP statistics for the specified interface name.

ip-address

Clears DHCP statistics for the specified IP address.

neighbor

Syntax

neighbor {all | ip-address [interface interface-name}

neighbor [interface ip-int-name | ipv6-address]

Context

clear>router

Platforms

7210 SAS-D, 7210 SAS-Dxp, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C

Description

This command clears IPv6 neighbor information.

Parameters

all

Clears IPv6 neighbors.

ip-int-name

Clears the specified neighbor interface information, up to 32 characters.

ip-address

Clears the specified IPv6 neighbors.

Values

ipv6-address:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - 0 to FFFF (hexadecimal)

d - 0 to 255 (decimal)

router-advertisement

Syntax

router-advertisement all

router-advertisement [interface interface-name]

Context

clear>router

Platforms

7210 SAS-Dxp, 7210 SAS-K 2F6C4T, and 7210 SAS-K 3SFP+ 8C

Description

This command clears all IPV6 router advertisement counters.

Parameters

all

Clears all router advertisement counters for all interfaces.

interface interface-name

Clear router advertisement counters for the specified interface.