This section provides an example for configuring NG MVPN extranet in the local cross scenario where the source and receiver VPN instances reside on the same PE.
In NG MVPN scenarios, a service provider on a VPN may need to provide multicast services for users on other VPNs. NG MVPN extranet can be used to distribute multicast services between different VPNs.
In the local cross scenario of intra-AS NG MVPN shown in Figure 1, the receiver in VPN RED requires multicast data from the source in VPN BLUE. To meet this requirement, deploy NG MVPN extranet.
The configuration roadmap is as follows:
Configure basic intra-AS NG MVPN functions.
Configure a rendezvous point (RP) to serve the NG MVPN extranet.
To complete the configuration, you need the following data:
RD of VPN BLUE: 100:1; VPN target of VPN BLUE: 100:1
RD of VPN RED: 200:1; VPN targets of VPN RED: 200:1 and 100:1
Multicast group address used by the NG MVPN extranet: 228.0.0.1
# In the VPN BLUE and VPN RED views on CE1, CE2, and PE2, configure CE1's loopback 1 as a static RP to serve the NG MVPN extranet.
Source and receiver VPN instances support only static RPs. The routes to a static RP and source must be in the same VPN instance.
# Configure CE1.
[~CE1] pim [*CE1-pim] static-rp 4.4.4.4 [*CE1-pim] quit [*CE1] commit
# Configure PE2.
[~PE2] pim vpn-instance BLUE [*PE2-pim-BLUE] static-rp 4.4.4.4 [*PE2-pim-BLUE] quit [*PE2] pim vpn-instance RED [*PE2-pim-RED] static-rp 4.4.4.4 [*PE2-pim-RED] quit [*PE2] commit
# Configure CE2.
[~CE2] pim [*CE2-pim] static-rp 4.4.4.4 [*CE2-pim] quit [*CE2] commit
By checking the configuration, you can view that the receiver in VPN RED can receive multicast data from the source in VPN BLUE.
Run the display pim routing-table command on PE2 to check information about the PIM routing table. The following command output shows that the upstream interface of the RPF route selected by the PIM entry with the group address 228.0.0.1 belongs to VPN BLUE.
[~PE2] display pim vpn-instance RED routing-table extranet source-vpn-instance vpn-instance BLUE VPN-Instance: RED Total 1 (*, G) entry; 1 (S, G) entry Total matched 1 (*, G) entry; 1 (S, G) entry (*, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: WC UpTime: 00:03:05 Upstream interface: MCAST_Extranet(BLUE), Refresh time: 00:03:05 Upstream neighbor: 10.1.2.1 RPF prime neighbor: 10.1.2.1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/16 Protocol: pim-sm, UpTime: 00:03:05, Expires: 00:03:26 (10.1.1.2, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:00:02 Upstream interface: MCAST_Extranet(BLUE), Refresh time: 00:00:02 Upstream neighbor: 10.1.2.1 RPF prime neighbor: 10.1.2.1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/16 Protocol: pim-sm, UpTime: 00:00:06, Expires: -
The following command output shows that the MVPN extranet receiver of VPN BLUE belongs to VPN RED.
[~PE2] display pim vpn-instance BLUE routing-table extranet receive-vpn-instance vpn-instance RED VPN-Instance: BLUE Total 1 (*, G) entry; 1 (S, G) entry Total matched 1 (*, G) entry; 1 (S, G) entry (*, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: WC EXTRANET UpTime: 00:06:16 Upstream interface: GigabitEthernet0/1/0, Refresh time: 00:06:16 Upstream neighbor: 10.1.2.1 RPF prime neighbor: 10.1.2.1 Downstream interface(s) information: none Extranet receiver(s): 1 1: RED (10.1.1.2, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:03:13 Upstream interface: GigabitEthernet0/1/0, Refresh time: 00:03:13 Upstream neighbor: 10.1.2.1 RPF prime neighbor: 10.1.2.1 Downstream interface(s) information: none Extranet receiver(s): 1 1: RED
Run the display multicast routing-table command on PE2 to check information about the multicast routing table. The following command output shows that the upstream interface of the RPF route selected by the multicast routing entry with the group address 228.0.0.1 belongs to VPN BLUE.
[~PE2] display multicast vpn-instance RED routing-table extranet source-vpn-instance vpn-instance BLUE Multicast routing table of VPN instance: RED Total 0 (*, G) entry; 1 (S, G) entry, 1 matched 00001: (10.1.1.2, 228.0.0.1) Uptime: 05:39:09 Upstream Interface: MCAST_Extranet(BLUE) List of 1 downstream interface 1: GigabitEthernet0/1/16
Run the display multicast rpf-info command on PE2 to check the RPF routing information of source 10.1.1.2. The following command output shows that the upstream interface of the RPF route selected by the multicast routing entry with the group address 228.0.0.1 belongs to VPN BLUE.
[~PE2] display multicast vpn-instance RED rpf-info 10.1.1.2 228.0.0.1
VPN-Instance: RED
RPF information about source 10.1.1.2 and group 228.0.0.1
RPF interface: MCAST_Extranet
RPF Source VPN-Instance: BLUE
Referenced route/mask: 10.1.1.0/24
Referenced route type: unicast
Route selection rule: preference-preferred
Load splitting rule: disable
After the preceding configurations are complete, the receiver can receive multicast data from the source. Run the display pim routing-table command on CE2 to check information about the PIM routing table. The following command output shows that multicast data has reached CE2 and has been forwarded to the receiver.
[~CE2] display pim routing-table VPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: WC UpTime: 00:00:09 Upstream interface: GigabitEthernet0/1/16, Refresh time: 00:00:09 Upstream neighbor: 10.1.3.1 RPF prime neighbor: 10.1.3.1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/8 Protocol: static, UpTime: 00:00:09, Expires: - (10.1.1.2, 228.0.0.1) RP: 4.4.4.4 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:04:06 Upstream interface: GigabitEthernet0/1/16, Refresh time: 00:04:06 Upstream neighbor: 10.1.3.1 RPF prime neighbor: 10.1.3.1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/8 Protocol: pim-sm, UpTime: 00:00:09, Expires: -
PE2 configuration file
# sysname PE2 # multicast routing-enable # ip vpn-instance BLUE ipv4-family route-distinguisher 100:1 apply-label per-instance vpn-target 100:1 export-extcommunity vpn-target 100:1 import-extcommunity multicast routing-enable mvpn sender-enable c-multicast signal bgp rpt-spt mode ipmsi-tunnel mldp # ip vpn-instance RED ipv4-family route-distinguisher 200:1 vpn-target 200:1 export-extcommunity vpn-target 200:1 import-extcommunity vpn-target 100:1 import-extcommunity multicast routing-enable mvpn c-multicast signal bgp multicast extranet select-rpf vpn-instance BLUE group 228.0.0.1 24 # mpls lsr-id 3.3.3.3 # mpls # mpls ldp mldp p2mp # interface GigabitEthernet0/1/0 undo shutdown ip binding vpn-instance BLUE ip address 10.1.2.2 255.255.255.0 pim sm # interface GigabitEthernet0/1/8 undo shutdown ip address 192.168.2.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/1/16 undo shutdown ip binding vpn-instance RED ip address 10.1.3.1 255.255.255.0 pim sm # interface LoopBack1 ip address 3.3.3.3 255.255.255.255 pim sm # bgp 100 peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack1 # ipv4-family unicast peer 1.1.1.1 enable # ipv4-family vpnv4 policy vpn-target peer 1.1.1.1 enable # ipv4-family vpn-instance BLUE import-route direct import-route ospf 3 # ipv4-family vpn-instance RED import-route direct import-route ospf 2 # ospf 1 area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 192.168.2.0 0.0.0.255 # ospf 2 vpn-instance RED import-route bgp area 0.0.0.0 network 10.1.3.0 0.0.0.255 # ospf 3 vpn-instance BLUE import-route bgp area 0.0.0.0 network 10.1.2.0 0.0.0.255 # pim # pim vpn-instance BLUE static-rp 4.4.4.4 # pim vpn-instance RED static-rp 4.4.4.4 # return
CE1 configuration file
# sysname CE1 # multicast routing-enable # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.2.1 255.255.255.0 pim sm # interface GigabitEthernet0/1/8 undo shutdown ip address 10.1.1.1 255.255.255.0 pim sm # interface LoopBack1 ip address 4.4.4.4 255.255.255.255 pim sm # ospf 3 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.1.2.0 0.0.0.255 network 4.4.4.4 0.0.0.0 # pim static-rp 4.4.4.4 # return
CE2 configuration file
# sysname CE2 # multicast routing-enable # interface GigabitEthernet0/1/8 undo shutdown ip address 10.1.4.1 255.255.255.0 pim sm igmp enable igmp static-group 228.0.0.1 # interface GigabitEthernet0/1/16 undo shutdown ip address 10.1.3.2 255.255.255.0 pim sm # ospf 2 area 0.0.0.0 network 10.1.3.0 0.0.0.255 network 10.1.4.0 0.0.0.255 # pim static-rp 4.4.4.4 # return