HP MSR2000/3000/4000 Router Series IP Multicast Configuration Guide
183
[PE1-mrib] quit
# Configure an MPLS LSR ID and enable the LDP capability.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls ldp
[PE1-ldp] quit
# Create VPN instance a and configure an RD and route target attributes for it.
[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 in VPN instance a.
[PE1] multicast routing vpn-instance a
[PE1-mrib-a] quit
# Assign an IP address to the public network interface Ethernet 1/1, and enable PIM-SM, MPLS
capability, and LDP capability on it.
[PE1] interface ethernet 1/1
[PE1-Ethernet1/1] ip address 192.168.6.1 24
[PE1-Ethernet1/1] pim sm
[PE1-Ethernet1/1] mpls enable
[PE1-Ethernet1/1] mpls ldp enable
[PE1-Ethernet1/1] quit
# Bind Ethernet 1/2 with VPN instance a, assign an IP address to Ethernet 1/2, and enable IGMP
and PIM-SM on the interface.
[PE1] interface ethernet 1/2
[PE1-Ethernet1/2] ip binding vpn-instance a
[PE1-Ethernet1/2] ip address 10.110.1.1 24
[PE1-Ethernet1/2] igmp enable
[PE1-Ethernet1/2] pim sm
[PE1-Ethernet1/2] quit
# Bind Ethernet 1/3 with VPN instance a, assign an IP address to Ethernet 1/3, and enable
PIM-SM on the interface.
[PE1] interface ethernet 1/3
[PE1-Ethernet1/3] ip binding vpn-instance a
[PE1-Ethernet1/3] ip address 10.110.2.1 24
[PE1-Ethernet1/3] pim sm
[PE1-Ethernet1/3] quit
# Assign an IP address to Loopback 1 and enable PIM-SM on this 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] group vpn-g internal
[PE1-bgp] peer vpn-g connect-interface loopback 1
[PE1-bgp] peer 1.1.1.2 group vpn-g