Example: Configuring inter-AS multicast by leveraging static RPF peers
Network configuration
As shown in Figure 65:
The network has two ASs: AS 100 and AS 200. OSPF runs within each AS. BGP runs between the two ASs.
PIM-SM 1 belongs to AS 100, and PIM-SM 2 and PIM-SM 3 belong to AS 200. Each PIM-SM domain has a minimum of one multicast source or receiver.
Configure inter-AS multicast as follows:
Configure Loopback 0 as the C-BSR and C-RP of the related PIM-SM domain on Switch A, Switch D and Switch G.
According to the peer-RPF forwarding rule, the switches accept SA messages that pass the filtering policy from its static RPF peers. To share multicast source information among PIM-SM domains without changing the unicast topology structure, configure MSDP peering relationships for the RPs of the PIM-SM domains and configure the static RPF peering relationships.
Figure 65: Network diagram
Table 15: Interface and IP address assignment
Device | Interface | IP address | Device | Interface | IP address |
---|---|---|---|---|---|
Source 1 | — | 192.168.1.100/24 | Switch D | Vlan-int105 | 10.110.5.1/24 |
Source 2 | — | 192.168.3.100/24 | Switch D | Vlan-int103 | 10.110.3.2/24 |
Switch A | Vlan-int101 | 10.110.1.1/24 | Switch D | Loop0 | 2.2.2.2/32 |
Switch A | Vlan-int102 | 10.110.2.1/24 | Switch E | Vlan-int105 | 10.110.5.2/24 |
Switch A | Loop0 | 1.1.1.1/32 | Switch E | Vlan-int300 | 192.168.3.1/24 |
Switch B | Vlan-int101 | 10.110.1.2/24 | Switch F | Vlan-int106 | 10.110.6.1/24 |
Switch B | Vlan-int100 | 192.168.1.1/24 | Switch F | Vlan-int104 | 10.110.4.2/24 |
Switch B | Vlan-int103 | 10.110.3.1/24 | Switch G | Vlan-int106 | 10.110.6.2/24 |
Switch C | Vlan-int102 | 10.110.2.2/24 | Switch G | Vlan-int400 | 192.168.4.1/24 |
Switch C | Vlan-int200 | 192.168.2.1/24 | Switch G | Loop0 | 3.3.3.3/32 |
Switch C | Vlan-int104 | 10.110.4.1/24 |
Procedure
Assign an IP address and subnet mask to each interface, as shown in Table 15. (Details not shown.)
Configure OSPF on the switches in the ASs. (Details not shown.)
Enable IP multicast routing, PIM-SM, and IGMP, and configure PIM-SM domain borders:
# On Switch C, enable IP multicast routing.
<SwitchC> system-view [SwitchC] multicast routing [SwitchC-mrib] quit
# Enable PIM-SM on each interface, and enable IGMP on the receiver-side interface (VLAN-interface 200).
[SwitchC] interface vlan-interface 102 [SwitchC-Vlan-interface102] pim sm [SwitchC-Vlan-interface102] quit [SwitchC] interface vlan-interface 200 [SwitchC-Vlan-interface200] igmp enable [SwitchC-Vlan-interface200] quit [SwitchC] interface vlan-interface 104 [SwitchC-Vlan-interface104] pim sm [SwitchC-Vlan-interface104] quit
# Configure Switch A, Switch B, Switch D, Switch E, Switch F, and Switch G in the same way Switch C is configured. (Details not shown.)
# On Switch B, configure the PIM domain borders.
[SwitchB] interface vlan-interface 103 [SwitchB-Vlan-interface103] pim bsr-boundary [SwitchB-Vlan-interface103] quit
# Configure the PIM domain borders on Switch C, Switch D, and Switch F in the same way Switch B is configured. (Details not shown.)
Configure C-BSRs and C-RPs:
# On Switch A, configure Loopback 0 as a C-BSR and a C-RP.
[SwitchA] pim [SwitchA-pim] c-bsr 1.1.1.1 [SwitchA-pim] c-rp 1.1.1.1 [SwitchA-pim] quit
# Configure C-BSRs and C-RPs on Switch D and Switch G in the same way Switch A is configured. (Details not shown.)
Configure BGP, and redistribute BGP routing information into OSPF and OSPF routing information into BGP:
# On Switch B, configure an EBGP peer, and redistribute OSPF routing information.
[SwitchB] bgp 100 [SwitchB-bgp] router-id 1.1.1.2 [SwitchB-bgp] peer 10.110.3.2 as-number 200 [SwitchB-bgp] address-family ipv4 unicast [SwitchB-bgp-ipv4] peer 10.110.3.2 enable [SwitchB-bgp-ipv4] import-route ospf 1 [SwitchB-bgp-ipv4]quit [SwitchB-bgp] quit
# On Switch D, configure an EBGP peer, and redistribute OSPF routing information.
[SwitchD] bgp 200 [SwitchD-bgp] router-id 2.2.2.2 [SwitchD-bgp] peer 10.110.3.1 as-number 100 [SwitchD-bgp] address-family ipv4 unicast [SwitchD-bgp-ipv4] peer 10.110.3.1 enable [SwitchD-bgp-ipv4] import-route ospf 1 [SwitchD-bgp-ipv4]quit [SwitchD-bgp] quit
# On Switch C, configure an EBGP peer, and redistribute OSPF routing information.
[SwitchC] bgp 100 [SwitchC-bgp] router-id 1.1.1.3 [SwitchC-bgp] peer 10.110.4.2 as-number 200 [SwitchC-bgp] address-family ipv4 unicast [SwitchC-bgp-ipv4] peer 10.110.4.2 enable [SwitchC-bgp-ipv4] import-route ospf 1 [SwitchC-bgp-ipv4]quit [SwitchC-bgp] quit
# On Switch F, configure an EBGP peer, and redistribute OSPF routing information.
[SwitchF] bgp 200 [SwitchF-bgp] router-id 3.3.3.1 [SwitchF-bgp] peer 10.110.4.1 as-number 100 [SwitchF-bgp] address-family ipv4 unicast [SwitchF-bgp-ipv4] peer 10.110.4.1 enable [SwitchF-bgp-ipv4] import-route ospf 1 [SwitchF-bgp-ipv4]quit [SwitchF-bgp] quit
# On Switch B, redistribute BGP routing information into OSPF.
[SwitchB] ospf 1 [SwitchB-ospf-1] import-route bgp [SwitchB-ospf-1] quit
# On Switch D, redistribute BGP routing information into OSPF.
[SwitchD] ospf 1 [SwitchD-ospf-1] import-route bgp [SwitchD-ospf-1] quit
# On Switch C, redistribute BGP routing information into OSPF.
[SwitchC] ospf 1 [SwitchC-ospf-1] import-route bgp [SwitchC-ospf-1] quit
# On Switch F, redistribute BGP routing information into OSPF.
[SwitchF] ospf 1 [SwitchF-ospf-1] import-route bgp [SwitchF-ospf-1] quit
Configure MSDP peers and static RPF peers:
# On Switch A, configure Switch D and Switch G as the MSDP peers and static RPF peers.
[SwitchA] ip prefix-list list-dg permit 10.110.0.0 16 greater-equal 16 less-equal 32 [SwitchA] msdp [SwitchA-msdp] peer 10.110.3.2 connect-interface vlan-interface 101 [SwitchA-msdp] peer 10.110.6.2 connect-interface vlan-interface 102 [SwitchA-msdp] static-rpf-peer 10.110.3.2 rp-policy list-dg [SwitchA-msdp] static-rpf-peer 10.110.6.2 rp-policy list-dg [SwitchA-msdp] quit
# On Switch D, configure Switch A as the MSDP peer and static RPF peer.
[SwitchD] ip prefix-list list-a permit 10.110.0.0 16 greater-equal 16 less-equal 32 [SwitchD] msdp [SwitchD-msdp] peer 10.110.1.1 connect-interface vlan-interface 103 [SwitchD-msdp] static-rpf-peer 10.110.1.1 rp-policy list-a [SwitchD-msdp] quit
# On Switch G, configure Switch A as the MSDP peer and static RPF peer.
[SwitchG] ip prefix-list list-a permit 10.110.0.0 16 greater-equal 16 less-equal 32 [SwitchG] msdp [SwitchG-msdp] peer 10.110.2.1 connect-interface vlan-interface 106 [SwitchG-msdp] static-rpf-peer 10.110.2.1 rp-policy list-a [SwitchG-msdp] quit
Verifying the configuration
# Display the BGP peering relationships on Switch A.
[SwitchA] display bgp peer
No information is output, because no BGP peering relationship has been established between Switch A and Switch D, or between Switch A and Switch G. This means that the unicast topology is not changed.
# Display brief information about MSDP peers on Switch A.
[SwitchA] display msdp brief Configured Established Listen Connect Shutdown Disabled 2 2 0 0 0 0 Peer address State Up/Down time AS SA count Reset count 10.110.3.2 Established 01:07:08 ? 8 0 10.110.6.2 Established 00:16:39 ? 13 0
# Display brief information about MSDP peers on Switch D.
[SwitchD] display msdp brief Configured Established Listen Connect Shutdown Disabled 1 1 0 0 0 0 Peer address State Up/Down time AS SA count Reset count 10.110.1.1 Established 01:07:09 ? 8 0
# Display brief information about MSDP peers on Switch G.
[SwitchG] display msdp brief Configured Established Listen Connect Shutdown Disabled 1 1 0 0 0 0 Peer address State Up/Down time AS SA count Reset count 10.110.2.1 Established 00:16:40 ? 13 0
# Verify that receivers in PIM-SM 1 and PIM-SM 3 can receive the multicast data from Source 1 and Source 2 to a multicast group. (Details not shown.)