
146
555, 600-611, 1000, 2006-2008
Table 34
Output description
Field Description
Interface Port
name.
PVID
Default VLAN ID of the port.
VLAN passing
VLANs whose packets are allowed to pass through the port.
Tagged
VLANs whose packets are required to pass through the port tagged.
Untagged
VLANs whose packets are required to pass through the port untagged.
port
Syntax
port
interface-list
undo port
interface-list
View
VLAN view
Default level
2: System level
Parameters
interface
interface-list
: Specifies an Ethernet port list, in the format of
interface-list
= {
interface-type
interface-number
[
to
interface-type interface-number
] }&<1-10>, where &<1-10> indicates that you can
specify up to 10 ports or port ranges.
Description
Use the
port
command to assign the specified access port(s) to the current VLAN.
Use the
undo port
command to remove the specified access port(s) from the current VLAN.
By default, all ports are in VLAN 1.
This command is only applicable on access ports.
All ports are access ports by default. However, you can manually configure the port type. For more
information, see
port link-type
.
You cannot assign a Layer 2 aggregate interface to the current VLAN.
Related commands:
display vlan
.
Examples
# Assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port gigabitethernet 1/0/1 to gigabitethernet 1/0/3