
98
You can use a nonexistent VLAN as the PVID for a trunk port. If you remove the PVID of a trunk port with
the
undo vlan
command, it does not affect the setting of the PVID on the port.
You must use the
port trunk permit vlan
command to configure the trunk port to allow and forward
packets from the PVID.
Related commands:
port link-type
and
port trunk permit vlan
.
Examples
# Configure VLAN 100 as the PVID of the trunk port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] port trunk pvid vlan 100
reset counters interface vlan-interface
Syntax
reset counters interface
vlan-interface
[
vlan-interface-id
]
View
User view
Default level
2: System level
Parameters
vlan-interface-id
: Specifies a VLAN interface number.
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, you must 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