<｜begin▁of▁sentence｜>
### Instruction:
What is the purpose of the 'next-hop-self' command in IOS XR BGP configuration?
### Response:
The 'next-hop-self' command causes the BGP speaker to set itself as the next hop for routes advertised to a neighbor. This is commonly used when the BGP speaker is aggregating routes from multiple neighbors and advertising them to another neighbor. Setting next-hop-self ensures that the receiving neighbor has a route to reach the advertised prefixes.
<|EOT|>
