Support Support Downloads Knowledge Base Case Manager My Juniper 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] How to import routes from and to the Master and the virtual routing table to enable communication in the routing table

0

0

Article ID: KB19860 KB Last Updated: 04 Mar 2017Version: 2.0
Summary:
This article provides information on how to import routes from and to the Master and the virtual routing table to enable communication in the routing table.

Virtual routing and forwarding (VRF) divides an EX-series switch into multiple routing tables. VRF allows you to isolate VLAN traffic, without using multiple devices to segment the network.

Symptoms:
  • Two VLANs are present and RVIs are created for both of the VLANs and are each mapped to a different routing table.

  • For communication to occur between both of the routing tables, you have to ensure that the routes are available in both of the routing tables.

Cause:

Solution:
Topology:
  ----------------------------------------------
  |                  EX- Switch                |
  -----------|--------------------------|-------

             |                          |
           PC-A                       PC-B
                      
In this scenario, PC-A belongs to the V1 VLAN (ID 10) with the L3 IP address as 10.0.0.1/24 and it is part of the inet.0 default routing table.

PC-B belongs to the V2 VLAN (ID 20) with the L3 IP address as 20.0.0.1/24, which is part of the TEST virtual route:
set interfaces vlan unit 10 family inet address 10.0.0.1/24
set interfaces vlan unit 20 family inet address 20.0.0.1/
24
VRF configuration:
set routing-instances TEST instance-type virtual-router
set routing-instances TEST interface vlan.20
Configuring the policy options to import from the Master routing table to the Test routing table:
set policy-options policy-statement XYZ term 1 from instance master
set policy-options policy-statement XYZ term 1 from route-filter 10.0.0.0/24 exact
set policy-options policy-statement XYZ term 1 then accept
set policy-options policy-statement XYZ term 2 then reject
Configuring the policy options to import from the Test routing table to the master routing table:
set policy-options policy-statement ABC term 1 from instance TEST
set policy-options policy-statement ABC term 1 from route-filter 20.0.0.0/24 exact
set policy-options policy-statement ABC term 1 then accept
set policy-options policy-statement ABC term 2 then reject
Setting the import for the Master routing table:
set routing-options instance-import ABC
Setting the import for the Test routing table:
set routing-instances TEST routing-options instance-import XYZ
Now, if the routing table is checked, you will see both of the routes in both of the routing tables and a ping from PC-A to PC-B will be successful.
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