(Optional) Enabling an RR to Modify Route Attributes Using an Export Policy

You can enable an RR to modify route attributes using an export policy to control BGP route selection.

Context

Route attributes cannot be modified using an export policy on an RR because it would cause routing loops. By default, an RR is disabled from modifying route attributes based on an export policy. However, if you need to re-plan the network traffic, you can enable the RR to modify route attributes based on an export policy.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family unicast

    The IPv4 unicast address family view is displayed.

  4. Run reflect change-path-attribute

    The RR is configured to modify BGP route attributes using an export policy.

    After the reflect change-path-attribute command is run on an RR, the following configurations (if performed) take effect:

    After the reflect change-path-attribute command is run on the RR, the peer route-policy export command takes precedence over the peer next-hop-invariable and peer next-hop-local commands.

  5. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >