This section contains a configuration example and commands you can issue to verify a routing matrix configuration.
In the example shown in Figure 78, there are three routers: PE1, the CE router, and PE2.
Figure 78: 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 {
-
- 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 sample configuration for 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;
- }
- }
- }
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: