Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] Filter Based Forwarding (FBF) and RIB groups implementation for inter-vlan traffic forwarding



Article ID: KB16411 KB Last Updated: 22 May 2020Version: 2.0

This article is written based on a customer requirement where the inter-vlan traffic from the EX Switch is directed to SRX .



  • To forward the Intervlan traffic on EX
  • The traffic from VLAN 10 and VLAN 20 will be directed to SRX and SRX will decide based on rules (NOTE: This KB article is for EX Switch configuration and operation only.)

Switch Configuration:

STEP 1: Configuration of Vlans and assigning the ports

set vlans vlan10 vlan-id 10
set vlans vlan10 interface ge-0/0/1.0
set vlans vlan10 interface ge-0/0/2.0
set vlans vlan10 interface ge-0/0/3.0

set vlans vlan20 vlan-id 20
set vlans vlan20 interface ge-0/0/4.0
set vlans vlan20 interface ge-0/0/5.0
set vlans vlan20 interface ge-0/0/6.0

STEP 2: Configuration of IP address

set interfaces vlan unit 10 family inet address
set vlans vlan10 l3-interface vlan.10

set interfaces vlan unit 20 family inet address
set vlans vlan20 l3-interface vlan.20

set interfaces ge-0/0/0 unit 0 family inet address

STEP 3: Filter based forwarding and RIB group

set routing-instances VRFx instance-type forwarding
set routing-instances VRFx routing-options static route next-hop

set routing-options interface-routes rib-group inet master
set routing-options rib-groups master import-rib inet.0
set routing-options rib-groups master import-rib VRFx.inet.0

STEP 4. Filter configuration 

set firewall family inet filter RVI term 1 then routing-instance VRFx

STEP 5. Apply Filter to RVI

set interfaces vlan unit 10 family inet filter input RVI
set interfaces vlan unit 20 family inet filter input RVI
Modification History:

2020-05-19: Article reviewed for accuracy. Minor formatting edits.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search