Example: Configuring MDT-based MVPN inter-AS option B
Network configuration
As shown in Figure 80, configure MDT-based MVPN inter-AS option B to meet the following requirements:
Item | Network configuration |
---|---|
Multicast sources and receivers |
|
VPN instances to which PE interfaces belong |
|
Unicast routing protocols and MPLS |
|
IP multicast routing |
|
IGMP |
|
PIM | Enable PIM-SSM on the public network and PIM-SM on VPN instances a and b:
|
RPF vector | Enable the RPF vector feature on PE 1 and PE 4. |
Figure 80: Network diagram
Table 20: Interface and IP address assignment
Device | Interface | IP address | Device | Interface | IP address |
---|---|---|---|---|---|
S 1 | — | 12.1.1.100/24 | R 1 | — | 12.4.1.100/24 |
S 2 | — | 12.2.1.100/24 | R 2 | — | 12.3.1.100/24 |
PE 1 | Vlan-int2 | 10.1.1.1/24 | PE 3 | Vlan-int5 | 10.4.1.1/24 |
PE 1 | Vlan-int11 | 11.1.1.1/24 | PE 3 | Vlan-int4 | 10.3.1.2/24 |
PE 1 | Vlan-int12 | 11.2.1.1/24 | PE 3 | Loop1 | 3.3.3.3/32 |
PE 1 | Loop1 | 1.1.1.1/32 | PE 4 | Vlan-int6 | 10.5.1.2/24 |
PE 2 | Vlan-int3 | 10.2.1.2/24 | PE 4 | Vlan-int13 | 11.3.1.1/24 |
PE 2 | Vlan-int4 | 10.3.1.1/24 | PE 4 | Vlan-int14 | 11.4.1.1/24 |
PE 2 | Loop1 | 2.2.2.2/32 | PE 4 | Loop1 | 4.4.4.4/24 |
P 1 | Vlan-int2 | 10.1.1.2/24 | P 2 | Vlan-int6 | 10.5.1.1/24 |
P 1 | Vlan-int3 | 10.2.1.1/24 | P 2 | Vlan-int5 | 10.4.1.2/24 |
P 1 | Loop1 | 5.5.5.5/32 | P 2 | Loop1 | 6.6.6.6/32 |
CE a1 | Vlan-int21 | 12.1.1.1/24 | CE b1 | Vlan-int22 | 12.2.1.1/24 |
CE a1 | Vlan-int11 | 11.1.1.2/24 | CE b1 | Vlan-int12 | 11.2.1.2/24 |
CE a2 | Vlan-int23 | 12.3.1.1/24 | CE b2 | Vlan-int24 | 12.4.1.1/24 |
CE a2 | Vlan-int13 | 11.3.1.2/24 | CE b2 | Vlan-int14 | 11.4.1.2/24 |
Procedure
Configure PE 1:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE1> system-view [PE1] router id 1.1.1.1 [PE1] multicast routing [PE1-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE1] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to VLAN 2, VLAN 11, or VLAN 12.
[PE1] interface hundredgige 1/0/4 [PE1-HundredGigE1/0/4] port service-loopback group 1 [PE1-HundredGigE1/0/4] quit
# Configure an LSR ID, and enable LDP globally.
[PE1] mpls lsr-id 1.1.1.1 [PE1] mpls ldp [PE1-ldp] quit
# Create a VPN instance named a, and configure the RD and route targets for the VPN instance.
[PE1] ip vpn-instance a [PE1-vpn-instance-a] route-distinguisher 100:1 [PE1-vpn-instance-a] vpn-target 100:1 export-extcommunity [PE1-vpn-instance-a] vpn-target 100:1 import-extcommunity [PE1-vpn-instance-a] quit
# Enable IP multicast routing for VPN instance a.
[PE1] multicast routing vpn-instance a
# Enable the RPF vector feature.
[PE1-mrib-a] rpf proxy vector [PE1-mrib-a] quit
# Create an MDT-based MVPN for VPN instance a.
[PE1] multicast-mvpn vpn-instance a mode mdt
# Create an MVPN IPv4 address family for VPN instance a.
[PE1-mvpn-a] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance a.
[PE1-mvpn-a-ipv4] default-group 232.1.1.1 [PE1-mvpn-a-ipv4] source loopback 1 [PE1-mvpn-a-ipv4] data-group 232.2.2.0 28 [PE1-mvpn-a-ipv4] quit [PE1-mvpn-a] quit
# Create a VPN instance named b, and configure the RD and route targets for VPN instance.
[PE1] ip vpn-instance b [PE1-vpn-instance-b] route-distinguisher 200:1 [PE1-vpn-instance-b] vpn-target 200:1 export-extcommunity [PE1-vpn-instance-b] vpn-target 200:1 import-extcommunity [PE1-vpn-instance-b] quit
# Enable IP multicast routing for VPN instance b.
[PE1] multicast routing vpn-instance b
# Enable the RPF vector feature.
[PE1-mrib-b] rpf proxy vector [PE1-mrib-b] quit
# Create an MDT-based MVPN for VPN instance b.
[PE1] multicast-mvpn vpn-instance b mode mdt
# Create an MVPN IPv4 address family for VPN instance b.
[PE1-mvpn-b] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance b.
[PE1-mvpn-b-ipv4] default-group 232.3.3.3 [PE1-mvpn-b-ivp4] source loopback 1 [PE1-mvpn-b-ivp4] data-group 232.4.4.0 28 [PE1-mvpn-b-ipv4] quit [PE1-mvpn-b] quit
# Assign an IP address to VLAN-interface 2.
[PE1] interface vlan-interface 2 [PE1-Vlan-interface2] ip address 10.1.1.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 2.
[PE1-Vlan-interface2] pim sm [PE1-Vlan-interface2] mpls enable [PE1-Vlan-interface2] mpls ldp enable [PE1-Vlan-interface2] quit
# Associate VLAN-interface 11 with VPN instance a.
[PE1] interface vlan-interface 11 [PE1-Vlan-interface11] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 11, and enable PIM-SM on the interface.
[PE1-Vlan-interface11] ip address 11.1.1.1 24 [PE1-Vlan-interface11] pim sm [PE1-Vlan-interface11] quit
# Associate VLAN-interface 12 with VPN instance b.
[PE1] interface vlan-interface 12 [PE1-Vlan-interface12] ip binding vpn-instance b
# Assign an IP address to VLAN-interface 12, and enable PIM-SM on the interface.
[PE1-Vlan-interface12] ip address 11.2.1.1 24 [PE1-Vlan-interface12] pim sm [PE1-Vlan-interface12] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE1] interface loopback 1 [PE1-LoopBack1] ip address 1.1.1.1 32 [PE1-LoopBack1] pim sm [PE1-LoopBack1] quit
# Configure BGP.
[PE1] bgp 100 [PE1-bgp-default] peer 2.2.2.2 as-number 100 [PE1-bgp-default] peer 2.2.2.2 connect-interface loopback 1 [PE1–bgp-default] ip vpn-instance a [PE1-bgp-default-a] address-family ipv4 [PE1-bgp-default-ipv4-a] import-route ospf 2 [PE1-bgp-default-ipv4-a] import-route direct [PE1-bgp-default-ipv4-a] quit [PE1-bgp-default-a] quit [PE1–bgp-default] ip vpn-instance b [PE1-bgp-default-b] address-family ipv4 [PE1-bgp-default-ipv4-b] import-route ospf 3 [PE1-bgp-default-ipv4-b] import-route direct [PE1-bgp-default-ipv4-b] quit [PE1-bgp-default-b] quit [PE1–bgp-default] address-family vpnv4 [PE1–bgp-default-vpnv4] peer 2.2.2.2 enable [PE1–bgp-default-vpnv4] quit [PE1-bgp-default] address-family ipv4 mdt [PE1-bgp-default-mdt] peer 2.2.2.2 enable [PE1-bgp-default-mdt] quit [PE1–bgp-default] quit
# Configure OSPF.
[PE1] ospf 1 [PE1-ospf-1] area 0.0.0.0 [PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0 [PE1-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit [PE1] ospf 2 vpn-instance a [PE1-ospf-2] area 0.0.0.0 [PE1-ospf-2-area-0.0.0.0] network 11.1.1.0 0.0.0.255 [PE1-ospf-2-area-0.0.0.0] quit [PE1-ospf-2] quit [PE1] ospf 3 vpn-instance b [PE1-ospf-3] area 0.0.0.0 [PE1-ospf-3-area-0.0.0.0] network 11.2.1.0 0.0.0.255 [PE1-ospf-3-area-0.0.0.0] quit [PE1-ospf-3] quit
Configure PE 2:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE2> system-view [PE2] router id 2.2.2.2 [PE2] multicast routing [PE2-mrib] quit
# Configure an LSR ID, and enable LDP globally.
[PE2] mpls lsr-id 2.2.2.2 [PE2] mpls ldp [PE2-ldp] quit
# Assign an IP address to VLAN-interface 3.
[PE2] interface vlan-interface 3 [PE2-Vlan-interface3] ip address 10.2.1.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 3.
[PE2-Vlan-interface3] pim sm [PE2-Vlan-interface3] mpls enable [PE2-Vlan-interface3] mpls ldp enable [PE2-Vlan-interface3] quit
# Assign an IP address to VLAN-interface 4.
[PE2] interface vlan-interface 4 [PE2-Vlan-interface4] ip address 10.3.1.1 24
# Enable PIM-SM and MPLS on VLAN-interface 4.
[PE2-Vlan-interface4] pim sm [PE2-Vlan-interface4] mpls enable [PE2-Vlan-interface4] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE2] interface loopback 1 [PE2-LoopBack1] ip address 2.2.2.2 32 [PE2-LoopBack1] pim sm [PE2-LoopBack1] quit
# Configure BGP.
[PE2] bgp 100 [PE2-bgp-default] group 1.1.1.1 as-number 100 [PE2-bgp-default] peer 1.1.1.1 connect-interface loopback 1 [PE2-bgp-default] peer 10.3.1.2 as-number 200 [PE2-bgp-default] address-family vpnv4 [PE2-bgp-default-vpnv4] undo policy vpn-target [PE2-bgp-default-vpnv4] peer 1.1.1.1 enable [PE2-bgp-default-vpnv4] peer 10.3.1.2 enable [PE2-bgp-default-vpnv4] quit [PE2-bgp-default] address-family ipv4 mdt [PE2-bgp-default-mdt] peer 1.1.1.1 enable [PE2-bgp-default-mdt] peer 10.3.1.2 enable [PE2-bgp-default-mdt] quit [PE2–bgp-default] quit
# Configure OSPF.
[PE2] ospf 1 [PE2-ospf-1] area 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] quit
Configure PE 3:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE3> system-view [PE3] router id 3.3.3.3 [PE3] multicast routing [PE3-mrib] quit
# Configure an LSR ID, and enable LDP globally.
[PE3] mpls lsr-id 3.3.3.3 [PE3] mpls ldp [PE3-ldp] quit
# Assign an IP address to VLAN-interface 5.
[PE3] interface vlan-interface 5 [PE3-Vlan-interface5] ip address 10.4.1.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 5.
[PE3-Vlan-interface5] pim sm [PE3-Vlan-interface5] mpls enable [PE3-Vlan-interface5] mpls ldp enable [PE3-Vlan-interface5] quit
# Assign an IP address to VLAN-interface 4.
[PE3] interface vlan-interface 4 [PE3-Vlan-interface4] ip address 10.3.1.2 24
# Enable PIM-SM and MPLS on VLAN-interface 4.
[PE3-Vlan-interface4] pim sm [PE3-Vlan-interface4] mpls enable [PE3-Vlan-interface4] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE3] interface loopback 1 [PE3-LoopBack1] ip address 3.3.3.3 32 [PE3-LoopBack1] pim sm [PE3-LoopBack1] quit
# Configure BGP.
[PE3] bgp 200 [PE3-bgp-default] group 4.4.4.4 as-number 200 [PE3-bgp-default] peer 4.4.4.4 connect-interface loopback 1 [PE3-bgp-default] peer 10.3.1.1 as-number 100 [PE3-bgp-default] address-family vpnv4 [PE3-bgp-default-vpnv4] undo policy vpn-target [PE3-bgp-default-vpnv4] peer 4.4.4.4 enable [PE3-bgp-default-vpnv4] peer 10.3.1.1 enable [PE3-bgp-default-vpnv4] quit [PE3-bgp-default] address-family ipv4 mdt [PE3-bgp-default-mdt] peer 4.4.4.4 enable [PE3-bgp-default-mdt] peer 10.3.1.1 enable [PE3-bgp-default-mdt] quit [PE3–bgp-default] quit
# Configure OSPF.
[PE3] ospf 1 [PE3-ospf-1] area 0.0.0.0 [PE3-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0 [PE3-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255 [PE3-ospf-1-area-0.0.0.0] quit [PE3-ospf-1] quit
Configure PE 4:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE4> system-view [PE4] router id 4.4.4.4 [PE4] multicast routing [PE4-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE4] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to VLAN 6, VLAN 13, or VLAN 14.
[PE4] interface hundredgige 1/0/4 [PE4-HundredGigE1/0/4] port service-loopback group 1 [PE4-HundredGigE1/0/4] quit
# Configure an LSR ID, and enable LDP globally.
[PE4] mpls lsr-id 4.4.4.4 [PE4] mpls ldp [PE4-ldp] quit
# Create a VPN instance named a, and configure the RD and route targets for the VPN instance.
[PE4] ip vpn-instance a [PE4-vpn-instance-a] route-distinguisher 100:1 [PE4-vpn-instance-a] vpn-target 100:1 export-extcommunity [PE4-vpn-instance-a] vpn-target 100:1 import-extcommunity [PE4-vpn-instance-a] quit
# Enable IP multicast routing for VPN instance a.
[PE4] multicast routing vpn-instance a
# Enable the RPF vector feature.
[PE4-mrib-a] rpf proxy vector [PE4-mrib-a] quit
# Create an MDT-based MVPN for VPN instance a.
[PE4] multicast-mvpn vpn-instance a mode mdt
# Create an MVPN IPv4 address family for VPN instance a.
[PE4-mvpn-a] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance a.
[PE4-mvpn-a-ipv4] default-group 232.1.1.1 [PE4-mvpn-a-ipv4] source loopback 1 [PE4-mvpn-a-ipv4] data-group 232.2.2.0 28 [PE4-mvpn-a-ipv4] quit [PE4-mvpn-a] quit
# Create a VPN instance named b, and configure the RD and route targets for the VPN instance.
[PE4] ip vpn-instance b [PE4-vpn-instance-b] route-distinguisher 200:1 [PE4-vpn-instance-b] vpn-target 200:1 export-extcommunity [PE4-vpn-instance-b] vpn-target 200:1 import-extcommunity [PE4-vpn-instance-b] quit
# Enable IP multicast routing for VPN instance b.
[PE4] multicast routing vpn-instance b
# Enable the RPF vector feature.
[PE4-mrib-b] rpf proxy vector [PE4-mrib-b] quit
# Create an MDT-based MVPN for VPN instance b.
[PE4] multicast-mvpn vpn-instance b mode mdt
# Create an MVPN IPv4 address family for VPN instance b.
[PE4-mvpn-b] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance b.
[PE4-mvpn-b-ipv4] default-group 232.3.3.3 [PE4-mvpn-b-ipv4] source loopback 1 [PE4-mvpn-b-ipv4] data-group 232.4.4.0 28 [PE4-mvpn-b-ipv4] quit [PE4-mvpn-b] quit
# Assign an IP address to VLAN-interface 6.
[PE4] interface vlan-interface 6 [PE4-Vlan-interface6] ip address 10.5.1.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 6.
[PE4-Vlan-interface6] pim sm [PE4-Vlan-interface6] mpls enable [PE4-Vlan-interface6] mpls ldp enable [PE4-Vlan-interface6] quit
# Associate VLAN-interface 13 with VPN instance a.
[PE4] interface vlan-interface 13 [PE4-Vlan-interface13] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 13, and enable PIM-SM on the interface.
[PE4-Vlan-interface13] ip address 11.3.1.1 24 [PE4-Vlan-interface13] pim sm [PE4-Vlan-interface13] quit
# Associate VLAN-interface 14 with VPN instance b.
[PE4] interface vlan-interface 14 [PE4-Vlan-interface14] ip binding vpn-instance b
# Assign an IP address to VLAN-interface 14, and enable PIM-SM on the interface.
[PE4-Vlan-interface14] ip address 11.4.1.1 24 [PE4-Vlan-interface14] pim sm [PE4-Vlan-interface14] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE4] interface loopback 1 [PE4-LoopBack1] ip address 4.4.4.4 32 [PE4-LoopBack1] pim sm [PE4-LoopBack1] quit
# Configure BGP.
[PE4] bgp 200 [PE4-bgp-default] peer 3.3.3.3 as-number 200 [PE4-bgp-default] peer 3.3.3.3 connect-interface loopback 1 [PE4–bgp-default] ip vpn-instance a [PE4-bgp-default-a] address-family ipv4 [PE4-bgp-default-ipv4-a] import-route ospf 2 [PE4-bgp-default-ipv4-a] import-route direct [PE4-bgp-default-ipv4-a] quit [PE4-bgp-default-a] quit [PE4–bgp-default] ip vpn-instance b [PE4-bgp-default-b] address-family ipv4 [PE4-bgp-default-ipv4-b] import-route ospf 3 [PE4-bgp-default-ipv4-b] import-route direct [PE4-bgp-default-ipv4-b] quit [PE4-bgp-default-b] quit [PE4–bgp-default] address-family vpnv4 [PE4–bgp-default-vpnv4] peer 3.3.3.3 enable [PE4–bgp-default-vpnv4] quit [PE4-bgp-default] address-family ipv4 mdt [PE4-bgp-default-mdt] peer 3.3.3.3 enable [PE4-bgp-default-mdt] quit [PE4–bgp-default] quit
# Configure OSPF.
[PE4] ospf 1 [PE4-ospf-1] area 0.0.0.0 [PE4-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0 [PE4-ospf-1-area-0.0.0.0] network 10.5.1.0 0.0.0.255 [PE4-ospf-1-area-0.0.0.0] quit [PE4-ospf-1] quit [PE4] ospf 2 vpn-instance a [PE4-ospf-2] area 0.0.0.0 [PE4-ospf-2-area-0.0.0.0] network 11.3.1.0 0.0.0.255 [PE4-ospf-2-area-0.0.0.0] quit [PE4-ospf-2] quit [PE4] ospf 3 vpn-instance b [PE4-ospf-3] area 0.0.0.0 [PE4-ospf-3-area-0.0.0.0] network 11.4.1.0 0.0.0.255 [PE4-ospf-3-area-0.0.0.0] quit [PE4-ospf-3] quit
Configure P 1:
# Enable IP multicast routing on the public network.
<P1> system-view [P1] multicast routing [P1-mrib] quit
# Configure an LSR ID, and enable LDP globally.
[P1] mpls lsr-id 5.5.5.5 [P1] mpls ldp [P1-ldp] quit
# Assign an IP address to VLAN-interface 2.
[P1] interface vlan-interface 2 [P1-Vlan-interface2] ip address 10.1.1.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 2.
[P1-Vlan-interface2] pim sm [P1-Vlan-interface2] mpls enable [P1-Vlan-interface2] mpls ldp enable [P1-Vlan-interface2] quit
# Assign an IP address to VLAN-interface 3.
[P1] interface vlan-interface 3 [P1-Vlan-interface3] ip address 10.2.1.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 3.
[P1-Vlan-interface3] pim sm [P1-Vlan-interface3] mpls enable [P1-Vlan-interface3] mpls ldp enable [P1-Vlan-interface3] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[P1] interface loopback 1 [P1-LoopBack1] ip address 5.5.5.5 32 [P1-LoopBack1] pim sm [P1-LoopBack1] quit
# Configure OSPF.
[P1] ospf 1 [P1-ospf-1] area 0.0.0.0 [P1-ospf-1-area-0.0.0.0] network 5.5.5.5 0.0.0.0 [P1-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [P1-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
Configure P 2:
# Enable IP multicast routing on the public network.
<P2> system-view [P2] multicast routing [P2-mrib] quit
# Configure an LSR ID, and enable LDP globally.
[P2] mpls lsr-id 6.6.6.6 [P2] mpls ldp [P2-ldp] quit
# Assign an IP address to VLAN-interface 6.
[P2] interface vlan-interface 6 [P2-Vlan-interface6] ip address 10.5.1.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 6.
[P2-Vlan-interface6] pim sm [P2-Vlan-interface6] mpls enable [P2-Vlan-interface6] mpls ldp enable [P2-Vlan-interface6] quit
# Assign an IP address to VLAN-interface 5.
[P2] interface vlan-interface 5 [P2-Vlan-interface5] ip address 10.4.1.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 5.
[P2-Vlan-interface5] pim sm [P2-Vlan-interface5] mpls enable [P2-Vlan-interface5] mpls ldp enable [P2-Vlan-interface5] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[P2] interface loopback 1 [P2-LoopBack1] ip address 6.6.6.6 32 [P2-LoopBack1] pim sm [P2-LoopBack1] quit
# Configure OSPF.
[P2] ospf 1 [P2-ospf-1] area 0.0.0.0 [P2-ospf-1-area-0.0.0.0] network 6.6.6.6 0.0.0.0 [P2-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255 [P2-ospf-1-area-0.0.0.0] network 10.5.1.0 0.0.0.255
Configure CE a1:
# Enable IP multicast routing.
<CEa1> system-view [CEa1] multicast routing [CEa1-mrib] quit
# Assign an IP address to VLAN-interface 21, and enable PIM-SM on the interface.
[CEa1] interface vlan-interface 21 [CEa1-Vlan-interface21] ip address 12.1.1.1 24 [CEa1-Vlan-interface21] pim sm [CEa1-Vlan-interface21] quit
# Assign an IP address to VLAN-interface 11, and enable PIM-SM on the interface.
[CEa1] interface vlan-interface 11 [CEa1-Vlan-interface11] ip address 11.1.1.2 24 [CEa1-Vlan-interface11] pim sm [CEa1-Vlan-interface11] quit
# Configure VLAN-interface 11 as a C-BSR and a C-RP.
[CEa1] pim [CEa1-pim] c-bsr 11.1.1.2 [CEa1-pim] c-rp 11.1.1.2 [CEa1-pim] quit
# Configure OSPF.
[CEa1] ospf 1 [CEa1-ospf-1] area 0.0.0.0 [CEa1-ospf-1-area-0.0.0.0] network 12.1.1.0 0.0.0.255 [CEa1-ospf-1-area-0.0.0.0] network 11.1.1.0 0.0.0.255 [CEa1-ospf-1-area-0.0.0.0] quit [CEa1-ospf-1] quit
Configure CE b1:
# Enable IP multicast routing.
<CEb1> system-view [CEb1] multicast routing [CEb1-mrib] quit
# Assign an IP address to VLAN-interface 22, and enable PIM-SM on the interface.
[CEb1] interface vlan-interface 22 [CEb1-Vlan-interface22] ip address 12.2.1.1 24 [CEb1-Vlan-interface22] pim sm [CEb1-Vlan-interface22] quit
# Assign an IP address to VLAN-interface 12, and enable PIM-SM on the interface.
[CEb1] interface vlan-interface 12 [CEb1-Vlan-interface12] ip address 11.2.1.2 24 [CEb1-Vlan-interface12] pim sm [CEb1-Vlan-interface12] quit
# Configure VLAN-interface 12 as a C-BSR and a C-RP.
[CEb1] pim [CEb1-pim] c-bsr 11.2.1.2 24 [CEb1-pim] c-rp 11.2.1.2 24 [CEb1-pim] quit
# Configure OSPF.
[CEb1] ospf 1 [CEb1-ospf-1] area 0.0.0.0 [CEb1-ospf-1-area-0.0.0.0] network 12.2.1.0 0.0.0.255 [CEb1-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255 [CEb1-ospf-1-area-0.0.0.0] quit [CEb1-ospf-1] quit
Configure CE a2:
# Enable IP multicast routing.
<CEa2> system-view [CEa2] multicast routing [CEa2-mrib] quit
# Assign an IP address to VLAN-interface 23, and enable IGMP on the interface.
[CEa2] interface vlan-interface 23 [CEa2-Vlan-interface23] ip address 12.3.1.1 24 [CEa2-Vlan-interface23] igmp enable [CEa2-Vlan-interface23] quit
# Assign an IP address to VLAN-interface 13, and enable PIM-SM on the interface.
[CEa2] interface vlan-interface 13 [CEa2-Vlan-interface13] ip address 11.3.1.2 24 [CEa2-Vlan-interface13] pim sm [CEa2-Vlan-interface13] quit
# Configure OSPF.
[CEa2] ospf 1 [CEa2-ospf-1] area 0.0.0.0 [CEa2-ospf-1-area-0.0.0.0] network 12.3.1.0 0.0.0.255 [CEa2-ospf-1-area-0.0.0.0] network 11.3.1.0 0.0.0.255 [CEa2-ospf-1-area-0.0.0.0] quit [CEa2-ospf-1] quit
Configure CE b2:
# Enable IP multicast routing.
<CEb2> system-view [CEb2] multicast routing [CEb2-mrib] quit
# Assign an IP address to VLAN-interface 24, and enable IGMP on the interface.
[CEb2] interface vlan-interface 24 [CEb2-Vlan-interface24] ip address 12.4.1.1 24 [CEb2-Vlan-interface24] igmp enable [CEb2-Vlan-interface24] quit
# Assign an IP address to VLAN-interface 14, and enable PIM-SM on the interface.
[CEb2] interface vlan-interface 14 [CEb2-Vlan-interface14] ip address 11.4.1.2 24 [CEb2-Vlan-interface14] pim sm [CEb2-Vlan-interface14] quit
# Configure OSPF.
[CEb2] ospf 1 [CEb2-ospf-1] area 0.0.0.0 [CEb2-ospf-1-area-0.0.0.0] network 12.4.1.0 0.0.0.255 [CEb2-ospf-1-area-0.0.0.0] network 11.4.1.0 0.0.0.255 [CEb2-ospf-1-area-0.0.0.0] quit [CEb2-ospf-1] quit
Verifying the configuration
# Display information about the local default-group for IPv4 multicast transmission in each VPN instance on PE 1.
[PE1] display multicast-mvpn default-group local MVPN local default-group information: Group address Source address Interface VPN instance 232.1.1.1 1.1.1.1 MTunnel0 a 232.3.3.3 1.1.1.1 MTunnel1 b
# Display information about the remote default-group group for IPv4 multicast transmission in each VPN instance on PE 1.
[PE1] display multicast-mvpn default-group remote MVPN remote default-group information: Group address Source address Next hop VPN instance 232.1.1.1 4.4.4.4 2.2.2.2 a 232.3.3.3 4.4.4.4 2.2.2.2 b
# Display information about the local default-group for IPv4 multicast transmission in each VPN instance on PE 4.
[PE4] display multicast-mvpn default-group local MVPN local default-group information: Group address Source address Interface VPN instance 232.1.1.1 4.4.4.4 MTunnel0 a 233.3.3.3 4.4.4.4 MTunnel1 b
# Display information about the remote default-group for IPv4 multicast transmission in each VPN instance on PE 4.
[PE4] display multicast-mvpn default-group remote MVPN remote default-group information: Group address Source address Next hop VPN instance 232.1.1.1 1.1.1.1 3.3.3.3 a 232.3.3.3 1.1.1.1 3.3.3.3 b