configure vman add ports cep

configure [{vman} vman_name | vman vman_id] add ports port_list cep cvid cvid_first {- cvid_last} {translate cvid_first_xlate {- cvid_last_xlate }} | port-cvid port_cvid ]}

Description

Adds one or more switch ports to the specified VMAN as Customer Edge Ports (CEPs), and configures the CVIDs on those ports to map to the VMAN.

Syntax Description

vman_name Specifies the VMAN to configure.
vman_id Specifies the VMAN ID to configure.
port_list Specifies a list of ports.
cvid_first Specifies a CVLAN ID (CVID) or the first in a range of CVIDs that the CEP will accept and map to the specified VMAN. Valid values are 1-4095.
cvid_last Specifies the last in a range of CVIDs that the CEP will accept and map to the VMAN. Valid values are 1-4095.
translate Enables translation of the specified CEP CVID range to the specified VMAN CVID range.
cvid_first_xlate Specifies a VMAN CVID or the first in a range of VMAN CVIDs to which the CEP CVIDs will map. Valid values are 1-4095.
cvid_last_xlate Specifies the last in a range of VMAN CVIDs to which the CEP CVIDs will map. Valid values are 1-4095. The number of VMAN CVIDs in this range must equal the number of CEP CVIDs specified in this command.
port-cvid

Port's customer This command is available on the ExtremeSwitching X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, 5520 series switches. ID used for untagged packets.

port_cvid

Customer VLAN ID assigned to untagged packets from 1.

Default

N/A.

Usage Guidelines

If you specify only one CVID or a range of CVIDs without translation, the specified CVIDs are mapped to the specified VMAN and appear unchanged in the VMAN.

If you specify CVID translation, the CEP CVIDs map to different VMAN CVIDs. The number of CEP CVIDs specified must equal the number of VMAN CVIDs specified. The first CEP CVID in the specified range maps to the first CVID in the range specified for the VMAN. The difference between cvid_first and cvid_first_xlate establishes an offset N that maps CEP CVIDs to VMAN CVIDs. (Offset N = cvid_first_xlate - cvid_first.) The translated VMAN CVID that corresponds to a CEP CVID can be determined as follows:

VMAN CVID = CEP CVID + N

Note

Note

CVID translation can reduce the number of CVIDs that can be mapped to VMANs.

After you enable and configure a CEP with this command, you can use the following command to map additional CVIDs on the port to the VMAN:

configure [ {vman} vman_name | vman vman_id] ports port_list add cvid cvid_first {- cvid_last} {translate cvid_first_xlate {- cvid_last_xlate}}

When this command specifies multiple ports, each port gets an independent CVID map; the ports do not share a common map. Changes to the CVID map affect only the ports specified in the configuration command. For example, consider the following commands:

configure vman vman1 add port 1-2 cep cvid 10

configure vman vman1 port 1 add cvid 11

After these commands are entered, port 1 maps CVIDs 10 and 11 to VMAN vman1, and port 2 maps only CVID 10 to vman1.

You can add the same port as a CEP to multiple VMANs. A port can also support multiple VMANs in different roles as shown in Port Support for Combined VMAN Roles and VLANs.

To view the CEP CVID configuration for a port, use the show vman command.

ExtremeXOS 21.1 adds an optional port CVID parameter to the existing untagged and CEP VMAN port configuration options. When present, any untagged packet received on the port will be double tagged with the configured port CVID and the SVID associated with the VMAN. If the port is untagged, packets received with a single CVID will still have the SVID added as usual. If the port is CEP, only untagged and any specifically configured CVIDs will be allowed. As double tagged packets are received from tagged VMAN ports and forwarded to untagged VMAN ports, the SVID associated with the VMAN is stripped. Additionally, the CVID associated with the configured Port CVID is also stripped in the same operation. If the port is CEP and CEP egress filtering is enabled, only the specified port-cvid and cvids are allowed to egress.

Example

The following example configures port 1 as a CEP for VMAN vman1 and specifies that CEP CVID 5 maps to CVID 5 on the VMAN:

configure vman vman1 add port 1 cep cvid 5

The following example configures port 1 as a CEP for VMAN vman1 and enables the port to translate CEP CVIDs 10-19 to VMAN CVIDs 20-29:

configure vman vman1 add port 1 cep cvid 10 - 19 translate 20 - 29

History

This command was first available in ExtremeXOS 12.6.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.

The CVID translation feature is available on all platforms.