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

You can enable an RR to modify route attributes based on the export policy to change route selection results of the BGP4+.

Context

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

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv6-family unicast

    The IPv6 unicast address family view is displayed.

  4. Run reflect change-path-attribute

    You can enable the RR to modify the route attributes of the BGP4+ routes based on the export policy.

    After you enable the reflect change-path-attribute command on an RR, the configurations of the RR attributes modified using the export policy take effect immediately. Perform the following operations:

    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 >