---
title: Multicast PIM-ASM/SSM Configuration Guide
slug: routing/multicast-pim-asmssm-configuration-guide
createdAt: 2026-04-07T11:03:36.212Z
---

# <font color="#1d50a2">**Introduction**</font>

This guide provides a comprehensive, step-by-step tutorial for establishing IPv4 Multicast networks on the Asterfusion Open Intelligent Gateway. By leveraging the high-performance VPP data plane, you will learn how to build multicast routing architectures that are both highly efficient and scalable for enterprise and data center environments.

## <font color="#1d50a2">**What This Guide Will Accomplish**</font>

By following this guide, you will learn how to deploy robust multicast architectures. The configuration scenarios are structured into two distinct phases:&#x20;

### <font color="#1d50a2">**Phase 1\: Establish ASM Underlay**</font>

- **Scenario 1: Basic PIM-SM with Static RP**
  Establishing a foundational PIM-ASM network using OSPF as the underlay routing protocol with a central Rendezvous Point.
- **Scenario 2: Multicast over BGP**
  Deploying PIM-ASM over a BGP underlay to validate advanced RPF checks within a typical Spine-Leaf topology.

### <font color="#1d50a2">**Phase 2\:** </font><font color="#1d50a2">**Advanced Capabilities**</font>

- **Scenario 3: PIM-SSM**
  Built directly upon the underlay established in Phase 1, this scenario demonstrates how to migrate to a highly efficient, RP-less architecture using IGMPv3 and explicit (S, G) tree building.

***

# <font color="#1d50a2">**Scenario 1\: Basic PIM-SM with Static RP**</font>

## <font color="#1d50a2">**Scenario Overview**</font>

In this scenario, we establish a standard PIM-SM domain without using Loopback interfaces. The **Spine's Ethernet1 IP (10.0.1.2)** serves as the Static RP for the entire domain.

**Device Roles:**

- **Source DR (Leaf1):** Gateway for the Multicast Source.
- **RP (Spine):** The central Rendezvous Point. Its downlink interface IP (10.0.1.2) is used as the RP address.
- **Receiver DR (Leaf2):** Gateway for the Receiver, running IGMPv3.

## <font color="#1d50a2">**Network Topology Plan**</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/wc11bOeIpBvNAVmuzkZW3-20260407-112018.png)

| **Role**              | **Device**      | **Interface**                 | **IP Address**  | **Function**                       |
| --------------------- | --------------- | ----------------------------- | --------------- | ---------------------------------- |
| **Source DR**         | **Leaf1**       | Ethernet 1 (Downlink)         | 192.168.10.1/24 | Connects to Source PC              |
| Ethernet 2 (Uplink)   | 10.0.1.1/30     | Connects to Spine (Ethernet1) |                 |                                    |
| **RP / Spine**        | **Spine**       | **Ethernet 1 (Downlink)**     | **10.0.1.2/30** | **Connects to Leaf1 (RP Address)** |
| Ethernet 3 (Downlink) | 10.0.2.1/30     | Connects to Leaf2             |                 |                                    |
| **Receiver DR**       | **Leaf2**       | Ethernet 1<br />(Uplink)      | 10.0.2.2/30     | Connects to Spine (Ethernet3)      |
| Ethernet 2 (Downlink) | 192.168.20.1/24 | Connects to Receiver PC       |                 |                                    |

***

## <font color="#1d50a2">**Configuration Steps**</font>

### <font color="#1d50a2">**Configure Source DR (Leaf1)**</font>

Leaf1 connects to the Source PC via Ethernet 1 and the Spine via Ethernet 2. The critical step is enabling the **unknown-multicast trap** to ensure the first multicast packet is sent to the CPU for PIM registration.

:::BlockQuote
sonic# configure terminal
 <font color="#5fd74e"># 1.Configure Interfaces</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# description Link\_to\_Source\_PC
sonic(config-if-1)# ip address 192.168.10.1/24
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 2
sonic(config-if-2)# description Link\_to\_Spine
sonic(config-if-2)# ip address 10.0.1.1/30
sonic(config-if-2)# ip pim
sonic(config-if-2)# exit
 <font color="#5fd74e"># </font><font color="#5fd74e">2.</font><font color="#5fd74e">Enable Control Plane Trap</font>
sonic(config)# unknown-multicast trap
 <font color="#5fd74e"># 3.Configure Static RP</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 4.Configure Underlay Routing (OSPF)</font>
sonic(config)# router ospf
sonic(config-router)# network 10.0.1.0/30 area 0
sonic(config-router)# network 192.168.10.0/24 area 0
sonic(config-router)# exit
:::

### <font color="#1d50a2">**Configure Spine (RP)**</font>

The Spine acts as the Rendezvous Point. We use the IP address of Ethernet 1 (10.0.1.2) as the RP address for the entire network.

:::BlockQuote
<font color="#5fd74e"># 1.Configure Interfaces</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# description Link\_to\_Leaf1
sonic(config-if-1)# ip address 10.0.1.2/30
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 3
sonic(config-if-3)# description Link\_to\_Leaf2
sonic(config-if-3)# ip address 10.0.2.1/30
sonic(config-if-3)# ip pim
sonic(config-if-3)# exit
 <font color="#5fd74e"># 2.Configure Static RP</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 3.Configure Underlay Routing (OSPF)</font>
sonic(config)# router ospf
sonic(config-router)# network 10.0.1.0/30 area 0
sonic(config-router)# network 10.0.2.0/30 area 0
sonic(config-router)# exit
:::

### <font color="#1d50a2">**Configure Receiver DR (Leaf2)**</font>

Leaf2 connects to the Spine via Ethernet 1 and the Receiver PC via Ethernet 2. IGMPv3 is explicitly enabled on the receiver-facing interface.

:::BlockQuote
<font color="#5fd74e"># 1.Configure Interfaces</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# description Link\_to\_Spine
sonic(config-if-1)# ip address 10.0.2.2/30
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 2
sonic(config-if-2)# description Link\_to\_Receiver\_PC
sonic(config-if-2)# ip address 192.168.20.1/24
sonic(config-if-2)# ip igmp
sonic(config-if-2)# ip pim
sonic(config-if)# exit
 <font color="#5fd74e"># 2.Configure Static RP</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 3.Configure Underlay Routing (OSPF)</font>
sonic(config)# router ospf
sonic(config-router)# network 10.0.2.0/30 area 0
sonic(config-router)# network 192.168.20.0/24 area 0
sonic(config-router)# exit
:::

***

## <font color="#1d50a2">**Verification**</font>

### <font color="#1d50a2">**Control Plane**</font> <font color="#1d50a2">**Verification**</font>

- <font color="#1d50a2">**Verify PIM Neighbors (on Spine)**</font>

:::BlockQuote{indent="1"}
sonic# show ip pim neighbor
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/f9JfjFHNWhwV--Kq5Wvp2-20260408-024753.png" size="100" width="900" height="120" position="center" showCaption="false" indent="1"}

- <font color="#1d50a2">**Verify RP Mapping (Any Device)**</font>

:::BlockQuote{indent="1"}
sonic# show ip pim rp-info
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/GvIrlFdfwIMEIWG9Vga_F-20260408-025126.png" size="100" width="899" height="88" position="center" showCaption="false" indent="1"}

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/xY-lVQ0OXNhHrSHhuX-_X-20260408-025356.png" size="100" width="890" height="80" position="center" showCaption="false" indent="1"}

### <font color="#1d50a2">**Data Plane Verification**</font>

Send multicast traffic from Source (`192.168.10.10`) to Group (`239.1.1.1`) and have the Receiver join the group.

- <font color="#1d50a2">**Leaf1 (Source DR) - Verify Registration**</font>

:::BlockQuote{indent="1"}
sonic# show ip mroute
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/XWf6hrWbaNzSVY6elfadp-20260408-025635.png" size="100" width="899" height="200" position="center" showCaption="false" indent="1"}

- <font color="#1d50a2">**Spine (RP) - Verify Forwarding Tree**</font>

:::BlockQuote{indent="1"}
sonic# show ip mroute
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/aEAPidhwwN5DT9HQw1Ohz-20260408-030853.png" size="100" width="899" height="200" position="center" showCaption="false" indent="1"}

- <font color="#1d50a2">**Leaf2 (Receiver DR) - Verify Reception**</font>

:::BlockQuote{indent="1"}
sonic# show ip mroute
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/wDUMLN2uDpB0JArUiZtUo-20260408-031146.png" size="100" width="900" height="174" position="center" showCaption="false" indent="1"}

***

# <font color="#1d50a2">**Scenario 2\: Multicast over BGP (Data Center Architecture)**</font>

## <font color="#1d50a2">Scenario Overview</font>

This scenario replicates a typical Data Center **Spine-Leaf architecture** using **BGP** as the underlay routing protocol.
Unlike OSPF, BGP does not automatically flood routing information. This scenario validates that the AsterNOS PIM stack can correctly perform **RPF (Reverse Path Forwarding) checks** based on BGP routing tables.

**Key Changes:**

- **Underlay Protocol:** Replaced OSPF with **BGP**.
- **Routing Logic:** Leaf2 must learn the RP address via BGP to send PIM Join messages.

## <font color="#1d50a2">**Configuration Steps**</font>

### <font color="#1d50a2">**Configure Source DR (Leaf1)**</font>

Leaf1 connects to the Source (192.168.10.10). It must advertise the source subnet into BGP so the Spine knows where the multicast source is located.

:::BlockQuote
<font color="#5fd74e"># 1.Interface Configuration</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 192.168.10.1/24
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 2
sonic(config-if-2)# ip address 10.0.1.1/30
sonic(config-if-2)# ip pim
sonic(config-if-2)# exit
 <font color="#5fd74e"># 2. Enable Control Plane Trap</font>
sonic#(config)# unknown-multicast trap
 <font color="#5fd74e"># 3.Static RP Configuration</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 4.BGP Configuration (AS 65001)</font>
sonic(config)# router bgp 65001
sonic(config-router)# bgp router-id 1.1.1.1
sonic(config-router)# no bgp ebgp-requires-policy
sonic(config-router)# bgp default ipv4-unicast

sonic(config-router)# neighbor 10.0.1.2 remote-as 65000

sonic(config-router)# address-family ipv4 unicast
sonic(config-router-af)# neighbor 10.0.1.2 activate
sonic(config-router-af)# network 192.168.10.0/24
sonic(config-router-af)# exit
sonic(config-router)# exit
:::

### <font color="#1d50a2">**Configure Spine (RP)**</font>

:::BlockQuote
<font color="#5fd74e"># 1.Interface Configuration</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 10.0.1.2/30
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 3
sonic(config-if-3)# ip address 10.0.2.1/30
sonic(config-if-3)# ip pim
sonic(config-if-3)# exit
 <font color="#5fd74e"># 2.Static RP Configuration</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 3.BGP Configuration (AS 65000)</font>
sonic(config)# router bgp 65000
sonic(config-router)# bgp router-id 2.2.2.2
sonic(config-router)# no bgp ebgp-requires-policy
sonic(config-router)# bgp default ipv4-unicast

sonic(config-router)# neighbor 10.0.1.1 remote-as 65001
sonic(config-router)# neighbor 10.0.2.2 remote-as 65002

sonic(config-router)# address-family ipv4 unicast
sonic(config-router-af)# neighbor 10.0.1.1 activate
sonic(config-router-af)# neighbor 10.0.2.2 activate
sonic(config-router-af)# network 10.0.1.0/30
sonic(config-router-af)# exit
sonic(config-router)# exit
:::

### <font color="#1d50a2">**Configure Receiver DR (Leaf2)**</font>

Leaf2 (AS 65002) connects to the Receiver. It learns the RP route via BGP.

:::BlockQuote
<font color="#5fd74e"># 1.Interface Configuration</font>
sonic(config)# interface ethernet 1
sonic(config-if-1)# ip address 10.0.2.2/30
sonic(config-if-1)# ip pim
sonic(config-if-1)# exit

sonic(config)# interface ethernet 2
sonic(config-if-2)# ip address 192.168.20.1/24
sonic(config-if-2)# ip pim
sonic(config-if-2)# ip igmp
sonic(config-if-2)# exit
 <font color="#5fd74e"># 2.Static RP Configuration</font>
sonic(config)# ip pim rp 10.0.1.2 224.0.0.0/4
 <font color="#5fd74e"># 3.BGP Configuration (AS 65002)</font>
sonic(config)# router bgp 65002
sonic(config-router)# bgp router-id 3.3.3.3
sonic(config-router)# no bgp ebgp-requires-policy
sonic(config-router)# bgp default ipv4-unicast

sonic(config-router)# neighbor 10.0.2.1 remote-as 65000

sonic(config-router)# address-family ipv4 unicast
sonic(config-router-af)# neighbor 10.0.2.1 activate
sonic(config-router-af)# network 192.168.20.0/24
sonic(config-router-af)# exit
sonic(config-router)# exit
:::

## <font color="#1d50a2">**Verification**</font>

### <font color="#1d50a2">**Verify Underlay Routing (BGP)**</font>

:::BlockQuote
sonic# show ip route
:::

- Leaf1:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/9fntCAzR0IBsElyONNqeq-20260408-082536.png" size="100" width="900" height="299" position="center" showCaption="false" indent="1"}

- RP:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/7hYQ-6JdVjNsZ0bHiGwKu-20260408-082602.png" size="100" width="899" height="299" position="center" showCaption="false" indent="1"}

- Leaf2:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/UHNrMKrczxSZs9D-_Hmsg-20260408-082458.png" size="100" width="899" height="300" position="center" showCaption="false" indent="1"}

### <font color="#1d50a2">**Verify Multicast Routing (PIM over BGP)**</font>

Check the multicast routing table **after** the receiver joins the group.

:::BlockQuote
sonic# show ip mroute
:::

- Leaf1:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/tugOMLbaB9Il0LbbxdbFq-20260408-083036.png" size="100" width="899" height="210" position="center" showCaption="false" indent="1"}

- RP:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/yOTvIjz7g18OFTgemsViQ-20260408-083117.png" size="100" width="900" height="199" position="center" showCaption="false" indent="1"}

- Leaf2:

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/uDlPtiLsmsKaiXlYWBA4T-20260408-083208.png" size="100" width="890" height="178" position="center" showCaption="false" indent="1"}

***

# <font color="#1d50a2">**Scenario 3\: PIM-SSM (Source Specific Multicast)**</font>

## <font color="#1d50a2">**Scenario Overview**</font>

This scenario demonstrates the transition from ASM to PIM-SSM. In this mode, the RP is eliminated, and the multicast distribution tree is built directly from the receiver to the source using IGMPv3.

## <font color="#1d50a2">**Configuration Steps**</font>

This configuration assumes the physical underlay (Scenario 1 or 2) is **already** functional.

### <font color="#1d50a2">**Upgrade to IGMPv3(Leaf2 Only)**</font>

To process Source-Specific joins, the receiver-facing interface on Leaf2 must be upgraded to IGMP version 3.

:::BlockQuote
sonic(config)# interface ethernet 2
sonic(config-if)# ip igmp version 3
sonic(config-if)# exit
:::

### <font color="#1d50a2">**Global RP Cleanup (All Devices)**</font>

The core of SSM is the complete absence of a Rendezvous Point. You must remove the static RP configuration from **Leaf1, Spine, and Leaf2** to tear down the ASM shared tree mechanism.

:::BlockQuote
sonic(config)# no ip pim rp 10.0.1.2 224.0.0.0/4
:::

:::hint{type="info"}
***Note:***&#x20;
*(No further router configuration is needed. The network is now ready for SSM.)*
:::

### <font color="#1d50a2">**Flow Triggering Requirements**</font>

To establish the SSM Shortest Path Tree (SPT), the following conditions must be met by the end-stations:

- **Source Side:** Outbound multicast traffic must target a destination IP within `232.0.0.0/8`.
- **Receiver Side:** The host must issue an **IGMPv3 Membership Report&#x20;**&#x74;hat includes the specific Source IP `(192.168.10.10)` and Group IP.

***

## <font color="#1d50a2">**Verification**</font>

### <font color="#1d50a2">**Verify IGMPv3 Join**</font>

Check the IGMP groups on Leaf2 to ensure the receiver has successfully sent an IGMPv3 Source-Specific Join.

:::BlockQuote
sonic# show ip igmp groups
:::

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/97TXFpPoSSANspPz-FYig-20260408-085710.png)

### <font color="#1d50a2">**Verify PIM-SSM Routing Table**</font>

Check the multicast routing table on Leaf2 to confirm the Shortest Path Tree (SPT) has been established directly to the source.

:::BlockQuote
sonic# show ip mroute
:::

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/ShoT6yjCM61UTs8NAx1YA-20260408-085747.png)

***

# <font color="#1d50a2">**Conclusion**</font>

This guide has verified the comprehensive multicast routing capabilities of AsterNOS, enabling highly efficient traffic distribution across diverse topologies. The completed scenarios demonstrate that AsterNOS provides the essential flexibility required for modern networks, seamlessly supporting both traditional PIM-ASM and advanced, RP-less PIM-SSM architectures.
