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:
- Configure the router interfaces. See the Junos OS Network Interfaces Library for Routing Devices.
- Configure an interior gateway protocol or static routing. See the Junos OS Routing Protocols Library for Routing Devices.
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.
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:
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- Configure DVMRP.
- 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
- 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
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.
Verification
To verify the configuration, run the following commands: