94
Parameters
vlan-id
: Specifies a VLAN ID, ranging from 1 to 4094. Make sure that the VLAN specified by the VLAN
ID already exists.
Description
Use
port access vlan
to assign the access ports to the specified VLAN.
Use
undo port access vlan
to restore the default.
By default, all access ports belong to VLAN 1.
Examples
# Assign GigabitEthernet 1/0/1 to VLAN 3.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port access vlan 3
port hybrid pvid
Syntax
port hybrid pvid vlan
vlan-id
undo port hybrid pvid
View
Ethernet interface view
Default level
2: System level
Parameters
vlan-id
: Specifies a VLAN ID, ranging from 1 to 4094.
Description
Use
port hybrid pvid
to configure the PVID of the hybrid port.
Use
undo port hybrid pvid
to restore the default.
By default, the PVID of a hybrid port is VLAN 1.
You can use a nonexistent VLAN as the PVID for a hybrid port. If you remove the PVID of a hybrid port
with the
undo vlan
command, it does not affect the setting of the PVID on the port.
H3C recommends that you set the same PVID for the local and remote hybrid ports.
You must use the
port hybrid vlan
command to configure the hybrid port to allow and forward packets
from the PVID.
Related commands:
port link-type
and
port hybrid
vlan
.
Examples
# Configure VLAN 100 as the PVID of the hybrid port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] vlan 100