This section contains a configuration example and commands you can issue to verify multiprotocol BGP multicast VPN router configuration.
In the example shown in Figure 60, there are three routers: PE1, the CE router, and PE2. Each router is configured to support a specific role. This example is not a complete network.
Router PE1 is configured with multicast VPN A as a sender and a receiver site, and multicast VPN B, which is a receiver site. Router CE is configured with multicast VPN A as a receiver site. Router PE2 is configured with multicast VPN A as a sender site.
Figure 60: Multiprotocol BGP Multicast VPN Example

The relevant configuration for router PE1 follows.
Router PE1
- [edit]
- routing-instances {
-
- vpn-a {
- instance-type vrf;
- interface so-6/0/0.0;
- interface so-6/0/1.0;
-
- provider tunnel {
-
- rsvp-te {
- label-switched-path-template default-template;
- }
- }
-
- 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 relevant configuration for router PE2 follows.
Router PE2
- [edit]
- routing-instances {
-
- vpn-a {
- instance-type vrf;
- interface so-1/0/0.0;
-
- provider-tunnel {
-
- rsvp-te {
- label-switched-path-template default-template;
- }
- }
-
- protocols {
-
- mvpn {
- sender-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;
- }
- }
- }
- }
- }
- [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 {
- sender-site;
-
- router-target {
- export target:1:5;
- import unicast;
- }
- }
- }
- route-distinguisher 65535:1;
- vrf-target target:1:2;
-
- routing-options {
- auto-export;
- }
- }
- }