143
Description
Use
reset counters interface vlan-interface
to clear the statistics on a VLAN interface.
Before collecting the traffic statistics within a specific period of time on an interface, clear the existing
statistics first.
If the
vlan-interface-id
argument is not specified, this command clears the statistics of all VLAN
interfaces.
If the
vlan-interface-id
argument is specified, this command clears the statistics of the specified
VLAN interface.
Related commands:
display interface vlan-interface
.
Examples
# Clear the statistics on VLAN-interface 2.
<Sysname> reset counters interface vlan-interface 2
shutdown
Syntax
shutdown
undo shutdown
View
VLAN interface view
Default level
2: System level
Parameters
None
Description
Use
shutdown
to manually shut down a VLAN interface.
Use
undo shutdown
to cancel the action of shutting down a VLAN interface.
By default, a VLAN interface is not manually shut down. The VLAN interface is up if one or more
ports in the VLAN is up, and goes down if all ports in the VLAN go down.
A VLAN interface shut down with the
shutdown
command is in DOWN (Administratively) state until
you bring it up, regardless of how the state of the ports in the VLAN changes.
Before configuring parameters for a VLAN interface, shut down the VLAN interface with the
shutdown
command to prevent the configurations from affecting the network. Use the
undo
shutdown
command to bring up a VLAN interface after you have configured related parameters and
protocols for the VLAN interface.
You can shut down a failed interface with the
shutdown
command and then bring it up with the
undo
shutdown
command to see if it recovers.
In a VLAN, the state of any Ethernet port is independent of the state of the VLAN interface.
Examples
# Shut down VLAN-interface 2 and then bring it up.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] shutdown
[Sysname-Vlan-interface2] undo shutdown