Configuring VLAN Retagging

Configuring VLAN retagging on a Layer 2 trunk interface requires a one-to-one mapping of the incoming and internal VLAN identifiers.

Before You Begin

For background information, read:

In the following example, a Layer 2 trunk interface is configured to receive packets with VLAN identifiers 1 through 10. Packets that arrive on the interface with VLAN identifier 11 are retagged with VLAN identifier 2. Before exiting the trunk interface, VLAN identifier 2 in the retagged packets is replaced with VLAN identifier 11.

You can use either J-Web or the CLI configuration editor to configure VLAN retagging.

This topic covers:

J-Web Configuration

To create a Layer 2 trunk interface:

  1. Select Configure>CLI Tools>Point and Click CLI.
  2. Next to Interfaces, click Configure or Edit.
  3. In the Interface name column, select ge-3/0/0.
  4. Under Unit, in the Interface unit number column, click 0.
  5. Next to Family group, select Bridge and then click Configure.
  6. Next to Interface mode, select trunk.
  7. Next to Vlan list, select Vlan id list.
  8. In the Vlan id box, type 1–10.

To configure VLAN retagging:

  1. Next to Vlan rewrite, click Configure.
  2. Next to Translate, click Add new entry.
  3. In the From vlan id box, type 11.
  4. In the To vlan id box, type 2.
  5. Click OK to return to the Vlan rewrite page.
  6. Click OK to return to the Family page.
  7. Click OK to return to the Unit page.
  8. Click OK to return to the Interface page.
  9. Click OK to return to the Interfaces page.

CLI Configuration

To create a Layer 2 trunk interface:

user@host# set interface ge-3/0/0 unit 0 family bridge interface-mode trunk vlan-id-list 1–10

To configure VLAN retagging:

user@host# set interface xe-9/3/0 unit 0 family bridge vlan-rewrite translate 11 2

Related Topics