< Home

reset ip routing-table statistics protocol

Function

The reset ip routing-table statistics protocol command clears route statistics in an IPv4 routing table.

Format

reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { all | protocol }

reset ip routing-table all-vpn-instance statistics protocol { all | protocol }

Parameters

Parameter Description Value

vpn-instance vpn-instance-name

Clears route statistics in an IPv4 routing table of the specified VPN instance. If this parameter is not specified, route statistics in an IPv4 routing table of the public network are cleared.

The value must be an existing VPN instance name.

all

Clear route statistics of all routing protocols in an IPv4 routing table.

-

protocol

Clears route statistics of the specified routing protocol in an IPv4 routing table. This parameter can be the following keywords. For details, see the routing protocols supported by the device: direct, bgp, isis, ospf, rip, static, and unr.

-

all-vpn-instance

Clears the statistics in the IPv4 routing tables of all VPN instances.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use this command to clear route statistics in an IPv4 routing table, including statistics about the routes added, deleted, and released by each routing protocol. Subsequently, the system can re-collect route statistics of each routing protocol again to monitor route changes and locate network faults.

Precautions

IPv4 route statistics cannot be restored after being cleared. Exercise caution when you use this command.

Example

# Clear route statistics of all routing protocols in an IPv4 routing table.

<HUAWEI> reset ip routing-table statistics protocol all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >