Defining VLAN Membership Groups Using CLI Commands
The following table summarizes the equivalent CLI commands for defining VLAN membership groups
as displayed in the VLAN Membership page.
Table 7-26. VLAN Membership Group CLI Commands
CLI Command
vlan database
vlan {vlan-range}
name string
The following is an example of the CLI commands:
console(config)# vlan database
console(config-vlan)# vlan 1972
console(config-vlan)# end
console(config)# interface vlan 1972
console(config-if)# name Marketing
console(config-if)# end
Assigning Ports to VLAN Groups Using CLI Commands
The following table summarizes the equivalent CLI commands for assigning ports to VLAN groups.
Table 7-27. Port-to-VLAN Group Assignments CLI Commands
CLI Command
switchport general acceptable-frame-types tagged-
only
switchport forbidden vlan
vlan-list
}
switchport mode {access | trunk | general}
switchport access vlan vlan-id
switchport trunk allowed vlan {add vlan-list |
remove vlan-list}
Description
Enters the VLAN configuration mode.
Creates a VLAN.
Adds a name to a VLAN.
add vlan-list
remove
{
|
Description
Discards untagged frames at ingress.
Forbids adding specific VLANs to the port.
Configures the VLAN membership mode of a port.
Configures the VLAN ID when the interface is in access
mode.
Adds or removes VLANs from a trunk port.
Configuring Switch Information
355