This command is used to add a port to an existing VLAN.

Syntax   vlan-port-add vlan-id vlan-id vlan-vnet vnet-name [switch switch-name] [ports port-list] [untagged yes|no]

vlan-id vlan-id

Specifies the identifier of the VLAN in the range from 2 to 4092.

vlan-range vlan-list

Specify the range of VLAN IDs.

vlan-vnet vnet-name

Specify the name of the VNET assigned to the VLAN.

Specify the following port arguments:

switch switch-name

Specify the name of the switch with the port.

ports port-list

Specifies the switch network data port number, list of ports, or range of ports. Port numbers must be in the range of 1 to 64.

untagged yes|no

Specifies if the ports tag packets with the IEEE 802.1Q VLAN header or untagged packets should automatically be mapped to the VLAN. This means that both ingress and egress packets do not contain the 802.1Q VLAN header.

Defaults   None.

Access   CLI


Version 1.2

Command introduced.

Version 2.4.1

The parameter, vnet, added.

Version 3.0.0

The parameter, vlan-range, added.

Usage   VLANs can be used to isolate network traffic at Layer 2. This command adds a new port to a VLAN..


Informational Note:  The VLAN identifiers 0 and 4095 are reserved and cannot be used per the IEEE 802.1Q standard.

The range of configurable VLAN identifiers is 2 through 4092.

Examples  To add ports 17 and 18 and set them to transmit and receive untagged Ethernet packets on VLAN 7 on VNET finance-1, use the following command:

CLI network-admin@switch > vlan-port-add vlan-id 7 vlan-vnet finance-1 ports 17,18 untagged yes

See Also