Configuration Guide Vol. 1


24.2.1 Command list

The following tables list the commands used to configure the basic VLAN functionality.

Table 24-6: List of configuration commands

Command name

Description

name

Sets a VLAN name.

state

Sets VLAN status (stop/start).

switchport access

Sets the access port VLAN.

switchport dot1q ethertype

Sets the VLAN tag TPID for port.

switchport mode

Sets the port type (access, protocol, MAC, trunk, or tunneling).

switchport trunk

Sets the VLAN for a trunk port.

vlan

The example below shows how to create a VLAN. Also, sets items pertaining to a VLAN in VLAN configuration mode.

vlan-dot1q-ethertype

Sets the default value for VLAN tag TPIDs.

vlan-up-message

Use no vlan-up-message command to suppress the sending of operation messages and LinkUp/LinkDown traps during Up and Down of VLAN.

The following tables list the operation commands for VLAN.

Table 24-7: List of operation commands

Command name

Description

show vlan

Shows information about VLANs.

show vlan mac-vlan

Shows the MAC addresses registered for MAC VLANs.

restart vlan

Restarts the VLAN program.

dump protocols vlan

Outputs to a file detailed event trace information and control tables collected for a VLAN program.