The multicast extranet select-rpf command configures a multicast routing policy for a VPN instance, specifying that the upstream interface of the RPF route selected by the PIM entry corresponding to a multicast group address belongs to another VPN or public network instance.
The undo multicast extranet select-rpf command deletes the multicast routing policy of a VPN instance.
By default, no multicast routing policies are configured for VPN instances.
multicast extranet select-rpf public group group-address { group-mask | group-mask-length }
multicast extranet select-rpf vpn-instance vpn-instance-name group group-address { group-mask | group-mask-length }
undo multicast extranet select-rpf all
undo multicast extranet select-rpf public group group-address { group-mask | group-mask-length }
undo multicast extranet select-rpf vpn-instance vpn-instance-name group group-address { group-mask | group-mask-length }
| Parameter | Description | Value | 
|---|---|---|
| group-mask | 
 Specifies the mask of a multicast group address.  | 
The value ranges from 240.0.0.0 to 255.255.255.255, in dotted decimal notation.  | 
| group-mask-length | 
 Specifies the mask length of a multicast group address.  | 
The value is an integer ranging from 4 to 32.  | 
| vpn-instance vpn-instance-name | 
 Specifies the name of a VPN instance.  | 
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.  | 
| group group-address | 
 Specifies a multicast group address range for PIM entries to which a multicast routing policy applies.  | 
The value is a string case-sensitive characters, spaces not supported.  | 
| all | 
 Indicates all multicast routing policies.  | 
-  | 
| public | 
 Specifies a public network instance as the source instance.  | 
-  | 
Usage Scenario
MVPN extranet enables a service provider on a VPN to provide multicast services for users on other VPNs. To configure MVPN extranet in remote cross scenarios where a source VPN instance is configured on a receiver PE, run the multicast extranet select-rpf command to configure a multicast routing policy, specifying that the upstream interface of the RPF route selected by the PIM entry corresponding to a multicast group address belongs to another VPN or public network instance.
Prerequisites
The multicast routing-enable command has been configured in the VPN.
Precautions
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn2 [*HUAWEI-vpn-instance-vpn2] ipv4-family [*HUAWEI-vpn-instance-vpn2-af-ipv4] route-distinguisher 200:1 [*HUAWEI-vpn-instance-vpn2-af-ipv4] quit [*HUAWEI-vpn-instance-vpn2] quit [*HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] multicast routing-enable [*HUAWEI-vpn-instance-vpn1-af-ipv4] multicast extranet select-rpf vpn-instance vpn2 group 225.1.1.0 24