Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Example: Configuring EVPN-VPWS over Transport Class Tunnels


In this example, we use a basic network topology to configure EVPN-VPWS over two RSVP-TE transport class tunnels between PE1 and PE2. We define two transport class and assign different tunnels to the transport class. We configure the devices with the following features:

  • EVPN-VPWS routing instance.

  • RSVP-TE tunnels using MPLS LSP and BGP.

  • Gold and bronze transport class.

  • Policy filters specifying separate communities for the gold and bronze transport class.


  • Two MX series routers configured as a PE router

  • One MX series router configured as a route reflector

  • Junos OS Release 23.1R1 or later running on all devices.


Figure 1 shows a basic topology with 2 PE devices and a route reflector forwarding the routes between the PE devices. A pair of CE devices is connected to PE1 and PE2 respectively. PE1 and PE2 routes traffic from CE1 and CE2 over the gold tunnel and traffic from CE3 and CE4 over the bronze tunnel.

Figure 1: Basic EVPN over RSVP-TE Transport Tunnel Basic EVPN over RSVP-TE Transport Tunnel


CLI Quick Configuration

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. The configuration for PE1, PE2, and RR are as follows:




Step-by-Step Procedure

To set up transport class tunnels on the PE device:

  1. Configure the device to support enhanced IP and tunnel services.

  2. Configure the interfaces.

  3. Define the gold and bronze transport class on PE1.

  4. Configure the routing protocols and the routing options to support transport-tunnels. We are using RSVP-TE with MPLS LSP and BGP.

  5. Configure the policy to apply the EVPN routes to the transport tunnels. We use vrf-export to advertise the tunnel to the remote PE.

  6. Configure the EVPN-VPWS routing instance that will be using the policy above.


Confirm that the configuration is working properly.

Verifying the Packet Flow in the Tunnels


Verify that the PE device routes packets on the RSVP LSP tunnel that is associated with the transport class.


From operational mode on CE1, ping CE2.

From operational mode on CE3, ping CE4.

From operational mode on PE1, run the show mpls lsp statistics command to display the LSP information.


The output shows that the ping was successful. The output from the show mpls lsp statisticscommand shows that packets were routed to the bronze and gold tunnels.

Verify Configured Transport Tunnels


Verify that the EVPN uses the configured transport tunnel.


From operational mode on PE1, run the show route table mpls.0 protocol evpn command to identify the LSP route.

From operational mode on PE1, run the show route table mpls.0 protocol evpn label label-number extensive command with the route label number to display the transport class information.


The output from PE1 and PE2 shows that we are routing traffic from our EVPN VPWS routing instance through the gold and bronze tunnels.