Route distribution within a VPN is controlled through BGP extended community attributes. RFC 2547 defines the following three attributes used by VPNs:
Figure 8 illustrates the function of the route target. PE Router PE1 adds the route target “VPN B” to routes received from the customer edge (CE) router at Site 1 in VPN B. When it receives the route, the egress router PE2 examines the route target, determines that the route is for a VPN that it services, and accepts the route. When the egress router PE3 receives the same route, it does not accept the route because it does not service any CE routers in VPN B.
Figure 8: VPN Attributes and Route Distribution
