Configuring a Multicast Static Route
Context
A multicast static route specifies a reverse path forwarding (RPF) interface or RPF neighbor for multicast packets from a specified multicast source. Configure a multicast static route to:
Change an RPF route.
If you want an interface to receive multicast data packets from a specified multicast source but the interface is not the RPF interface for that multicast source, configure a multicast static route to specify this interface as the RPF interface for the multicast source. When the router receives multicast data packets from the multicast source, it performs an RPF check using the configured RPF route. Packets sent from the source to the router through other interfaces fail the RPF check.
Connect RPF routes.
If the unicast route on a network segment is incomplete, multicast packets cannot be forwarded because there is no RPF route. For example, when two adjacent devices run different routing protocols but the routing protocols do not import routes from each other, packets cannot be forwarded between the two devices. In this case, you can configure RPF static routes on the devices. The devices can perform an RPF check using the specified RPF interfaces so that multicast packets can be forwarded successfully.
Procedure
- Run system-view
The system view is displayed.
- Run ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ isis process-id | ospf process-id | rip process-id | bgp | static ] [ route-policy route-policy-name ] { rpf-nbr | interface-type interface-number } [ preference preference ] [ order order-number ]
A multicast static route is configured.
If the next-hop interface of a multicast static route is a P2P interface, select the interface-type interface-number parameter from rpf-nbr | interface-type interface-number to specify the outbound interface. If the next-hop interface is a P2MP interface, select the rpf-nbr parameter to specify the next-hop IP address.