Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Route Resolution on PE Routers

    This example shows how to configure a routing table to accept routes from specific routing tables. It also shows how to configure a routing table to use specific import policies to produce a route resolution table to resolve routes.

    Requirements

    Before you begin, configure a Layer 3 VPN, as shown in one of the following examples:

    Overview

    One method to achieve IPv4 route scaling is to modify how BGP routes are added to the forwarding tables. By default, the Routing Protocol Process (rpd) adds all the routes in inet.0 and inet.3 to the resolution tree. Normally, this includes the resolved IPv4 BGP routes, which can increase memory consumption. To achieve better scaling for IPv4 routes, this example shows how to configure the Junos OS so that resolved BGP routes are not added to the resolution tree. This is achieved by applying an import policy on the route resolution table, which ensures it does not accept any BGP routes from inet.0.

    You would apply this configuration to all provider edge (PE) routers in the Layer 3 VPN.

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    PE Router

    set policy-options policy-statement protocol-bgp from protocol bgp set policy-options policy-statement protocol-bgp then rejectset routing-options resolution rib inet.0 import protocol-bgp

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure route resolution:

    1. Configure the routing policy.
      [edit policy-options policy-statement protocol-bgp]user@PE# set from protocol bgp user@PE# set then reject
    2. Apply the routing policy.
      [edit routing-options resolution]user@PE# set rib inet.0 import protocol-bgp
    3. If you are done configuring the device, commit the configuration.
      [edit]user@PE# commit

    Results

    Confirm your configuration by issuing the show policy-options and show routing-options commands.

    user@PE# show policy-options
    policy-statement protocol-bgp {from protocol bgp;then reject;}
    user@PE# show routing-options
    resolution {rib inet.0 {import protocol-bgp;}}

    Verification

    Confirm that the configuration is working properly by running the following commands:

    Published: 2013-02-28