Reset Counters Interface - HP MSR series Command Reference Manual

Hide thumbs Also See for MSR series:
Table of Contents

Advertisement

Usage guidelines
Depending on the hardware structure of interface cards, some interfaces can operate only as Layer 2
Ethernet interfaces (in bridge mode), some can operate only as Layer 3 Ethernet interfaces (in route
mode), and others can operate as either Layer 2 or Layer 3 Ethernet interfaces (you can set the link mode
to bridge or route).
Configuring the port link-mode interface-list command in system view and configuring the port
link-mode command in Ethernet interface view lead to the same result. The difference is that the former
changes the link mode of two Ethernet interfaces in batch, and the latter changes the link mode of one
Ethernet interface at a time.
After you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are
restored to their defaults under the new link mode.
The link mode configuration for an Ethernet interface in system view and that in interface view supersede
each other, and the one configured last takes effect.
Examples
# Configure Ethernet 1/1 and Ethernet 1/2 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] port link-mode bridge ethernet 1/1 to ethernet 1/2
# Configure Ethernet 1/1 and Ethernet 1/2 to operate in Layer 3 mode.
<Sysname> system-view
[Sysname] port link-mode route ethernet 1/1 to ethernet 1/2

reset counters interface

Use reset counters interface to clear the Ethernet interface or subinterface statistics.
Syntax
reset counters interface [ interface-type [ interface-number | interface-number.subnumber ] ]
Views
User view
Default command level
2: System level
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
interface-number.subnumber: Specifies a subinterface number, where interface-number is an interface
number and subnumber is the number of a subinterface created under the interface. The value range for
the subnumber argument is 1 to 4094.
Usage guidelines
Clear old statistics on the interface or subinterface before collecting new traffic statistics for a specific
period of time.
If no interface type is specified, this command clears statistics for all interfaces on the device.
If only the interface type is specified, this command clears statistics for all interfaces of the specified
type.
22

Advertisement

Table of Contents
loading

Table of Contents