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:

Configuration

CLI Quick Configuration

To quickly configure DVMRP in unicast routing mode, copy the following commands into a text file and then paste the commands into the CLI.

[edit]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 Modification of the Junos OS Configuration in Junos OS CLI, Release 10.3.

To configure an MSDP routing instance:

  1. Configure the routing options.

    [edit]user@host# edit routing-options[edit routing -options]user@host# set rib inet.2 static route 0.0.0.0/0 discard[edit policy-options]user@host# set rib-groups pim-rg import-rib inet.2[edit policy-options]user@host# set rib-groups dvmrp-rg import-rib inet.2[edit policy-options]user@host# set rib-groups dvmrp-rg export-rib inet.2[edit policy-options]user@host# exit
  2. Configure DVMRP.
    [edit]user@host# edit protocols[edit protocols]user@host# set dvmrp rib-group inet dvmrp-rg[edit protocols]user@host# set dvmrp export dvmrp-export[edit protocols]user@host# set dvmrp interface all mode unicast-routing[edit protocols]user@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-rg[edit protocols]user@host# set pim interface all[edit protocols]user@host# exit
  4. Configure the DVMRP routing policy.
    [edit policy-options policy-statement dvmrp-export term 10]user@host# set from protocol static[edit policy-options policy-statement dvmrp-export term 10]user@host# set from route-filter 0.0.0.0/0 exact[edit policy-options policy-statement dvmrp-export term 10]user@host# set then accept
  5. If you are done configuring the device, commit the configuration.

    [edit protocols]user@host# commit

Results

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

user@host# show policy-optionspolicy-statement dvmrp-export {term 10 {from {protocol static;route-filter 0.0.0.0/0 exact;}then accept;}}
user@host# show protocolsdvmrp {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-optionsrib 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:

Related Topics