
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
CLI Command | Description |
|
|
vlan database | Enters the VLAN configuration mode. |
|
|
vlan | Creates a VLAN. |
|
|
name string | Adds a name to a VLAN. |
|
|
The following is an example of the CLI commands:
console(config)# vlan database
console(config)# interface vlan 1972
Assigning Ports to VLAN Groups Using CLI Commands
The following table summarizes the equivalent CLI commands for assigning ports to VLAN groups.
Table
CLI Command | Description |
|
|
switchport general | Discards untagged frames at ingress. |
only |
|
|
|
switchport forbidden vlan {add | Forbids adding specific VLANs to the port. |
| |
|
|
switchport mode {access trunk general} | Configures the VLAN membership mode of a port. |
|
|
switchport access vlan | Configures the VLAN ID when the interface is in access |
| mode. |
switchport trunk allowed vlan {add
Adds or removes VLANs from a trunk port.