User guide
Configuring Device Information 333
Assigning Ports to VLAN Groups Using CLI Commands
The following table summarizes the equivalent CLI commands for assigning ports to VLAN groups.
The following is an example of the CLI commands:
Table 7-28. VLAN Port CLI Commands
CLI Command Description
switchport mode {customer
|access | trunk | general}
Configures a port VLAN membership mode.
switchport trunk native vlan
vlan-id
Defines the port as a member of the specified
VLAN, and the VLAN ID as the "port default
VLAN ID (PVID)".
switchport general pvid vlan-id Configure the Port VLAN ID (PVID) when the
interface is in general mode.
switchport general allowed vlan
add vlan-list [tagged |
untagged]
Adds or removes VLANs from a general port.
switchport general acceptable-
frame-types tagged-only
Discards untagged packets at ingress.
switchport general ingress-
filtering disable
Disables port ingress filtering.
shutdown Disables interfaces.
set interface active {ethernet
interface | port-channel port-
channel-number }
Reactivates an interface that is shutdown due
to security reasons.
Console (config)# interface range ethernet g18-20
Console (config-if)# switchport mode access
Console (config-if)# switchport general pvid 234
Console (config-if)# switchport general allowed vlan add
1,2,5,6 tagged
Console (config-if)# switchport general ingress-filtering
disable