Table 34 Command output
Field
Interface
PVID
VLAN passing
Tagged
Untagged
port
Syntax
port interface-list
undo port interface-list
View
VLAN view
Default level
2: System level
Parameters
interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number
[ to interface-type interface-number ] }&<1- 1 0>, where interface-type interface-number represents the
interface type and interface number and &<1- 1 0> indicates that you can specify up to 10 interface-type
interface-number [ to interface-type interface-number ] parameters.
Description
Use port to assign the specified access ports to the VLAN.
Use undo port to remove the specified access ports from the VLAN.
By default, all ports are in VLAN 1.
This command is applicable only on access ports.
By default, all ports are access ports. However, you can manually configure the port type. For more
information, see
You cannot assign Layer 2 aggregate interfaces to a 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
Description
Port name
PVID of the port
VLANs for which the port allows packets to pass through
VLANs for which the port sends packets without removing VLAN tags
VLANs for which the port sends packets after removing VLAN tags
"port
link-type."
143