GSWB 8.2 Configuration Definition Commands

(5)Examples

Adds VLAN2, 5, and 6 to the permission list

Switch(config-if)# switchport allowed vlan add 2

Switch(config-if)# switchport allowed vlan add 5-6

Switch(config-if)#

• Deletes VLAN2 from the permission list of a port-channel port

Switch(config)# interface port-channel 1

Switch(config-if)# switchport allowed vlan remove 2

Switch(config-if)#

Registers VLAN 10, 20, and 30, which specify the Trunk mode for port1, as allowed VLANs

Switch(config)# vlan 10 name aaa

Switch(config-vlan)#exit

Switch(config)# vlan 20 name bbb

Switch(config-vlan)#exit

Switch(config)# vlan 30 name ccc

Switch(config-vlan)#exit

Switch(config)#interface port 1

Switch(config-if)# switchport mode trunk

Switch(config-if)# switchport allowed vlan add 10

Switch(config-if)# switchport allowed vlan add 20

Switch(config-if)# switchport allowed vlan add 30

Switch(config-if)# switchport native vlan 1

Switch(config-if)#

(6)Error messages

% Incomplete command.

Cause: Incomplete command input

Action: Enter the command string correctly.

• % Invalid input detected at '^' marker.

Cause: Invalid character detected at '^' marker in the entered command string

Action: Enter the command string correctly.

C122-E003-02EN

8-75