The ip rpf-route-static command configures a multicast static route.
The undo ip rpf-route-static command deletes a multicast static route.
By default, no multicast static route is configured.
ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } { rpf-nbr | { interface-name | interface-type interface-number } } [ preference preValue ]
undo ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ rpf-nbr | { interface-name | interface-type interface-number } ]
undo ip rpf-route-static [ vpn-instance vpn-instance-name ] all
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of case-sensitive characters. By default, the instance is a public network instance. |
source-address |
Specifies the address of the multicast source. |
The address is in dotted decimal notation. |
mask |
Specifies the address mask of the multicast source. |
The address is in dotted decimal notation. |
mask-length |
Specifies the mask length of the multicast source address. |
The value is an integer that ranges from 0 to 32. |
rpf-nbr |
Specifies the IP address of the Reverse Path Forwarding (RPF) neighbor. |
The address is in dotted decimal notation. |
interface-type |
Specifies the type of an interface. |
- |
interface-number |
Specifies the number of an interface. |
- |
preference preValue |
Specifies the preference of routes. The greater the value is, the lower the preference is. |
The value is an integer ranging from 1 to 255. The default value is 1. |
all |
Indicates all multicast static routes in the multicast static routing table. |
- |
order order-num |
Specifies the sequence number of a multicast static route. |
The value is an integer that ranges from 1 to 100. |
bgp |
Indicates the BGP protocol. |
- |
ospf process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 65535. |
isis |
Indicates the IS-IS protocol. |
- |
rip |
Indicates the RIP protocol. |
- |
static |
Indicates static routes. |
- |
route-policy route-policy-name |
Specifies the name of a route-policy. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. |
Usage Scenario
Multicast static routes are an important basis of the RPF check. By configuring multicast static routes, you can specify an RPF interface and an RPF neighbor for the specific source of packets on the current Device.
Multicast static routes provide the following functions, depending on specific applicable environments:Prerequisites
The multicast routing-enable command is run in the public network instance view or VPN instance view.
Precautions
When configuring a multicast static route, configure the next hop interface in the command if the type of the next hop interface is P2P. If the next hop interface is not P2P, configure it in the next hop address form.
A multicast static route configured using the ip rpf-route-static command may not take effect if the outbound interface recursion fails or the specified interface is Down. Therefore, after running this command, you are advised to run the display ip routing-table protocol static command to check whether the configuration is successful or the configured multicast static route is effective.