A BGP device can use a route-filter to filter the routes to be advertised and modify route attributes to control the network traffic forwarding path.
BGP is used to transmit routing information between ASs, and route advertisement directly affects traffic forwarding.
In most cases, a BGP routing table has a large number of routes. Transmitting them will intensify the load of a device. To address this problem, configure the device to advertise only desired routes.
In addition, multiple routes to the same destination may exist and travel through different ASs. To direct routes to specific ASs, you also need to filter the routes to be advertised.
You can use XPL route-filters to control the BGP routes to be advertised to all peers or peer groups or to a specified peer or peer group.
Before using XPL to filter the BGP routes to be advertised, configure basic BGP functions.
Perform the following steps on the BGP device:
Perform the following steps on the BGP device:
Run the following commands to check configurations: