Example: Configuring intra-AS MDT-based MVPN
Network configuration
As shown in Figure 78, configure intra-AS MDT-based MVPN 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-SM on the public network and for VPN instances a and b:
|
Figure 78: Network diagram
Table 18: Interface and IP address assignment
Device | Interface | IP address | Device | Interface | IP address |
---|---|---|---|---|---|
S 1 | — | 10.110.7.2/24 | PE 3 | Vlan-int19 | 192.168.8.1/24 |
S 2 | — | 10.110.8.2/24 | PE 3 | Vlan-int17 | 10.110.5.1/24 |
R 1 | — | 10.110.1.2/24 | PE 3 | Vlan-int18 | 10.110.6.1/24 |
R 2 | — | 10.110.9.2/24 | PE 3 | Loop1 | 1.1.1.3/32 |
R 3 | — | 10.110.10.2/24 | PE 3 | Loop2 | 33.33.33.33/32 |
R 4 | — | 10.110.11.2/24 | CE a1 | Vlan-int10 | 10.110.7.1/24 |
P | Vlan-int12 | 192.168.6.2/24 | CE a1 | Vlan-int11 | 10.110.2.2/24 |
P | Vlan-int15 | 192.168.7.2/24 | CE a2 | Vlan-int40 | 10.110.9.1/24 |
P | Vlan-int19 | 192.168.8.2/24 | CE a2 | Vlan-int14 | 10.110.4.2/24 |
P | Loop1 | 2.2.2.2/32 | CE a2 | Vlan-int16 | 10.110.12.1/24 |
PE 1 | Vlan-int12 | 192.168.6.1/24 | CE a2 | Loop1 | 22.22.22.22/32 |
PE 1 | Vlan-int20 | 10.110.1.1/24 | CE a3 | Vlan-int50 | 10.110.10.1/24 |
PE 1 | Vlan-int11 | 10.110.2.1/24 | CE a3 | Vlan-int17 | 10.110.5.2/24 |
PE 1 | Loop1 | 1.1.1.1/32 | CE a3 | Vlan-int16 | 10.110.12.2/24 |
PE 2 | Vlan-int15 | 192.168.7.1/24 | CE b1 | Vlan-int30 | 10.110.8.1/24 |
PE 2 | Vlan-int13 | 10.110.3.1/24 | CE b1 | Vlan-int13 | 10.110.3.2/24 |
PE 2 | Vlan-int14 | 10.110.4.1/24 | CE b2 | Vlan-int60 | 10.110.11.1/24 |
PE 2 | Loop1 | 1.1.1.2/32 | CE b2 | Vlan-int18 | 10.110.6.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 11, VLAN 12, or VLAN 20.
[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 an 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 [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 family address 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 239.1.1.1 [PE1-mvpn-a-ipv4] source loopback 1 [PE1-mvpn-a-ipv4] data-group 225.2.2.0 28 [PE1-mvpn-a-ipv4] quit [PE1-mvpn-a] quit
# Assign an IP address to VLAN-interface 12.
[PE1] interface vlan-interface 12 [PE1-Vlan-interface12] ip address 192.168.6.1 24
#Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 12.
[PE1-Vlan-interface12] pim sm [PE1-Vlan-interface12] mpls enable [PE1-Vlan-interface12] mpls ldp enable [PE1-Vlan-interface12] quit
# Associate VLAN-interface 20 with VPN instance a.
[PE1] interface vlan-interface 20 [PE1-Vlan-interface20] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 20, and enable IGMP on the interface.
[PE1-Vlan-interface20] ip address 10.110.1.1 24 [PE1-Vlan-interface20] igmp enable [PE1-Vlan-interface20] 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 10.110.2.1 24 [PE1-Vlan-interface11] pim sm [PE1-Vlan-interface11] 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] group vpn-g internal [PE1-bgp-default] peer vpn-g connect-interface loopback 1 [PE1-bgp-default] peer 1.1.1.2 group vpn-g [PE1-bgp-default] peer 1.1.1.3 group vpn-g [PE1–bgp-default] ip vpn-instance a [PE1-bgp-default-a] address-family ipv4 [PE1-bgp-default-ipv4-a] import-route rip 2 [PE1-bgp-default-ipv4-a] import-route direct [PE1-bgp-default-ipv4-a] quit [PE1-bgp-default-a] quit [PE1–bgp-default] address-family vpnv4 [PE1–bgp-default-vpnv4] peer vpn-g enable [PE1–bgp-default-vpnv4] 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 192.168.6.0 0.0.0.255 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit
# Configure RIP.
[PE1] rip 2 vpn-instance a [PE1-rip-2] network 10.110.1.0 0.0.0.255 [PE1-rip-2] network 10.110.2.0 0.0.0.255 [PE1-rip-2] import-route bgp [PE1-rip-2] return
Configure PE 2:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE2> system-view [PE2] router id 1.1.1.2 [PE2] multicast routing [PE2-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE2] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to VLAN 13, VLAN 14, or VLAN 15.
[PE2] interface hundredgige 1/0/4 [PE2-HundredGigE1/0/4] port service-loopback group 1 [PE2-HundredGigE1/0/4] quit
# Configure an MPLS LSR ID, and enable LDP globally.
[PE2] mpls lsr-id 1.1.1.2 [PE2] mpls ldp [PE2-ldp] quit
# Create a VPN instance named b, and configure an RD and route targets for the VPN instance.
[PE2] ip vpn-instance b [PE2-vpn-instance-b] route-distinguisher 200:1 [PE2-vpn-instance-b] vpn-target 200:1 export-extcommunity [PE2-vpn-instance-b] vpn-target 200:1 import-extcommunity [PE2-vpn-instance-b] quit
# Enable IP multicast routing for VPN instance b.
[PE2] multicast routing vpn-instance b [PE2-mrib-b] quit
# Create an MDT-based MVPN for VPN instance b.
[PE2] multicast-mvpn vpn-instance b mode mdt
# Create an MVPN IPv4 address family for VPN instance b.
[PE2-mvpn-b] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance b.
[PE2-mvpn-b-ipv4] default-group 239.2.2.2 [PE2-mvpn-b-ipv4] source loopback 1 [PE2-mvpn-b-ipv4] data-group 225.4.4.0 28 [PE2-mvpn-b-ipv4] quit [PE2-mvpn-b] quit
# Create a VPN instance named a, and configure an RD and route targets for VPN instance.
[PE2] ip vpn-instance a [PE2-vpn-instance-a] route-distinguisher 100:1 [PE2-vpn-instance-a] vpn-target 100:1 export-extcommunity [PE2-vpn-instance-a] vpn-target 100:1 import-extcommunity [PE2-vpn-instance-a] quit
# Enable IP multicast routing for VPN instance a.
[PE2] multicast routing vpn-instance a [PE2-mrib-a] quit
# Create an MDT-based MVPN for VPN instance a.
[PE2] multicast-mvpn vpn-instance a mode mdt
# Create an MVPN IPv4 address family for VPN instance a.
[PE2-mvpn-a] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance a.
[PE2-mvpn-a-ipv4] default-group 239.1.1.1 [PE2-mvpn-a-ipv4] source loopback 1 [PE2-mvpn-a-ivp4] data-group 225.2.2.0 28 [PE2-mvpn-a-ipv4] quit [PE2-mvpn-a] quit
# Assign an IP address to VLAN-interface 15.
[PE2] interface vlan-interface 15 [PE2-Vlan-interface15] ip address 192.168.7.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 15.
[PE2-Vlan-interface15] pim sm [PE2-Vlan-interface15] mpls enable [PE2-Vlan-interface15] mpls ldp enable [PE2-Vlan-interface15] quit
# Associate VLAN-interface 13 with VPN instance b, assign an IP address to VLAN-interface 13, and enable PIM-SM on the interface.
[PE2] interface vlan-interface 13 [PE2-Vlan-interface13] ip binding vpn-instance b [PE2-Vlan-interface13] ip address 10.110.3.1 24 [PE2-Vlan-interface13] pim sm [PE2-Vlan-interface13] quit
# Associate VLAN-interface 14 with VPN instance a.
[PE2] interface vlan-interface 14 [PE2-Vlan-interface14] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 14, and enable PIM-SM on the interface.
[PE2-Vlan-interface14] ip address 10.110.4.1 24 [PE2-Vlan-interface14] pim sm [PE2-Vlan-interface14] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE2] interface loopback 1 [PE2-LoopBack1] ip address 1.1.1.2 32 [PE2-LoopBack1] pim sm [PE2-LoopBack1] quit
# Configure BGP.
[PE2] bgp 100 [PE2-bgp-default] group vpn-g internal [PE2-bgp-default] peer vpn-g connect-interface loopback 1 [PE2-bgp-default] peer 1.1.1.1 group vpn-g [PE2-bgp-default] peer 1.1.1.3 group vpn-g [PE2–bgp-default] ip vpn-instance a [PE2-bgp-default-a] address-family ipv4 [PE2-bgp-default-ipv4-a] import-route rip 2 [PE2-bgp-default-ipv4-a] import-route direct [PE2-bgp-default-ipv4-a] quit [PE2-bgp-default-a] quit [PE2–bgp-default] ip vpn-instance b [PE2-bgp-default-b] address-family ipv4 [PE2-bgp-default-ipv4-b] import-route rip 3 [PE2-bgp-default-ipv4-b] import-route direct [PE2-bgp-default-ipv4-b] quit [PE2-bgp-default-b] quit [PE2–bgp-default] address-family vpnv4 [PE2–bgp-default-vpnv4] peer vpn-g enable [PE2–bgp-default-vpnv4] 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 1.1.1.2 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 192.168.7.0 0.0.0.255 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] quit
# Configure RIP.
[PE2] rip 2 vpn-instance a [PE2-rip-2] network 10.110.3.0 0.0.0.255 [PE2-rip-2] import-route bgp [PE2-rip-2] quit [PE2] rip 3 vpn-instance b [PE2-rip-3] network 10.110.4.0 0.0.0.255 [PE2-rip-3] import-route bgp [PE2-rip-3] return
Configure PE 3:
# Configure a global router ID, and enable IP multicast routing on the public network.
<PE3> system-view [PE3] router id 1.1.1.3 [PE3] multicast routing [PE3-mrib] quit
# Create service loopback group 1, and specify the multicast tunnel service for the group.
[PE3] service-loopback group 1 type multicast-tunnel
# Assign HundredGigE 1/0/4 to service loopback group 1. The interface does not belong to VLAN 17, VLAN 18, or VLAN 19.
[PE3] interface hundredgige 1/0/4 [PE3-HundredGigE1/0/4] port service-loopback group 1 [PE3-HundredGigE1/0/4] quit
# Configure an LSR ID, and enable LDP globally.
[PE3] mpls lsr-id 1.1.1.3 [PE3] mpls ldp [PE3-ldp] quit
# Create a VPN instance named a, and configure an RD and route targets for the VPN instance.
[PE3] ip vpn-instance a [PE3-vpn-instance-a] route-distinguisher 100:1 [PE3-vpn-instance-a] vpn-target 100:1 export-extcommunity [PE3-vpn-instance-a] vpn-target 100:1 import-extcommunity [PE3-vpn-instance-a] quit
# Enable IP multicast routing for VPN instance a.
[PE3] multicast routing vpn-instance a [PE3-mrib-a] quit
# Create an MDT-based MVPN for VPN instance a.
[PE3] multicast-mvpn vpn-instance a mode mdt
# Create an MVPN IPv4 address family for VPN instance a.
[PE3-mvpn-a] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance a.
[PE3-mvpn-a-ipv4] default-group 239.1.1.1 [PE3-mvpn-a-ipv4] source loopback 1 [PE3-mvpn-a-ipv4] data-group 225.2.2.0 28 [PE3-mvpn-a-ipv4] quit [PE3-mvpn-a] quit
# Create a VPN instance named b, and configure an RD and route targets for the VPN instance.
[PE3] ip vpn-instance b [PE3-vpn-instance-b] route-distinguisher 200:1 [PE3-vpn-instance-b] vpn-target 200:1 export-extcommunity [PE3-vpn-instance-b] vpn-target 200:1 import-extcommunity [PE3-vpn-instance-b] quit
# Enable IP multicast routing for VPN instance b.
[PE3] multicast routing vpn-instance b [PE3-mrib-b] quit
# Create an MDT-based MVPN for VPN instance b.
[PE3] multicast-mvpn vpn-instance b mode mdt
# Create an MVPN IPv4 address family for VPN instance b.
[PE3-mvpn-b] address-family ipv4
# Specify the default-group, the MVPN source interface, and the data-group range for VPN instance b.
[PE3-mvpn-b-ipv4] default-group 239.2.2.2 [PE3-mvpn-b-ipv4] source loopback 1 [PE3-mvpn-b-ipv4] data-group 225.4.4.0 28 [PE3-mvpn-b-ipv4] quit [PE3-mvpn-b] quit
# Assign an IP address to VLAN-interface 19.
[PE3] interface vlan-interface 19 [PE3-Vlan-interface19] ip address 192.168.8.1 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 19.
[PE3-Vlan-interface19] pim sm [PE3-Vlan-interface19] mpls enable [PE3-Vlan-interface19] mpls ldp enable [PE3-Vlan-interface19] quit
# Associate VLAN-interface 17 with VPN instance a.
[PE3] interface vlan-interface 17 [PE3-Vlan-interface17] ip binding vpn-instance a
# Assign an IP address to VLAN-interface 17, and enable PIM-SM on the interface.
[PE3-Vlan-interface17] ip address 10.110.5.1 24 [PE3-Vlan-interface17] pim sm [PE3-Vlan-interface17] quit
# Associate VLAN-interface 18 with VPN instance b.
[PE3] interface vlan-interface 18 [PE3-Vlan-interface18] ip binding vpn-instance b
# Assign an IP address to VLAN-interface 18, and enable PIM-SM on the interface.
[PE3-Vlan-interface18] ip address 10.110.6.1 24 [PE3-Vlan-interface18] pim sm [PE3-Vlan-interface18] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[PE3] interface loopback 1 [PE3-LoopBack1] ip address 1.1.1.3 32 [PE3-LoopBack1] pim sm [PE3-LoopBack1] quit
# Associate Loopback 2 with VPN instance b.
[PE3] interface loopback 2 [PE3-LoopBack2] ip binding vpn-instance b
# Assign an IP address to Loopback 2, and enable PIM-SM on the interface.
[PE3-LoopBack2] ip address 33.33.33.33 32 [PE3-LoopBack2] pim sm [PE3-LoopBack2] quit
# Configure Loopback 2 as a C-BSR and a C-RP.
[PE3] pim vpn-instance b [PE3-pim-b] c-bsr 33.33.33.33 [PE3-pim-b] c-rp 33.33.33.33 [PE3-pim-b] quit
# Configure BGP.
[PE3] bgp 100 [PE3-bgp-default] group vpn-g internal [PE3-bgp-default] peer vpn-g connect-interface loopback 1 [PE3-bgp-default] peer 1.1.1.1 group vpn-g [PE3-bgp-default] peer 1.1.1.2 group vpn-g [PE3–bgp-default] ip vpn-instance a [PE3-bgp-default-a] address-family ipv4 [PE3-bgp-default-ipv4-a] import-route rip 2 [PE3-bgp-default-ipv4-a] import-route direct [PE3-bgp-default-ipv4-a] quit [PE3-bgp-default-a] quit [PE3–bgp-default] ip vpn-instance b [PE3-bgp-default-b] address-family ipv4 [PE3-bgp-default-ipv4-b] import-route rip 3 [PE3-bgp-default-ipv4-b] import-route direct [PE3-bgp-default-ipv4-b] quit [PE3-bgp-default-b] quit [PE3–bgp-default] address-family vpnv4 [PE3–bgp-default-vpnv4] peer vpn-g enable [PE3–bgp-default-vpnv4] 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 1.1.1.3 0.0.0.0 [PE3-ospf-1-area-0.0.0.0] network 192.168.8.0 0.0.0.255 [PE3-ospf-1-area-0.0.0.0] quit [PE3-ospf-1] quit
# Configure RIP.
[PE3] rip 2 vpn-instance a [PE3-rip-2] network 10.110.5.0 0.0.0.255 [PE3-rip-2] import-route bgp [PE3-rip-2] quit [PE3] rip 3 vpn-instance b [PE3-rip-3] network 10.110.6.0 0.0.0.255 [PE3-rip-3] network 33.33.33.33 0.0.0.0 [PE3-rip-3] import-route bgp [PE3-rip-3] return
Configure P:
# Enable IP multicast routing on the public network.
<P> system-view [P] multicast routing [P-mrib] quit
# Configure an MPLS LSR ID, and enable LDP globally.
[P] mpls lsr-id 2.2.2.2 [P] mpls ldp [P-ldp] quit
# Assign an IP address to VLAN-interface 12.
[P] interface vlan-interface 12 [P-Vlan-interface12] ip address 192.168.6.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 12.
[P-Vlan-interface12] pim sm [P-Vlan-interface12] mpls enable [P-Vlan-interface12] mpls ldp enable [P-Vlan-interface12] quit
# Assign an IP address to VLAN-interface 15.
[P] interface vlan-interface 15 [P-Vlan-interface15] ip address 192.168.7.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 15.
[P-Vlan-interface15] pim sm [P-Vlan-interface15] mpls enable [P-Vlan-interface15] mpls ldp enable [P-Vlan-interface15] quit
# Assign an IP address to VLAN-interface 19.
[P] interface vlan-interface 19 [P-Vlan-interface19] ip address 192.168.8.2 24
# Enable PIM-SM, MPLS, and IPv4 LDP on VLAN-interface 19.
[P-Vlan-interface19] pim sm [P-Vlan-interface19] mpls enable [P-Vlan-interface19] mpls ldp enable [P-Vlan-interface19] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[P] interface loopback 1 [P-LoopBack1] ip address 2.2.2.2 32 [P-LoopBack1] pim sm [P-LoopBack1] quit
# Configure Loopback 1 as a C-BSR and a C-RP.
[P] pim [P-pim] c-bsr 2.2.2.2 [P-pim] c-rp 2.2.2.2 [P-pim] quit
# Configure OSPF.
[P] ospf 1 [P-ospf-1] area 0.0.0.0 [P-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0 [P-ospf-1-area-0.0.0.0] network 192.168.6.0 0.0.0.255 [P-ospf-1-area-0.0.0.0] network 192.168.7.0 0.0.0.255 [P-ospf-1-area-0.0.0.0] network 192.168.8.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 10, and enable PIM-SM on the interface.
[CEa1] interface vlan-interface 10 [CEa1-Vlan-interface10] ip address 10.110.7.1 24 [CEa1-Vlan-interface10] pim sm [CEa1-Vlan-interface10] 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 10.110.2.2 24 [CEa1-Vlan-interface11] pim sm [CEa1-Vlan-interface11] quit
# Configure RIP.
[CEa1] rip 2 [CEa1-rip-2] network 10.110.2.0 0.0.0.255 [CEa1-rip-2] network 10.110.7.0 0.0.0.255
Configure CE b1:
# Enable IP multicast routing.
<CEb1> system-view [CEb1] multicast routing [CEb1-mrib] quit
# Assign an IP address to VLAN-interface 30, and enable PIM-SM on the interface.
[CEb1] interface vlan-interface 30 [CEb1-Vlan-interface30] ip address 10.110.8.1 24 [CEb1-Vlan-interface30] pim sm [CEb1-Vlan-interface30] quit
# Assign an IP address to VLAN-interface 13, and enable PIM-SM on the interface.
[CEb1] interface vlan-interface 13 [CEb1-Vlan-interface13] ip address 10.110.3.2 24 [CEb1-Vlan-interface13] pim sm [CEb1-Vlan-interface13] quit
# Configure RIP.
[CEb1] rip 3 [CEb1-rip-3] network 10.110.3.0 0.0.0.255 [CEb1-rip-3] network 10.110.8.0 0.0.0.255
Configure CE a2:
# Enable IP multicast routing.
<CEa2> system-view [CEa2] multicast routing [CEa2-mrib] quit
# Assign an IP address to VLAN-interface 40, and enable IGMP on the interface.
[CEa2] interface vlan-interface 40 [CEa2-Vlan-interface40] ip address 10.110.9.1 24 [CEa2-Vlan-interface40] igmp enable [CEa2-Vlan-interface40] quit
# Assign an IP address to VLAN-interface 14, and enable PIM-SM on the interface.
[CEa2] interface vlan-interface 14 [CEa2-Vlan-interface14] ip address 10.110.4.2 24 [CEa2-Vlan-interface14] pim sm [CEa2-Vlan-interface14] quit
# Assign an IP address to VLAN-interface 16, and enable PIM-SM on the interface.
[CEa2] interface vlan-interface 16 [CEa2-Vlan-interface16] ip address 10.110.12.1 24 [CEa2-Vlan-interface16] pim sm [CEa2-Vlan-interface16] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[CEa2] interface loopback 1 [CEa2-LoopBack1] ip address 22.22.22.22 32 [CEa2-LoopBack1] pim sm [CEa2-LoopBack1] quit
# Configure Loopback 1 as a C-BSR and a C-RP.
[CEa2] pim [CEa2-pim] c-bsr 22.22.22.22 [CEa2-pim] c-rp 22.22.22.22 [CEa2-pim] quit
# Configure RIP.
[CEa2] rip 2 [CEa2-rip-2] network 10.110.4.0 0.0.0.255 [CEa2-rip-2] network 10.110.9.0 0.0.0.255 [CEa2-rip-2] network 10.110.12.0 0.0.0.255 [CEa2-rip-2] network 22.22.22.22 0.0.0.0
Configure CE a3:
# Enable IP multicast routing.
<CEa3> system-view [CEa3] multicast routing [CEa3-mrib] quit
# Assign an IP address to VLAN-interface 50, and enable IGMP on the interface.
[CEa3] interface vlan-interface 50 [CEa3-Vlan-interface50] ip address 10.110.10.1 24 [CEa3-Vlan-interface50] igmp enable [CEa3-Vlan-interface50] quit
# Assign an IP address to VLAN-interface 17, and enable PIM-SM on the interface.
[CEa3] interface vlan-interface 17 [CEa3-Vlan-interface17] ip address 10.110.5.2 24 [CEa3-Vlan-interface17] pim sm [CEa3-Vlan-interface17] quit
# Assign an IP address to VLAN-interface 16, and enable PIM-SM on the interface.
[CEa3] interface vlan-interface 16 [CEa3-Vlan-interface16] ip address 10.110.12.2 24 [CEa3-Vlan-interface16] pim sm [CEa3-Vlan-interface16] quit
# Configure RIP.
[CEa3] rip 2 [CEa3-rip-2] network 10.110.5.0 0.0.0.255 [CEa3-rip-2] network 10.110.10.0 0.0.0.255 [CEa3-rip-2] network 10.110.12.0 0.0.0.255
Configure CE b2:
# Enable IP multicast routing.
<CEb2> system-view [CEb2] multicast routing [CEb2-mrib] quit
# Assign an IP address to VLAN-interface 60, and enable IGMP on the interface.
[CEb2] interface vlan-interface 60 [CEb2-Vlan-interface60] ip address 10.110.11.1 24 [CEb2-Vlan-interface60] igmp enable [CEb2-Vlan-interface60] quit
# Assign an IP address to VLAN-interface 18, and enable PIM-SM on the interface.
[CEb2] interface vlan-interface 18 [CEb2-Vlan-interface18] ip address 10.110.6.2 24 [CEb2-Vlan-interface18] pim sm [CEb2-Vlan-interface18] quit
# Configure RIP.
[CEb2] rip 3 [CEb2-rip-3] network 10.110.6.0 0.0.0.255 [CEb2-rip-3] network 10.110.11.0 0.0.0.255
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 239.1.1.1 1.1.1.1 MTunnel0 a
# Display information about the local default-group for IPv4 multicast transmission in each VPN instance on PE 2.
[PE2] display multicast-mvpn default-group local MVPN local default-group information: Group address Source address Interface VPN instance 239.1.1.1 1.1.1.2 MTunnel0 a 239.1.1.1 1.1.1.2 MTunnel1 b
# Display information about the local default-group for IPv4 multicast transmission in each VPN instance on PE 3.
[PE3] display multicast-mvpn default-group local MVPN local default-group information: Group address Source address Interface VPN instance 239.1.1.1 1.1.1.3 MTunnel0 a 239.2.2.2 1.1.1.3 MTunnel1 b