Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

    Example: Configuring Damping Parameters

    This example shows how to configure damping parameters.

    Requirements

    Before you begin, configure router interfaces and configure routing protocols, as explained in Routing Policies Configuration Overview.

    Overview

    In this example, you configure a routing policy called policy1 and a corresponding routing term called term1. Within the term, you configure the route filter to include source routes greater than or equal to 10.210.0.0/16 and destination routes greater than or equal to 10.215.0.0/16. Then you group the source and destination prefixes into a forwarding class called forwarding-class1 and apply policy1 to the forwarding table. The routing policy is evaluated when routes are being exported from the routing table into the forwarding table. Only the active routes are exported from the routing table.

    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.

    set policy-options policy-statement dampenpolicy1 term dampenterm1 from route-filter 172.16.0.0/12 orlonger damping group1 set policy-options policy-statement dampenpolicy1 term dampenterm1 from route-filter 192.168.0.0/16 orlonger set policy-options policy-statement dampenpolicy1 term dampenterm1 from route-filter 10.0.0.0/8 orlongerset policy-options policy-statement test term 1 from protocol direct set policy-options damping group1 half-life 30 set policy-options damping group1 reuse 750 set policy-options damping group1 suppress 3000 set policy-options damping group1 max-suppress 60 set policy-options damping group2 half-life 40 set policy-options damping group2 reuse 1000 set policy-options damping group2 suppress 400 set policy-options damping group2 max-suppress 45 set policy-options damping group3 disableset protocols bgp damping set protocols bgp group groupA neighbor 172.16.15.14 import dampenpolicy1

    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 damping parameters:

    1. Specify the routes to dampen and associate each group of routes with a group name.

      [edit policy-options policy-statement dampenpolicy1 term dampenterm1]user@host# set from route-filter 172.16.0.0/12 orlonger damping group1user@host# set from route-filter 192.168.0.0/16 orlonger user@host# set from route-filter 10.0.0.0/8 orlonger
    2. Create and configure the damping parameter groups.

      [edit policy-options damping]user@host# set group1 half-life 30 max-suppress 60 reuse 750 suppress 3000user@host# set group2 half-life 40 max-suppress 45 reuse 1000 suppress 400user@host# set group3 disable
    3. Enable damping for BGP.

      [edit]user@host# set protocols bgp damping
    4. Apply the policy as an import policy for the BGP neighbor.

      [edit ]user@host# set protocols bgp group groupA neighbor 172.16.15.14 import dampenpolicy1

      Note: You can refer to the same routing policy one or more times in the same or different import statement.

    Results

    Confirm your configuration by entering the show policy-options and show protocols bgp commands from configuration mode. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    user@host# show policy-options
    policy-statement dampenpolicy1 {term dampenterm1 {from {route-filter 172.16.0.0/12 orlonger damping group1;route-filter 192.168.0.0/16 orlonger;route-filter 10.0.0.0/8 orlonger;}}}damping group1 {half-life 30;reuse 750;suppress 3000;max-suppress 60;}damping group2 {half-life 40;reuse 1000;suppress 400;max-suppress 45;}damping group3 {disable;}
    user@host# show protocols bgpdamping;
    group groupA {neighbor 172.16.15.14 {import dampenpolicy1;}}

    If you are done configuring the device, enter commit from configuration mode.

    Verification

    Confirm that the configuration is working properly.

    Verifying the Damping Parameters

    Purpose

    Verify that the policy and term are configured on the device and that the appropriate damping parameters are specified within the term.

    Action

    From operational mode, enter the show policy-options command.

    Verifying the Routing Policy

    Purpose

    Verify that damping is enabled for BGP and that the routing policy is applied to the routing protocol.

    Action

    From operational mode, enter the show protocols bgp command.

    Published: 2014-05-14