Consider the example shown in Figure 83. In this example, there are three PE routers: PE1, PE2, and PE3. In this example, all three multiprotocol BGP-based MPLS VPNs are both sender and receiver sites.
Figure 83: Multiprotocol BGP Multicast VPN Example

Router PE1 is configured with multicast VPN A, which is a sender and a receiver site, and multicast VPN B, which is a receiver site.
Router PE1
- [edit]
- routing-instances {
-
- vpn-a {
- instance-type vrf;
- interface so-6/0/0.0;
- interface so-6/0/1.0;
-
-
provider tunnel {
-
- pim-sm {
- group-address 224.1.1.1;
- }
- }
-
- protocols {
-
- mvpn {
-
- route-target {
- export-target unicast target:1:4;
- import-target unicast sender target target:1:4 receiver;
- }
- }
- }
- route-distinguisher 65535:0;
- vrf-target target:1:1;
-
- routing-options {
- auto-export;
-
- static {
- route 172.16.0.0/16 next-hop so-0/0/0.0;
- route 172.17.0.0/16 next-hop so-6/0/1.0;
- }
- }
- }
- }
- [edit]
- routing-instance {
-
- vpn-b {
- instance-type vrf;
- interface ge-0/3/0.0;
-
- provider-tunnel {
-
- pim-sm {
- group-address 224.1.1.2;
- }
- }
-
- protocols {
-
- mvpn;
- receiver-site;
-
- router-target {
- export target:1:5;
- import unicast;
- }
- }
- route-distinguisher 65535:1;
- vrf-target target:1:2;
-
- routing-options {
- auto-export;
- }
- }
- }
- }
The sample configuration for PE2 follows.
Router PE2
- [edit]
- routing-instances {
-
- vpn-a {
- instance-type vrf;
- interface so-1/0/0.0;
-
- provider-tunnel {
-
- pim-sm {
- group-address 224.1.1.1;
- }
- }
-
- protocols {
-
- mvpn {
- receiver-site;
-
- route-target {
- export target:1:4;
- import unicast;
- }
- }
- route-distinguisher 65535:2;
- vrf-target target:1:1;
-
- routing-options {
- auto-export;
-
- static {
- route 172.16.0.0/16 next-hop so-0/0/0.1;
- route 172.17.0.0/16 next-hope so-6/0/1.0;
- }
- }
- }
- }
- }
The sample configuration for PE3 follows.
Router PE3
- [edit]
- routing-instances {
-
- vpn-a {
- instance-type vrf;
- interface so-2/0/1.0;
-
- provider-tunnel {
-
- pim-sm {
- group-address 224.1.1.1;
- }
- }
-
- protocols {
- mvpn;
-
- receiver-site;
-
- route-target {
- export target:1:4;
- import unicast;
- }
- }
- }
- route-distinguisher 65535:3;
- vrf-target target:1:1;
-
- routing-options {
-
- static {
- route 172.16.0.0/16 next-hop so-0/0/0.0
- route 172.17.0.0/16 next-hop so-6/0/1.0;
- }
- }
-
- vpn-b {
- instance-type vrf;
- interface ge-1/3/0.0;
-
- provider-tunnel {
-
- pim-sm {
- group-address 224.1.1.2;
- }
- }
-
- protocols {
- mvpn;
-
- sender-site {
-
- route-target {
- export unicast;
- import target:1:5;
- }
- }
- route-distinguisher 65525:4;
- vrf-target target:1:2;
-
- routing-options {
- auto-export;
- }
- }
- }
- }
- }
To verify correct operation of multiprotocol BGP multicast VPNs, use the following commands:
The following sections show the output of these commands used with the configuration example: