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:

  1. 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).
  2. Configure PIM and the RP.
  3. 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

Image g040605.gif

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.

[edit]set interfaces ge-0/0/0 unit 0 family inet6 address 2001:4:4:4::1/64 set interfaces ge-0/1/0 unit 0 family inet6 address 2001:24:24:24::1/64set interfaces ge-0/1/1 unit 0 family inet6 address 2001:7:7:7::1/64 set protocols mld interface ge-0/1/0.0 static group ff0e::10 set protocols mld interface ge-0/1/1.0 static group ff0e::10 set routing-instances mvrf1 instance-type virtual-router set routing-instances mvrf1 interface ge-0/0/0.0 set routing-instances mvrf1 interface ge-0/1/0.0 set routing-instances mvrf1 interface ge-0/1/1.0 set routing-instances mvrf1 protocols pim rp local family inet6 address 2001:1:1:1::1 set routing-instances mvrf1 protocols pim interface ge-0/0/0.0 set routing-instances mvrf1 protocols pim interface ge-0/1/0.0 set routing-instances mvrf1 protocols pim interface ge-0/1/1.0

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:

  1. 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# exit
  2. Configure the routing instance type.

    [edit]user@host# edit routing-instances[edit routing-instances]user@host# set mvrf1 instance-type virtual-router
  3. Configure 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/1
  4. Configure 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::1
  5. Configure 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# exit
  6. Configure 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::10
  7. If 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.

user@host# show interfacesge-0/0/0 {unit 0 {family inet6 {address 2001:4:4:4::1/64;}}}ge-0/1/0 {unit 0 {family inet6 {address 2001:24:24:24::1/64;}}}ge-0/1/1 {unit 0 {family inet6 {address 2001:7:7:7::1/64;}}}
user@host# show routing-instancesmvrf1 {instance-type virtual-router;interface ge-0/0/0.0;interface ge-0/1/0.0;interface ge-0/1/1.0;protocols {pim {rp {local {family inet6 {address 2001:1:1:1::1;}}}interface ge-0/0/0.0;interface ge-0/1/0.0;interface ge-0/1/1.0;}}}
user@host# show protocolsmld {interface ge-0/1/0.0 {static {group ff0e::10;}}interface ge-0/1/1.0 {static {group ff0e::10;}}}

Verification

To verify the configuration, run the following commands:

Related Topics