R3303-HP HSR6800 Routers IP Multicast Configuration Guide

267
[PE4-bgp] peer pe4-pe1 connect-interface loopback 1
[PE4–bgp] ipv4-family vpn-instance a
[PE4-bgp-a] import-route ospf 2
[PE4-bgp-a] import-route direct
[PE4-bgp-a] quit
[PE4–bgp] ipv4-family vpn-instance b
[PE4-bgp-b] import-route ospf 3
[PE4-bgp-b] import-route direct
[PE4-bgp-b] quit
[PE4–bgp] ipv4-family vpnv4
[PE4–bgp-af-vpnv4] peer 1.1.1.1 enable
[PE4–bgp-af-vpnv4] quit
[PE4–bgp] quit
With BGP peers configured on PE 4, the interfaces MTI 0 and MTI 1 will automatically obtain IP
addresses, which are the loopback interface addresses specified in the BGP peer configuration.
The PIM mode running on MTI 0 is the same as on the interfaces in VPN instance a, and the PIM
mode running on MTI 1 is the same as on the interfaces in VPN instance b.
# Configure OSPF.
[PE4] ospf 1
[PE4-ospf-1] area 0.0.0.0
[PE4-ospf-1-area-0.0.0.0] network 1.1.1.4 0.0.0.0
[PE4-ospf-1-area-0.0.0.0] network 10.10.0.0 0.0.255.255
[PE4-ospf-1-area-0.0.0.0] quit
[PE4-ospf-1] quit
[PE4] ospf 2 vpn-instance a
[PE4-ospf-2] import-route bgp
[PE4-ospf-2] area 0.0.0.0
[PE4-ospf-2-area-0.0.0.0] network 10.11.0.0 0.0.255.255
[PE4-ospf-2-area-0.0.0.0] quit
[PE4-ospf-2] quit
[PE4] ospf 3 vpn-instance b
[PE4-ospf-3] import-route bgp
[PE4-ospf-3] area 0.0.0.0
[PE4-ospf-3-area-0.0.0.0] network 10.11.0.0 0.0.255.255
[PE4-ospf-3-area-0.0.0.0] quit
[PE4-ospf-3] quit
5. Configure CE a1:
# Enable IP multicast routing.
<CEa1> system-view
[CEa1] multicast routing-enable
# Configure an IP address and enable PIM-SM on GigabitEthernet 2/1/1.
[CEa1] interface gigabitethernet 2/1/1
[CEa1-GigabitEthernet2/1/1] ip address 10.11.5.1 24
[CEa1-GigabitEthernet2/1/1] pim sm
[CEa1-GigabitEthernet2/1/1] quit
# Configure an IP address and enable PIM-SM on GigabitEthernet 2/1/2.
[CEa1] interface gigabitethernet 2/1/2