ON THIS PAGE
Example: Configuring Service Chaining for LAN Routing on NFX350 Devices
This example shows how to configure service chaining for LAN routing.
Requirements
This example uses an NFX350 device running Junos OS Release 19.4R1.
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
Configuring 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@jcp# 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 vlan200
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
Configuring the Layer 3 Datapath
Step-by-Step Procedure
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.2.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/24