202
MBGP configuration example
Network requirements
As shown in the following figure:
• PIM-SM 1 is in AS 100, and PIM-SM 2 is in AS 200. OSPF is the IGP in the two ASs, and MBGP
runs between the two ASs to exchange multicast route information.
• The multicast source belongs to PIM-SM 1, and the receiver belongs to PIM-SM 2.
• Configure the respective Loopback 0 of Switch A and Switch B as the C-BSR and C-RP of the
respective PIM-SM domains.
• Set up an MSDP peer relationship between Switch A and Switch B through MBGP.
Figure 58 Network diagram
Device Interface IP address
Vlan-int200 10.110.2.1/24
Switch A Vlan-int100 10.110.1.1/24 Vlan-int102 192.168.2.2/24
Vlan-int101 192.168.1.1/24
Vlan-int104 192.168.4.1/24
Switch B Vlan-int101 192.168.1.2/24 Switch D Vlan-int103 192.168.3.2/24
Vlan-int102 192.168.2.1/24
Vlan-int104 192.168.4.2/24
Vlan-int103 192.168.3.1/24
Loop0 2.2.2.2/32
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF. (Details not shown.)
3. Enable IP multicast routing, PIM-SM and IGMP, and configure a PIM-SM domain border:
# Enable IP multicast routing on Switch A, and enable PIM-SM on each interface.
<SwitchA> system-view
[SwitchA] multicast routing-enable
MBGP peers
AS 100 AS 200
Source
ReceiverSwitch A
Switch B
Switch C
Switch D
Vlan-int101 Vlan-int101
Vlan-int104
Vlan-int104
Vlan-int100
PIM-SM 1
PIM-SM 2
Loop0 Loop0
Loop0Loop0