The reflect change-path-attribute command enables an RR to modify path attributes of BGP routes through an export policy.
The undo reflect change-path-attribute command disables an RR from modifying path attributes of BGP routes through an export policy.
By default, an RR is disabled from modifying path attributes of BGP routes through an export policy.
Usage Scenario
According to standard protocols, RRs are disabled from modifying path attributes through an export policy; otherwise, routing loops may occur. Therefore, by default, an export policy cannot be configured on an RR to modify path attributes.
To enable an RR to modify path attributes of BGP routes through an export policy, run the reflect change-path-attribute command. The attributes that can be modified are as follows:Precautions
Export policies on the RR do not take effect before the reflect change-path-attribute command is run. After the reflect change-path-attribute command is run, these configurations may take effect and affect BGP route selection. Exercise caution when using this command.
For example, an IBGP connection is established between A (1.1.1.1) and B (1.1.1.2), and A functions as an RR. If the following configurations exist on A: # route-policy aa permit node 10 apply ip-address next-hop 1.1.1.1 # bgp 65001 peer 1.2.2.2 route-policy aa export # Then: