Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Configure a Simple Routing Policy

 

Purpose

Routing policy allows you to control the information shared with BGP neighbors and provides the opportunity to filter and modify the information you receive. Typically, a network is injected into BGP using a policy. This may also be done through a static route. In the network in BGP Network Topology, a static route export policy is used to inject routes into BGP.

Action

To configure a simple routing policy, follow these steps:

  1. In configuration mode, go to the following hierarchy level:

  2. Configure a static route for redistribution to other autonomous systems:

  3. Configure a routing policy that matches and accepts the configured static routes into BGP updates:

  4. Apply the policy created in Step 3 to all BGP neighbors:

  5. Verify and commit the configuration:

Sample Output

Meaning

The sample output shows that routing policy send-statics is configured on the router. The routing policy matches and accepts the configured static routes into the routing table and injects the routes into BGP updates. Typically, a routing policy is applied at the group level, although it can be applied at the global level, as shown in this example.