On the network shown in Figure 1, an RR is deployed in AS 100. The RR learns external routes from two egress routers and reflects the routing information to its clients (R1, R2, ..., Rn). All the clients have equal-cost upstream links to the egress routers. However, the RR selects an optimal route from those received from the two egress routers and reflects only the optimal route to its clients. Therefore, the external routing information received by each client has only one next hop (either egress 1 or 2). As a result, traffic cannot be load-balanced.
Create loopback 1 on both egress 1 and egress 2, configure the same IP address for the two interfaces, and establish IBGP peer relationships between the two interfaces and the RR.
After BGP routes recurse to IGP routes, traffic can be load-balanced between routes from each client to each egress router because of the same next hop addresses on the two egress routers.
Use the loopback1 on egress 1 and egress 2 only to establish IBGP peer relationships to prevent unpredicted risks.
Configure a route-policy on the RR in AS 100 so that traffic destined for AS 300 passes through egress 1 and that traffic destined for AS 400 passes through egress 2, as shown in Figure 2.
Perform the following operations on the RR in AS 100:
In this instance, an AS_Path-based filter is configured on the RR to filter routes. To implement more refined route filtering, you can configure a community filter or an ACL, IP prefix list, extcommunity filter, or RD filter, among which, the extcommunity filter and RD filter take effect only on VPNv4 and VPNv6 routes, and the rest filters take effect on both VPN routes and public routes.
Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.