set port vlan

Last Updated : Nov 06, 2012 |

Sets the port VLAN ID (PVID).

Note:

Define a VLAN before setting a port VLAN ID.

Syntax

set port vlan vlan_num module/port

Parameters

Parameter

Description

Possible Values

Default Value

vlan_num

Number identifying the VLAN

module

The module number

port

Number of the port on the module. You can also specify a range of ports separated by a dash. For example:.

10/3-4 for both ETH LAN ports on the front panel

User level

read-write

Context

general

Example

To set the VLAN ID for port 10/3 to 1:

Gxxx-001(super)# set port vlan 1 10/3
Port 10/3 added to VLAN 1