Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring DVMRP to Announce Unicast Routes

This example shows how to use DVMRP to announce unicast routes used solely for multicast reverse-path forwarding (RPF) to set up the multicast control plane.

Requirements

Before you begin:

Overview

DVMRP has two modes. Forwarding mode is the default mode. In forwarding mode, DVMRP is responsible for the multicast control plane and multicast data forwarding. In the nondefault mode (which is shown in this example), DVMRP does not forward multicast data traffic. This mode is called unicast routing mode because in this mode DVMRP is only responsible for announcing unicast routes used for multicast RPF—in other words, for establishing the control plane. To forward multicast data, enable Protocol Independent Multicast (PIM) on the interface. If you have configured PIM on the interface, as shown in this example, you can configure DVMRP in unicast-routing mode only. You cannot configure PIM and DVMRP in forwarding mode at the same time.

This example includes the following settings:

  • policy-statement dvmrp-export—Accepts static default routes.
  • protocols dvmrp export dvmrp-export—Associates the dvmrp-export policy with the DVMRP protocol.

    All routing protocols use the routing table to store the routes that they learn and to determine which routes they advertise in their protocol packets. Routing policy allows you to control which routes the routing protocols store in and retrieve from the routing table. Import and export policies are always from the point of view of the routing table. So the dvmrp-export policy exports static default routes from the routing table and accepts them into DVMRP.

  • protocols dvmrp interface all mode unicast-routing—Enables all interfaces to announce unicast routes used solely for multicast RPF.
  • protocols dvmrp rib-group inet dvmrp-rg—Associates the dvmrp-rib routing table group with the DVMRP protocol to enable multicast RPF checks.
  • protocols pim rib-group inet pim-rg—Associates the pim-rg routing table group with the PIM protocol to enable multicast RPF checks.
  • routing-options rib inet.2 static route 0.0.0.0/0 discard—Redistributes static routes to all DVMRP neighbors. The inet.2 routing table stores unicast IPv4 routes for multicast RPF lookup. The discard statement silently drops packets without notice.
  • routing-options rib-groups dvmrp-rg import-rib inet.2—Creates the routing table for DVMRP to ensure that the routing protocol process imports routes properly.
  • routing-options rib-groups dvmrp-rg export-rib inet.2—Creates the routing table for DVMRP to ensure that the routing protocol process exports routes properly.
  • routing-options rib-groups pim-rg import-rib inet.2—Enables access to route information from the routing table that stores unicast IPv4 routes for multicast RPF lookup. In this example, the first routing table group named pim-rg contains local interface routes. This ensures that local interface routes get added to the inet.2 table.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

set policy-options policy-statement dvmrp-export term 10 from protocol static set policy-options policy-statement dvmrp-export term 10 from route-filter 0.0.0.0/0 exact set policy-options policy-statement dvmrp-export term 10 then acceptset protocols dvmrp rib-group inet set protocols dvmrp rib-group dvmrp-rg set protocols dvmrp export dvmrp-export set protocols dvmrp interface all mode unicast-routing set protocols dvmrp interface fxp0.0 disable set protocols pim rib-group inet pim-rg set protocols pim interface allset routing-options rib inet.2 static route 0.0.0.0/0 discard set routing-options rib-groups pim-rg import-rib inet.2 set routing-options rib-groups dvmrp-rg export-rib inet.2 set routing-options rib-groups dvmrp-rg import-rib inet.2

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure an MSDP routing instance:

  1. Configure the routing options.

    [edit routing-options][edit routing -options]user@host# set rib inet.2 static route 0.0.0.0/0 discarduser@host# set rib-groups pim-rg import-rib inet.2user@host# set rib-groups dvmrp-rg import-rib inet.2user@host# set rib-groups dvmrp-rg export-rib inet.2
  2. Configure DVMRP.
    [edit protocols]user@host# set dvmrp rib-group inet dvmrp-rguser@host# set dvmrp export dvmrp-exportuser@host# set dvmrp interface all mode unicast-routinguser@host# set dvmrp interface fxp0 disable
  3. Configure PIM so that PIM performs multicast data forwarding.
    [edit protocols]user@host# set pim rib-group inet pim-rguser@host# set pim interface all
  4. Configure the DVMRP routing policy.
    [edit policy-options policy-statement dvmrp-export term 10]user@host# set from protocol staticuser@host# set from route-filter 0.0.0.0/0 exactuser@host# set then accept
  5. If you are done configuring the device, commit the configuration.

    user@host# commit

Results

Confirm your configuration by entering the show policy-options command, the show protocols command, and the show routing-options command from configuration mode. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

user@host# show policy-options
policy-statement dvmrp-export {term 10 {from {protocol static;route-filter 0.0.0.0/0 exact;}then accept;}}
user@host# show protocols
dvmrp {rib-group inet dvmrp-rg;export dvmrp-export;interface all {mode unicast-routing;}interface fxp0.0 {disable;}}
pim {rib-group inet pim-rg;interface all;}
user@host# show routing-options
rib inet.2 {static {route 0.0.0.0/0 discard;}}rib-groups {pim-rg {import-rib inet.2;}dvmrp-rg {export-rib inet.2;import-rib inet.2;}}

Verification

To verify the configuration, run the following commands:

Published: 2013-07-31