R2511-HP MSR Router Series Security Command Reference(V5)
506
Default
The traffic statistics collection function is disabled on an interface.
Views
Interface view
Default command level
2: System level
Parameters
destination-ip: Collects statistics on packets sent out of the current interface by destination IP address.
inbound: Collects statistics on packets received on the interface.
outbound: Collects statistics on packets sent out of the interface.
source-ip: Collects statistics on packets received on the current interface by source IP address.
Usage guidelines
You can enable multiple types of traffic statistics collections on an interface, and then use related display
commands to view the statistics collection results of each type.
Examples
# On interface GigabitEthernet 1/1, enable the traffic statistics collection by destination IP address.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] flow-statistics enable destination-ip
# You can use the following command to view statistics on packets sent out of the interface with the
destination IP address being 2.2.2.2 (you can specify the destination IP address as needed).
[Sysname-GigabitEthernet1/1] display flow-statistics statistics destination-ip 2.2.2.2
Related commands
display flow-statistics statistics
reset attack-defense statistics interface
Use reset attack-defense statistics interface to clear the attack protection statistics of an interface.
Syntax
reset attack-defense statistics interface interface-type interface-number
Views
User view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Examples
# Clear the attack protection statistics of interface GigabitEthernet 1/1.
<Sysname> reset attack-defense statistics interface gigabitethernet 1/1










