ip rpf-route-static

Function

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.

Format

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

Parameters

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.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mcast-base write

Usage Guidelines

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:

  • Changing RPF routes

    If the topology of multicast is the same as that of unicast, the transmission path of multicast data is the same as that of unicast data. You can configure multicast static routes to change the RPF routes. Thus, a transmission path dedicated for the multicast data is established, which is different from the transmission path of unicast data.
  • Connecting RPF routes

    On the network segment where unicast routes are blocked, when multicast static routes are not configured, packets cannot be forwarded because there is no RPF route. In such a case, you can configure multicast static routes. Therefore, the system can generate RPF routes, complete the RPF check, create routing entries, and guide the forwarding of packets.

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.

Example

# Configure multicast static routes.
<HUAWEI> system-view
[~HUAWEI] ip rpf-route-static 10.0.0.0 255.0.0.0 10.0.0.10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >