HP MSR2000/3000/4000 Router Series IP Multicast Configuration Guide
184
[PE1-bgp] peer 1.1.1.3 group vpn-g
[PE1–bgp] ip vpn-instance a
[PE1-bgp-a] address-family ipv4
[PE1-bgp-ipv4-a] import-route rip 2
[PE1-bgp-ipv4-a] import-route direct
[PE1-bgp-ipv4-a] quit
[PE1-bgp-a] quit
[PE1–bgp] address-family vpnv4
[PE1–bgp-vpnv4] peer vpn-g enable
[PE1–bgp-vpnv4] quit
[PE1–bgp] quit
# Create MD for VPN instance a and specify the default-group address and the MD source
interface address for it.
[PE1] multicast-domain vpn-instance a
[PE1-md-a] default-group 239.1.1.1
[PE1-md-a] source loopback 1
[PE1-md-a] 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.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 Router ID globally 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 the LDP capability.
[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
# Enable IP multicast routing in VPN instance b.
[PE2] multicast routing vpn-instance a