R3102-R3103-HP 6600/HSR6600 Routers IP Multicast Configuration Guide

Table Of Contents
244
<PE2> system-view
[PE2] router id 1.1.1.2
[PE2] multicast routing-enable
[PE2] mpls lsr-id 1.1.1.2
[PE2] mpls
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Create VPN instance b, configure an RD for it, and create an ingress route and an egress route
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
# Enable IP multicast routing in VPN instance b, configure a share-group address, associate an
MTI with the VPN instance, and define the switch-group-pool address range.
[PE2-vpn-instance-b] multicast routing-enable
[PE2-vpn-instance-b] multicast-domain share-group 239.2.2.2 binding mtunnel 1
[PE2-vpn-instance-b] multicast-domain switch-group-pool 225.4.4.0 28
[PE2-vpn-instance-b] quit
# Create VPN instance a, configure an RD for it, and create an ingress route and an egress route
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
[PE2-vpn-instance-a] vpn-target 100:1 import-extcommunity
# Enable IP multicast routing in VPN instance a, configure a share-group address, associate an
MTI with the VPN instance, and define the switch-group-pool address range.
[PE2-vpn-instance-a] multicast routing-enable
[PE2-vpn-instance-a] multicast-domain share-group 239.1.1.1 binding mtunnel 0
[PE2-vpn-instance-a] multicast-domain switch-group-pool 225.2.2.0 28
[PE2-vpn-instance-a] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network interface
GigabitEthernet 2/1/1.
[PE2] interface gigabitethernet 2/1/1
[PE2-GigabitEthernet2/1/1] ip address 192.168.7.1 24
[PE2-GigabitEthernet2/1/1] pim sm
[PE2-GigabitEthernet2/1/1] mpls
[PE2-GigabitEthernet2/1/1] mpls ldp
[PE2-GigabitEthernet2/1/1] quit
# Bind GigabitEthernet 2/1/2 with VPN instance b, configure an IP address and enable PIM-SM
on the interface.
[PE2] interface gigabitethernet 2/1/2
[PE2-GigabitEthernet2/1/2] ip binding vpn-instance b
[PE2-GigabitEthernet2/1/2] ip address 10.110.3.1 24
[PE2-GigabitEthernet2/1/2] pim sm
[PE2-GigabitEthernet2/1/2] quit