ON THIS PAGE
Example: Configuring Service Chaining for LAN Routing
This example shows how to configure service chaining for LAN routing.
Requirements
This example uses the following hardware and software components:
NFX150 running Junos OS Release 18.1R1
Overview
This example explains how to configure the various layers of the device to enable traffic flow within a LAN network.
Topology
This example uses the topology shown in Figure 1.
Configuration
Map the Interfaces
Step-by-Step Procedure
Map the heth-0-0 physical port to the FPC0 interface.
user@host# set vmhost virtualization-options interfaces ge-0/0/0 mapping interface heth-0-0
Map the heth-0-1 physical port to the FPC0 interface.
user@host# set vmhost virtualization-options interfaces ge-0/0/1 mapping interface heth-0-1
Configure the Layer 2 Datapath
Step-by-Step Procedure
Configure VLANs for the LAN-side interfaces.
user@host# set vlans vlan100 vlan-id 100 user@host# set vlans vlan200 vlan-id 200
Configure the LAN-side front panel ports and add them to the LAN-side VLAN.
user@host# set interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members vlan100 user@host# set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan100
Configure the internal-facing interfaces as trunk ports and add them 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.
user@host# set interfaces sxe-0/0/0 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces sxe-0/0/0 unit 0 family ethernet-switching vlan members vlan100 user@host# set interfaces sxe-0/0/1 unit 0 family ethernet-switching interface-mode trunk user@host# set interfaces sxe-0/0/1 unit 0 family ethernet-switching vlan members vlan200
Configure the Layer 3 Datapath
Step-by-Step Procedure
Map the ge-1/0/1 interface to the NFV backplane:
user@host# set vmhost virtualization-options interfaces ge-1/0/1
Configure VLAN tagging on ge-1/0/0:
user@host# set interfaces ge-1/0/0 vlan-tagging user@host# set interfaces ge-1/0/0 unit 0 vlan-id 100 user@host# set interfaces ge-1/0/0 unit 0 family inet address 192.0.3.1/24
Configure VLAN tagging on ge-1/0/1:
user@host# set interfaces ge-1/0/1 vlan-tagging user@host# set interfaces ge-1/0/1 unit 0 vlan-id 200 user@host# set interfaces ge-1/0/1 unit 0 family inet address 203.0.113.2/30