Example: Configuring Multicast for Virtual Routers with IPv6 Interfaces
A virtual router is a type of simplified routing instance that has a single routing table. This example shows how to configure PIM in a virtual router.
Requirements
Before you begin configure an interior gateway protocol or static routing. See the Routing Protocols Configuration Guide.
Overview
You can configure PIM for the virtual-router instance type as well as for the vrf instance type. The virtual-router instance type is similar to the vrf instance type used with Layer 3 VPNs, but is used for non-VPN-related applications.
The virtual-router instance type has no VRF import, VRF export, VRF target, or route distinguisher requirements. The virtual-router instance type is used for non-Layer 3 VPN situations.
When PIM is configured under the virtual-router instance type, the VPN configuration is not based on RFC 2547, BGP/MPLS VPNs, so PIM operation does not comply with the Internet draft draft-rosen-vpn-mcast-07.txt Multicast in MPLS/BGP VPNs. In the virtual-router instance type, PIM operates in a routing instance by itself, forming adjacencies with PIM neighbors over the routing instance interfaces as the other routing protocols do with neighbors in the routing instance.
This example includes the following steps:
- On R1, configure a virtual router instance with three interfaces (ge-0/0/0.0, ge-0/1/0.0, and ge-0/1/1.0).
- Configure PIM and the RP.
- Configure an MLD static group containing interfaces ge-0/1/0.0 and ge-0/1/1.0.
After you configure this example, you should be able to send multicast traffic from R2 through ge-0/0/0 on R1 to the static group and verify that the traffic egresses from ge-0/1/0.0 and ge-0/1/1.0.
![]() | Note: Do not include the vpn-group-address statement for the virtual-router instance type. |
Figure 12 shows the topology for this example.
Figure 12: Virtual Router Instance with Three Interfaces

Configuration
CLI Quick Configuration
To quickly configure multicast for virtual routers, copy the following commands into a text file, remove any line breaks, and then paste the commands into the CLI.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Modification of the Junos OS Configuration in Junos OS CLI, Release 10.3.
To configure multicast for virtual routers:
Configure the interfaces.
[edit]user@host# edit interfaces[edit interfaces]user@host# set ge-0/0/0 unit 0 family inet6 address 2001:4:4:4::1/64[edit interfaces]user@host# set ge-0/1/0 unit 0 family inet6 address 2001:24:24:24::1/64[edit interfaces]user@host# set ge-0/1/1 unit 0 family inet6 address 2001:7:7:7::1/64[edit interfaces]user@host# exitConfigure the routing instance type.
[edit]user@host# edit routing-instances[edit routing-instances]user@host# set mvrf1 instance-type virtual-routerConfigure the interfaces in the routing instance.
[edit routing-instances]user@host# set mvrf1 interface ge-0/0/0[edit routing-instances]user@host# set mvrf1 interface ge-0/1/0[edit routing-instances]user@host# set mvrf1 interface ge-0/1/1Configure PIM and the RP in the routing instance.
[edit routing-instances]user@host# set mvrf1 protocols pim rp local family inet6 address 2001:1:1:1::1Configure PIM on the interfaces.
[edit routing-instances]user@host# set mvrf1 protocols pim interface ge-0/0/0[edit routing-instances]user@host# set mvrf1 protocols pim interface ge-0/1/0[edit routing-instances]user@host# set mvrf1 protocols pim interface ge-0/1/1[edit routing-instances]user@host# exitConfigure the MLD group.
[edit]user@host# edit protocols mld[edit protocols mld]user@host# set interface ge-0/1/0.0 static group ff0e::10[edit protocols mld]user@host# set interface ge-0/1/1.0 static group ff0e::10If you are done configuring the device, commit the configuration.
[edit routing-instances]user@host# commit
Results
Confirm your configuration by entering the show interfaces, show routing-instances, and show protocols commands.
Verification
To verify the configuration, run the following commands:
- show mld group
- show mld interface
- show mld statistics
- show multicast interface
- show multicast route
- show multicast rpf
- show pim interfaces
- show pim join
- show pim neighbors
- show route forwarding-table
- show route instance
- show route table
Related Topics
- Configuring Virtual-Router Routing Instances in VPNs in the VPNs Configuration Guide
- Types of VPNs in the VPNs Configuration Guide
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
