27
Description
Use the
reset counters interface
command to clear the statistics of an interface.
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.
•
If only the interface type is specified, this command clears statistics for all interfaces of the specified
interface type.
•
If both the interface type and interface number are specified, this command clears statistics for the
specified interface.
Examples
# Clear the statistics of GigabitEthernet 1/0/1.
<Sysname> reset counters interface gigabitEthernet 1/0/1
shutdown
Syntax
shutdown
undo shutdown
View
Ethernet interface view
Default level
2: System level
Parameters
None
Description
Use the
shutdown
command to shut down an Ethernet interface.
Use the
undo
shutdown
command to bring up an Ethernet interface.
By default, an Ethernet interface is in the up state.
You may need to shut down and then bring up an Ethernet interface to activate configuration changes in
certain circumstances, for example, after changing the speed or duplex mode of the interface.
CAUTION:
Use this command with caution. After you shut down an Ethernet interface by using this command, the
Ethernet interface cannot forward packets even if it is physically connected.
Examples
# Shut down and then bring up interface GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] shutdown
[Sysname-GigabitEthernet1/0/1] undo shutdown