Specifying the MVPN source interface

About MVPN source interfaces

An MTI of a VPN instance uses the IP address of the MVPN source interface as the source address to encapsulate multicast packets for the VPN instance.

Restrictions and guidelines

For the PE to obtain correct routing information, you must specify the interface used for establishing BGP peer relationship as the MVPN source interface.

For an MVPN that transmits both IPv4 and IPv6 multicast packets, you must specify the same MVPN source interface in MVPN IPv4 and IPv6 address family views.

The MTI takes effect only after the default-group and MVPN source interface are specified and the MTI obtains the public IP address of the MVPN source interface. On some devices, for the MTI to forward packets, you must create a service loopback group of the multicast type. For more information about creating service loopback groups, see Layer 2—LAN Switching Configuration Guide.

Procedure

  1. Enter system view.

    system-view

  2. Enter MVPN view.

    multicast-mvpn vpn-instance vpn-instance-name mode mdt

  3. Enter MVPN address family view.

    • Enter MVPN IPv4 address family view.

      address-family ipv4

    • Enter MVPN IPv6 address family view.

      address-family ipv6

  4. Specify the MVPN source interface.

    source interface-type interface-number

    By default, no MVPN source interface is specified.