The auto-discovery command configures the auto-discovery (A-D) mode for the multicast VPN, ensuring the transmission of multicast VPN services on the public network tunnel which is based on the Protocol Independent Multicast-Source-Specific Multicast (PIM-SSM) multicast distribution tree (MDT), and associates an inbound multicast route-policy with the IPv4 address family of the current VPN instance.
The undo auto-discovery command deletes the configurations of the A-D mode for the multicast VPN and removes the association between the inbound multicast route-policy and the IPv4 address family of the current VPN instance.
By default, the A-D mode for the multicast VPN is not configured and the IPv4 address family of the current VPN instance is not associated with an inbound multicast route-policy.
Parameter | Description | Value |
---|---|---|
import |
Specifies the inbound. |
- |
route-policy route-policy-name |
Specifies the inbound multicast route-policy to associate with the IPv4 address family of the VPN instance. VPN unicast routes and MDT A-D routes are crossed based on VPN targets. To further filter the MDT A-D routes that can be crossed to a VPN instance, specify. route-policy in the command. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
mdt |
Specifies that the multicast VPN adopts the MDT-Subsequent Address Family Identifier (SAFI) A-D mode. |
- |
Usage Scenario
Currently, the mechanism of implementing the multicast VPN is that all Provider Edges (PEs) on the network know information about the Rendezvous Point (RP); in this manner, the PIM-SM MDT is established on the public network to transmit multicast VPN services. This mechanism, however, does not support the Share-Group address within the SSM address range. This is because PEs in the same VPN do not know the peer information of each other, therefore knowing nothing about the multicast source information. As a result, these PEs cannot directly send Join messages to the multicast source and establish the PIM-SSM MDT.
To solve this problem, in an autonomous system (AS), you can configure the BGP A-D mode to enable the automatic discovery of the PE information about PEs in the same VPN. In this manner, multicast VPN services can be transmitted on the public network tunnel which is based on the PIM-SSM MDT. Multicast VPN currently supports only the MDT-SAFI A-D mode, in which a new address family in the MDT-SAFI message advertised through BGP is defined. After the multicast VPN is configured on a PE, the multicast VPN configurations, including the Route Distinguisher (RD) and the Share-Group address, can be advertised to all BGP peers. After a remote PE (a BGP peer) receives the MDT-SAFI message advertised through BGP, the remote PE compares the RD carried in the message with its RD. If the RDs are the same, it indicates the remote PE is in the same VPN with the local PE. The remote PE then uses the MDT-SAFI message to establish the PIM-SSM MDT for transmitting multicast VPN services.Prerequisites
The multicast-domain share-group command has been run in the VPN.
Precautions
When configuring the A-D mode for the multicast VPN, you need to configure an A-D address family in the BGP view so that the corresponding BGP A-D mode can be used to implement the multicast VPN function. If the configured A-D mode is inconsistent with the A-D address family enabled in the BGP view, you cannot implement the A-D mode.
NOTE: This command is applied to the single-AS scenario, with no RP configured on the public network. The PEs enabled with the BGP A-D function must support the same PIM protocol and use the Share-Group address within the SSM address range. Running this command does not affect the original multicast VPN service flow. When the Share-Group address is in the Any-Source Multicast (ASM) address range, multicast VPN traffic can still be transmitted along the multicast tunnel in PIM-SM mode on the public network.<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 3.3.3.3 as-number 100 [*HUAWEI-bgp] ipv4-family mdt [*HUAWEI-bgp-af-mdt] peer 3.3.3.3 enable [*HUAWEI-bgp-af-mdt] quit [*HUAWEI-bgp] quit [*HUAWEI] commit [~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] vpn-target 100:1 both [*HUAWEI-vpn-instance-vpn1-af-ipv4] multicast routing-enable [*HUAWEI-vpn-instance-vpn1-af-ipv4] multicast-domain share-group 232.2.2.0 binding mtunnel 0 [*HUAWEI-vpn-instance-vpn1-af-ipv4] auto-discovery mdt