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

Description

 

 

vlan database

Enters the VLAN configuration mode.

 

 

vlan {vlan-range}

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-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

Description

 

 

switchport general acceptable-frame-types tagged-

Discards untagged frames at ingress.

only

 

 

 

switchport forbidden vlan {add vlan-listremove

Forbids adding specific VLANs to the port.

vlan-list}

 

 

 

switchport mode {access trunk general}

Configures the VLAN membership mode of a port.

 

 

switchport access vlan vlan-id

Configures the VLAN ID when the interface is in access

 

mode.

switchport trunk allowed vlan {add vlan-list remove vlan-list}

Adds or removes VLANs from a trunk port.

Configuring Switch Information

355

Page 355
Image 355
Dell 3548 manual 355