
160
Device
Interface
IP address
Device
Interface
IP address
Router C
Loop0
2.2.2.2/32
Configuration procedure
1.
Assign an IP address and subnet mask to each interface according to
. (Details not
shown.)
2.
Configure OSPF on the routers in the ASs. (Details not shown.)
3.
Enable IP multicast routing, enable PIM-SM and IGMP, and configure a PIM-SM domain
border:
# On Router A, enable IP multicast routing.
<RouterA> system-view
[RouterA] multicast routing
[RouterA-mrib] quit
# Enable PIM-SM on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] pim sm
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] pim sm
[RouterA-GigabitEthernet1/0/2] quit
# Enable IGMP on the receiver-side interface (GigabitEthernet 1/0/3).
[RouterA] interface gigabitethernet 1/0/3
[RouterA-GigabitEthernet1/0/3] igmp enable
[RouterA-GigabitEthernet1/0/3] quit
# Enable IP multicast routing, PIM-SM, and IGMP on Router B, Router C, Router D, Router E,
and Router F in the same way Router A is configured. (Details not shown.)
# Configure a PIM domain border on Router B.
[RouterB] interface gigabitethernet 1/0/2
[RouterB-GigabitEthernet1/0/2] pim bsr-boundary
[RouterB-GigabitEthernet1/0/2] quit
# Configure a PIM domain border separately on Router C and Router E in the same way Router
B is configured. (Details not shown.)
4.
Configure C-BSRs and C-RPs:
# Configure Loopback 0 on Router B as a C-BSR and a C-RP.
[RouterB] pim
[RouterB-pim] c-bsr 1.1.1.1
[RouterB-pim] c-rp 1.1.1.1
[RouterB-pim] quit
# Configure C-BSRs and C-RPs on Router C and Router E in the same way Router B is
configured. (Details not shown.)
5.
Configure BGP for mutual route redistribution between BGP and OSPF:
# On Router B, configure an EBGP peer and redistribute OSPF routes.
[RouterB] bgp 100
[RouterB-bgp] router-id 1.1.1.1
[RouterB-bgp] peer 192.168.1.2 as-number 200
[RouterB-bgp] address-family ipv4
[RouterB-bgp-ipv4] import-route ospf 1