Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Example: Configuring Service Chaining Using VLANs on NFX150 Network Services Platform

This example shows how to configure service chaining using VLANs on the host bridge.


This example uses the following hardware and software components:

  • NFX150 running Junos OS Release 18.1R1

Before you configure service chaining, be sure you have:

  • Installed and launched the relevant VNFs, assigned the corresponding interfaces, and configured the resources.


Service chaining on a device running the disaggregated Junos OS allows multiple services, or virtual network functions (VNFs), to be applied to traffic as it flows through the device. This example explains how to configure the various layers of the device to enable traffic to enter the device, flow through two service VNFs, and exit the device.


This example uses a single device running the disaggregated Junos OS, as shown in Figure 1.

Figure 1: Service Chaining Using VLANsService Chaining Using VLANs

The key configuration elements include:

  • The front panel ports.

  • The internal-facing ports.

  • The VM interfaces. VNF interfaces must use the format eth#, where # is from 0 through 9.

  • VLANs, to provide bridging between the sxe and VM interfaces.


Configuring the Interfaces

Step-by-Step Procedure

To configure the interfaces:

  1. Log in to the CLI:

  2. Map the physical (heth) interfaces to the virtual (ge) interfaces.

  3. Configure a VLAN for the LAN-side interfaces.

  4. Configure the LAN-side front panel port and add it to the LAN-side VLAN.

    The LAN-side port is typically an access port, but could be a trunk port if appropriate.

  5. Configure the LAN-side internal-facing interface as a trunk port and add it to the LAN-side VLAN.

    The internal-facing interfaces are typically trunk ports, as they must support traffic from multiple front panel ports and VLANs.

  6. Configure the WAN side front panel port with vlan-tagging and an IP address:

  7. Configure the WAN side internal-facing interface as a vlan-tagged interface and assign an IP address to it:

  8. Commit the configuration.


From configuration mode, check the results of your configuration by entering the following show commands:

Configuring the VNF Interfaces and Creating the Service Chain

Step-by-Step Procedure

To configure the VNF interfaces and create the service chain:

  1. Configure the vmhost instance with either with LAN, WAN, or glue-vlan to be used for service chaining

  2. Bring up the VNF (vnf-name1) with one virtio interface mapped to VLAN, and another interface mapped to glue-vlan.

  3. Similarly bring up the second VNF (vnf-name2) with one interface mapped to VLAN2, and the second interface mapped to the same glue-vlan.

  4. Finally, configure the IP addresses and static routes for each interface of the VNFs as shown in Figure 1.