Table 7-27. Port-to-VLAN Group Assignments CLI Commands (continued)

CLI Command

Description

 

 

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 allowed vlan add vlan-list[tagged untagged]

Adds or removes VLANs for a port in general mode.

switchport general pvid vlan-id

Configures the PVID when the interface is in general mode.

 

 

The following is an example of the CLI commands:

console(config)# vlan database console(config-vlan)# vlan 23-25 console(config-vlan)# end console(config)# interface vlan 23 console(config-if)# name Marketing console(config-if)# end console(config)# interface ethernet 1/e8 console(config-if)# switchport mode access console(config-if)# switchport access vlan 23 console(config-if)# end

console(config)# interface ethernet 1/e9 console(config-if)# switchport mode trunk

console(config-if)#switchport mode trunk allowed vlan add 23-25

console(config-if)# end

console(config)# interface ethernet 1/e11 console(config-if)# switchport mode general

console(config-if)#switchport general allowed vlan add 23,25 tagged

console(config-if)# switchport general pvid 25

356

Configuring Switch Information

Page 356
Image 356
Dell 3548 manual Consoleconfig-if#switchport mode trunk allowed vlan add