R3303-HP HSR6800 Routers IP Multicast Configuration Guide
266
# Create VPN instance b, configure an RD for it, and create an ingress route and an egress route
for it. 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.
[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] multicast routing-enable
[PE4-vpn-instance-b] multicast-domain share-group 239.4.4.4 binding mtunnel 1
[PE4-vpn-instance-b] multicast-domain switch-group-pool 225.4.4.0 28
[PE4-vpn-instance-b] quit
# Configure an IP address, and enable PIM-SM and LDP capability on the public network interface
GigabitEthernet 2/1/1.
[PE4] interface gigabitethernet 2/1/1
[PE4-GigabitEthernet2/1/1] ip address 10.10.2.2 24
[PE4-GigabitEthernet2/1/1] pim sm
[PE4-GigabitEthernet2/1/1] mpls
[PE4-GigabitEthernet2/1/1] mpls ldp
[PE4-GigabitEthernet2/1/1] quit
# Bind GigabitEthernet 2/1/2 with VPN instance a, configure an IP address and enable PIM-SM
on the interface.
[PE4] interface gigabitethernet 2/1/2
[PE4-GigabitEthernet2/1/2] ip binding vpn-instance a
[PE4-GigabitEthernet2/1/2] ip address 10.11.3.1 24
[PE4-GigabitEthernet2/1/2] pim sm
[PE4-GigabitEthernet2/1/2] quit
# Bind GigabitEthernet 2/1/3 with VPN instance b, configure an IP address and enable PIM-SM
on the interface.
[PE4] interface gigabitethernet 2/1/3
[PE4-GigabitEthernet2/1/3] ip binding vpn-instance b
[PE4-GigabitEthernet2/1/3] ip address 10.11.4.1 24
[PE4-GigabitEthernet2/1/3] pim sm
[PE4-GigabitEthernet2/1/3] quit
# Configure an IP address for Loopback 1, and enable PIM-SM.
[PE4] interface loopback 1
[PE4-LoopBack1] ip address 1.1.1.4 32
[PE4-LoopBack1] pim sm
[PE4-LoopBack1] quit
# Configure BGP.
[PE4] bgp 200
[PE4-bgp] group pe4-pe3 internal
[PE4-bgp] peer pe4-pe3 label-route-capability
[PE4-bgp] peer pe4-pe3 connect-interface loopback 1
[PE4-bgp] peer 1.1.1.3 group pe4-pe3
[PE4-bgp] group pe4-pe1 external
[PE4-bgp] peer pe4-pe1 as-number 100
[PE4-bgp] peer pe4-pe1 ebgp-max-hop 255
[PE4-bgp] peer 1.1.1.1 group pe4-pe1