HP VPN Firewall Appliances Network Management Command Reference

23
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 multiple 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 most recent configuration takes effect.
Examples
# Configure GigabitEthernet 0/1 through GigabitEthernet 0/3 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] port link-mode bridge gigabitethernet 0/1 to gigabitethernet 0/3
# Configure GigabitEthernet 0/1 through GigabitEthernet 0/3 to operate in Layer 3 mode.
<Sysname> system-view
[Sysname] port link-mode route gigabitethernet 0/1 to gigabitethernet 0/3
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.