Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Example: Interconnecting Customer Sites Using Q-in-Q Tunneling

 

This example shows how to interconnect two customer sites (E-LINE Services) based on Q-in-Q tunneling.

Requirements

This example requires the following hardware and software components:

  • Three ACX5448 routers configured as PE routers

  • Junos OS Release 18.2 or later

Overview

This example uses ACX5448 routers as PE routers to interconnect two customer sites (Headquarters and Branch offices) using Q-in-Q tunneling.

The configuration shows PE1 (ACX5448) router connected to the Headquarters and PE2 (ACX5448) and PE3 (ACX5448) routers connected to two branch offices (A and B), respectively. The CE facing interface, connected to the Headquarters, is configured to allow CVLAN and add push SVLAN, transported through a service provider/core network:

Configuration

CLI Quick Configuration

The following configuration shows:

  • Logical interfaces (Q-in-Q tunnelling) on the PE1, PE2, and PE3 routers connected to CE and service provider.

  • VLANs (CVLAN and SVLAN)

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Device PE1

Device PE2

Device PE3

Configuring the device PE1

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode.

  1. Configure logical interface (Q-in-Q tunneling) on the PE1 router connected to CE (Headquarters):
  2. Configure logical interface on the PE1 router connected to a service provider/core network:
  3. Configure a VLAN for SVLAN:

Configuring the device PE2

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode.

  1. Configure logical interface (Q-in-Q tunneling) on the PE2 router connected to CE (Branch Office A):
  2. Configure logical interface on the PE2 router connected to a service provider/core network:
  3. Configure a VLAN for SVLAN:

Configuring the device PE3

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode.

  1. Configure logical interface (Q-in-Q tunneling) on the PE3 router connected to CE (Branch Office B):
  2. Configure logical interface on the PE3 router connected to a service provider/core network:
  3. Configure a VLAN for SVLAN:

Verification

Verifying That the VLAN (bridge domain) Has Been Configured Properly

Purpose

Ensure that the VLAN (bridge domain) has been configured properly.

Action

From operational mode, enter the show vlans command.

user@host# show vlans

Verifying That the MAC Address is Learnt at the PE1 Port (Headquarters)

Purpose

Ensure that the MAC Address is learnt at the PE1 port (Headquarters).

Action

From operational mode, enter the show ethernet-switching table command.

user@host# show ethernet-switching table

Verifying That the MAC Address is Learnt at the PE2 Port (Branch Office A)

Purpose

Ensure that the MAC Address is learnt at the PE2 port (Branch Office A).

Action

From operational mode, enter the show ethernet-switching table command.

user@host# show ethernet-switching table

Verifying That the MAC Address is Learnt at the PE3 Port (Branch Office B)

Purpose

Ensure that the MAC Address is learnt at the PE3 port (Branch Office B).

Action

From operational mode, enter the show ethernet-switching table command.

user@host# show ethernet-switching table