The reflect change-path-attribute command enables an RR to modify route attributes of BGP routes through an export policy.
The undo reflect change-path-attribute command disables an RR from modifying route attributes of BGP routes through an export policy.
By default, an RR is disabled from modifying route attributes of BGP routes through an export policy.
Usage Scenario
According to standard protocols, RRs are disabled from modifying route attributes through an export policy; otherwise, routing loops may occur. Therefore, by default, an export policy cannot be configured on an RR to modify route attributes.
To enable an RR to modify route attributes of BGP routes through an export policy, run the reflect change-path-attribute command. The route attributes that can be modified are as follows:Precautions
If an export policy is configured on an RR, the configuration does not take effect unless the reflect change-path-attribute command is run. If an export policy and the reflect change-path-attribute command are configured on an RR, the BGP route selection may be affected. Therefore, exercise caution when using the command.
For example, Device A (with IPv6 address 2001:DB8:1::1) and Device B (with IPv6 address 2001:DB8:1::2) are IBGP peers, and Device A functions as an RR. If the following configurations exist on Device A: [*HUAWEI] route-policy aa permit node 10 [*HUAWEI-route-policy] apply ip-address next-hop 2001:DB8:2::2 [*HUAWEI-route-policy] quit [*HUAWEI] bgp 65001 [*HUAWEI-bgp] peer 2001:DB8:1::2 route-policy aa export