vlan-port-add
This command is used to add a port to an existing VLAN.
Syntax vlan-port-add
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. |
port-desc port-desc-string |
Specify the port description of the port that you want to add to the VLAN. |
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
History
Version 1.2 |
Command introduced. |
Version 2.4.1 |
The parameter vnet added. |
Version 3.0.0 |
The parameter vlan-range added. |
Version 7.0.0 |
The parameter port-desc added. |
Usage VLANs can be used to isolate network traffic at Layer 2. This command adds a new port to a VLAN.
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