189
[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.0.0 0.0.255.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.0.0.0
[PE1-rip-2] import-route bgp
[PE1-rip-2] return
2. 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
# Configure an MPLS LSR ID, and enable LDP.
[PE2] mpls lsr-id 1.1.1.2
[PE2] mpls ldp
[PE2-ldp] quit
# Create VPN instance b and configure an RD and route target attributes for it.
[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
# Create service loopback group 1, and specify its type as multicast tunnel.
[PE2] service-loopback group 1 type multicast-tunnel
# Select an unused interface, and assign the interface to service loopback group 1.
[PE2] interface ten-gigabitethernet1/1/7
[PE2-Ten-GigabitEthernet1/1/7] port service-loopback group 1
[PE2-Ten-GigabitEthernet1/1/7] quit
# Enable IP multicast routing in VPN instance b.
[PE2] multicast routing vpn-instance b
[PE2-mrib-b] quit
# Create the MD for VPN instance b, and specify the default-group, MD source interface, and
data-group address range for it.
[PE2] multicast-domain vpn-instance b
[PE2-md-b] default-group 239.2.2.2
[PE2-md-b] source loopback 1
[PE2-md-b] data-group 225.4.4.0 28
[PE2-md-b] quit
# Create VPN instance a and configure an RD and route target attributes for it.
[PE2] ip vpn-instance a
[PE2-vpn-instance-a] route-distinguisher 100:1
[PE2-vpn-instance-a] vpn-target 100:1 export-extcommunity