Related Documentation
Example: Configuring DVMRP
This example shows how to use DVMRP to announce routes used for multicast routing as well as multicast data forwarding.
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 is a distance vector protocol for multicast. It is similar to RIP, in that both RIP and DVMRP have issues with scalability and robustness. PIM domains are more commonly used than DVMRP domains. In some environments, you might need to configure interoperability with DVMRP.
This example includes the following DVMRP settings:
- protocols dvmrp rib-group—Associates the dvmrp-rib routing table group with the DVMRP protocol to enable multicast RPF lookup.
- protocols dvmrp interface—Configures the DVMRP interface. The interface of a DVMRP router can be either a physical interface to a directly attached subnetwork or a tunnel interface to another multicast-capable area of the Multicast Backbone (MBone). The DVMRP hold-time period is the amount of time that a neighbor is to consider the sending router (this router) to be operative (up). The default hold-time period is 35 seconds.
- protocols dvmrp interface hold-time—The DVMRP hold-time period is the amount of time that a neighbor is to consider the sending router (this router) to be operative (up). The default hold-time period is 35 seconds.
- protocols dvmrp interface metric—All interfaces
can be configured with a metric specifying cost for receiving packets
on a given interface. The default metric is 1.
For each source network reported, a route metric is associated with the unicast route being reported. The metric is the sum of the interface metrics between the router originating the report and the source network. A metric of 32 marks the source network as unreachable, thus limiting the breadth of the DVMRP network and placing an upper bound on the DVMRP convergence time.
- routing-options rib-groups—Enables DVMRP
to access route information from the unicast routing table, inet.0, and from a separate routing table that is reserved for DVMRP. In
this example, the first routing table group named ifrg contains
local interface routes. This ensures that local interface routes get
added to both the inet.0 table for use by unicast protocols
and the inet.2 table for multicast RPF check. The second
routing table group named dvmrp-rib contains inet.2 routes.
DVMRP needs to access route information from the unicast routing table, inet.0, and from a separate routing table that is reserved for DVMRP. You need to create the routing table for DVMRP and to create groups of routing tables so that the routing protocol process imports and exports routes properly. We recommend that you use routing table inet.2 for DVMRP routing information.
- routing-options interface-routes— After defining the ifrg routing table group, use the interface-routes statement to insert interface routes into the ifrg group—in other words, into both inet.0 and inet.2. By default, interface routes are imported into routing table inet.0 only.
- sap—Enables the Session Directory Announcement
Protocol (SAP) and the Session Directory Protocol (SDP). Enabling
SAP allows the router to receive announcements about multimedia and
other multicast sessions.
SAP always listens to the address and port 224.2.127.254:9875 for session advertisements. To add other addresses or pairs of address and port, include one or more listen statements.
Sessions learned by SDP, SAP's higher-layer protocol, time out after 60 minutes.
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:
Create the routing tables for DVMRP routes.
[edit routing-options]user@host# set interface-routes rib-group inet ifrguser@host# set rib-groups ifrg import-rib [ inet.0 inet.2 ]user@host# set rib-groups dvmrp-rib import-rib inet.2user@host# set rib-groups dvmrp-rib export-rib inet.2- Configure SAP and SDP.[edit protocols]user@host# set sap
- Enable DVMRP on the router and associate the dvmrp-rib routing table group with DVMRP to enable multicast RPF checks.[edit protocols]user@host# set dvmrp rib-group dvmrp-rib
- Configure the DVMRP interface with a hold-time value and a metric. This example shows an IP-over-IP encapsulation tunnel interface.
If you are done configuring the device, commit the configuration.
user@host# commit
Results
Confirm your configuration by entering the show routing-options command and the show protocols 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: