Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring BGP Route Target Filtering for VPNs

BGP route target filtering reduces the number of routers that receive VPN routes and route updates, helping to limit the amount of overhead associated with running a VPN. BGP route target filtering is most effective at reducing VPN-related administrative traffic in networks where there are many route reflectors or AS border routers that do not participate in the VPNs directly (do not act as PE routers for the CE devices).

Figure 1 illustrates the topology for a network configured with BGP route target filtering for a group of VPNs.

Figure 1: BGP Route Target Filtering Enabled for a Group of VPNsBGP Route Target Filtering Enabled for a Group of VPNs

The following sections describe how to configure BGP route target filtering for a group of VPNs:

Configure BGP Route Target Filtering on Router PE1

This section describes how to enable BGP route target filtering on Router PE1 for this example.

Configure the routing options on router PE1 as follows:

Configure the BGP protocol on Router PE1 as follows:

Configure the vpn1 routing instance as follows:

Configure the vpn2 routing instance on Router PE1 as follows:

Once you have implemented this configuration, you should see the following when you issue a show route table bgp.rtarget.0 command:

Configure BGP Route Target Filtering on Router PE2

This section describes how to enable BGP route target filtering on Router PE2 for this example.

Configure the routing options on Router PE2 as follows:

Configure the BGP protocol on Router PE2 as follows:

Configure the vpn1 routing instance on Router PE2 as follows:

Configure the vpn2 routing instance on Router PE2 as follows:

Configure the vpn3 routing instance on Router PE2 as follows:

Once you have configured router PE2 in this manner, you should see the following when you issue the show route table bgp.rtarget.0 command:

Configure BGP Route Target Filtering on the Route Reflector

This section illustrates how to enable BGP route target filtering on the route reflector for this example.

Configure the routing options on the route reflector as follows:

Configure the BGP protocol on the route reflector as follows:

Once you have configured the route reflector in this manner, you should see the following when you issue the show route table bgp.rtarget.0 command:

Configure BGP Route Target Filtering on Router PE3

The following section describes how to enable BGP route target filtering on Router PE3 for this example.

Configure the routing options on Router PE3 as follows:

Configure the BGP protocol on Router PE3 as follows:

Configure the vpn1 routing instance on Router PE3 as follows:

Configure the vpn3 routing instance on Router PE3 as follows:

Configure the vpn4 routing instance on Router PE3 as follows:

Once you have configured Router PE3 in this manner, you should see the following when you issue the show route table bgp.rtarget.0 command: