
239
[PE4–bgp-default] quit
# 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.2.0 0.0.0.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.3.0 0.0.0.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.4.0 0.0.0.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
[CEa1-mrib] quit
# Assign an IP address to GigabitEthernet 1/0/1, and enable PIM-SM on the interface.
[CEa1] interface gigabitethernet 1/0/1
[CEa1-GigabitEthernet1/0/1] ip address 10.11.5.1 24
[CEa1-GigabitEthernet1/0/1] pim sm
[CEa1-GigabitEthernet1/0/1] quit
# Assign an IP address to GigabitEthernet 1/0/2, and enable PIM-SM on the interface.
[CEa1] interface gigabitethernet 1/0/2
[CEa1-GigabitEthernet1/0/2] ip address 10.11.1.2 24
[CEa1-GigabitEthernet1/0/2] pim sm
[CEa1-GigabitEthernet1/0/2] quit
# Assign an IP address to Loopback 1, and enable PIM-SM on the interface.
[CEa1] interface loopback 1
[CEa1-LoopBack1] ip address 2.2.2.2 32
[CEa1-LoopBack1] pim sm
[CEa1-LoopBack1] quit
# Configure Loopback 1 as a C-BSR and a C-RP.
[CEa1] pim
[CEa1-pim] c-bsr 2.2.2.2
[CEa1-pim] c-rp 2.2.2.2 1
[CEa1-pim] quit
# Configure OSPF.
[CEa1] ospf 1
[CEa1-ospf-1] area 0.0.0.0