As we all know, in the mpls vpn network, all PE routers only maintain the ipv4 routing information required by the direct connection VPN, this feature is achieved by only entering a specific VPN-IPv4 routing, these specific routes are related to the RT configuration in the VRF, however, this implementation produces a problem where all BGP routes are maintained in the MP-BGP routing table of the PE router, even if some routes are not used in any VRF, whether in the memory of the PE router or in the aspect of notifying the PE router that does not use the information across the backbone network, this is an obvious waste of resources.
Based on the above understanding, the MP-BGP through some mechanisms to avoid appeal problem: "PE router on the automatic routing filtering of the Ali ): because the PE router may receive some routing information they do not need, so we want to be able to filter the MP-IBGP route updates received by the PE router at the entrance, the Automatic route filtering feature satisfies the filtering requirements. When the rt value of the MP-IBGP route received by the PE router does not match the VRF configured in any PE, the PE router discards it, to reduce the amount of information that the PE needs to store in memory, all PE routers enable this feature by default, without any additional configuration to enable it.
If the PE router acts as a route reflector for other PE routers at the same time, or the PE router acts as a peer of the MP-EBGP to exchange cross-domain VPN Information, We need to disable this feature, use the command: no bpg default router-filter "BGP Route Refresh: Because the automatic route filtering function is enabled on the PE router, when the configuration of the PE router changes, for example, if a new VRF is added or the existing VRF is deleted, the PE router's "requirements" for VPN routing may not be met in a timely manner. Therefore, BGP provides a routing refresh mechanism to achieve this goal. When this feature is used, after a short period of time after the configuration is changed, the PE router will ask his MP-IBGP neighbor to re-Send the route update to get the lost VPN-IPv4 information, at the same time, we can also use this function, use the command clear ip bgp * vpnv4 unicast in, manually refresh the VPN route information. After you type this command, the router will send a route refresh request to all PE neighbors.
The feature can reduce the number of routing information that the PE router needs to maintain, but useless routing information will still be transmitted in the network, instead, it is discarded only after arriving at a specific PE router. To avoid waste of network resources, BGP provides the open-source IP address library feature to notify its neighbors of its inbound route filters, this allows unnecessary routing information to be filtered out before arriving at the receiver PE router. The OPEN message is used to exchange the OPEN message in the session creation phase of the two PE routers.
Separate MP-IBGP sessions between PE routers each PE router only needs to receive the route of the VPN they serve, therefore, we can drag different PE routers into an independent MP-IBGP Cluster Based on the VPN service object, the PE router in the same cluster to establish a full mesh MP-IBGP session.
Routing reflectors and consortium in large networks, full mesh BGP sessions impose great limitations on the scalability of the network, and the number of intra-domain MP-IBGP sessions can be reduced through routing reflectors and consortium.
Route reflector group: Configure an RT list on the route reflectors to specify a specific VPN route. By configuring a route reflector group, the route reflector uses the open-source IP address to advertise its inbound route filters, in this way, the PE client router will not send useless routes to the route reflectors. Related commands: bgp rr-group {extcom-list-number}
Edit recommendations]