HP MSR2000/3000/4000 Router Series IP Multicast Configuration Guide
185
[PE2-mrib-a] 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
[PE2-vpn-instance-a] vpn-target 100:1 import-extcommunity
[PE2-vpn-instance-a] quit
# Enable IP multicast routing in VPN instance a.
[PE2] multicast routing vpn-instance a
[PE2-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.
[PE2] interface ethernet 1/1
[PE2-Ethernet1/1] ip address 192.168.7.1 24
[PE2-Ethernet1/1] pim sm
[PE2-Ethernet1/1] mpls enable
[PE2-Ethernet1/1] mpls ldp enable
[PE2-Ethernet1/1] quit
# Bind Ethernet 1/2 with VPN instance b, assign an IP address to Ethernet 1/2, and enable
PIM-SM on the interface.
[PE2] interface ethernet 1/2
[PE2-Ethernet1/2] ip binding vpn-instance b
[PE2-Ethernet1/2] ip address 10.110.3.1 24
[PE2-Ethernet1/2] pim sm
[PE2-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.
[PE2] interface ethernet 1/3
[PE2-Ethernet1/3] ip binding vpn-instance a
[PE2-Ethernet1/3] ip address 10.110.4.1 24
[PE2-Ethernet1/3] pim sm
[PE2-Ethernet1/3] quit
# Assign an IP address to Loopback 1 and enable PIM-SM on this interface.
[PE2] interface loopback 1
[PE2-LoopBack1] ip address 1.1.1.2 32
[PE2-LoopBack1] pim sm
[PE2-LoopBack1] quit
# Configure BGP.
[PE2] bgp 100
[PE2-bgp] group vpn-g internal
[PE2-bgp] peer vpn-g connect-interface loopback 1
[PE2-bgp] peer 1.1.1.1 group vpn-g
[PE2-bgp] peer 1.1.1.3 group vpn-g
[PE2–bgp] ipv vpn-instance a
[PE2-bgp-a] address-family ipv4
[PE2-bgp-ipv4-a] import-route rip 2
[PE2-bgp-ipv4-a] import-route direct