GSWB

CHAPTER 8 CLI Operations

(5)Examples

Allocates a port in access mode to VLAN2

Switch(config-if)# switchport access vlan 2

Switch(config-if)#

• Allocates a port-channel port to VLAN10

Switch(config)# interface port channel 1

Switch(config-if)# switchport access vlan 10

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.

Internal communication error.

Cause: An internal error occurred.

Action: Check the system status, and reenter the command. If the error occurs again, collect unit information, configuration definition information, and the information in different types of logs, and restart the unit. Alternatively, contact a certified service engineer.

• vlan id doesn’t exist.

Cause: The specified VLAN does not exist.

Action: Reenter the command after creating a VLAN.

• Invalid switchport mode.

Cause: The VLAN membership mode is not access.

Action: Reenter the command after changing the mode to access.

It is necessary to review specified VLAN and port.

Cause: The VLAN and port definitions do not match.

Action: Review the VLAN and port definitions.

8-70

C122-E003-02EN