R0106-HP MSR Router Series Interface Command Reference(V7)

32
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Usage guidelines
Interfaces operate differently depending on the hardware structure of interface cards. For a device:
Some interfaces can operate only as Layer 2 Ethernet interfaces (in bridge mode).
Some interfaces can operate only as Layer 3 Ethernet interfaces (in route mode).
Some interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces.
You can use commands to set the link mode to bridge or route.
After you change the link mode of an Ethernet interface, all the commands (except the shutdown
command) on the Ethernet interface are restored to their defaults in the new link mode.
Examples
# Configure GigabitEthernet 2/1/1 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] port link-mode bridge
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
Predefined user roles
network-admin
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; subnumber is the number of a subinterface created under the interface. The value range for the
subnumber argument is 1 to 4094.
Usage guidelines
Before collecting traffic statistics for a specific period of time on an interface, clear the old statistics first.
If no interface type is specified, this command clears statistics for all interfaces.