---
title: IP Multicast Configuration
slug: routing/ip-multicast-configuration
description: IP Multicast Configuration
createdAt: 2026-02-05T05:53:28.001Z
---

## <font color="#1d50a2">Feature enable</font>

### <font color="#1d50a2">mcast-snooping enable</font>

**\[Command]**
**mcast-snooping enable**

**\[Purpose]**
Enable multicast functionality

**\[View]**
System configuration view

**\[Notes]**
The multicast container is disabled by default. If the device needs to perform multicast data forwarding and learning, this command must be issued in advance

**\[Use Cases]**

```plaintext
sonic(config)# mcast-snooping enable
```

## <font color="#1d50a2">IGMP Snooping Configuration</font>

### s<font color="#1d50a2">how vlan igmp-snooping</font>

**\[Command]**
**show vlan igmp-snooping**

**\[Purpose]**
Display IGMP Snooping information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan igmp-snooping
```

### <font color="#1d50a2">show vlan igmp-snooping mrouter</font>

**\[Command]**
**show vlan igmp-snooping mrouter**

**\[Purpose]**
Display IGMP Snooping router port information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan igmp-snooping mrouter
```

### <font color="#1d50a2">show vlan igmp-snooping mvlan</font>

**\[Command]**
**show vlan igmp-snooping mvlan**

**\[Purpose]**
Display VLAN-to-multicast VLAN binding

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan igmp-snooping mvlan
```

### <font color="#1d50a2">igmp-snooping enable</font>

**\[Command]**
**igmp-snooping enable**

**\[Purpose]**
Enable IGMP Snooping for the VLAN

**\[View]**
VLAN view

**\[Notes]**
The IGMP Snooping function operates on the Layer 2 switching network between the router and user terminals. It maintains the multicast forwarding table by listening to multicast protocol messages sent from the router and user terminals, thereby enabling multicast packets to be broadcast between designated interfaces within the VLAN

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping enable
```

### <font color="#1d50a2">igmp-snooping version *1-3*</font>

**\[Command]**
**igmp-snooping version *1-3***

**\[Purpose]**
Configure IGMP version

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping version 3
```

### <font color="#1d50a2">mcast-snooping group-limit ethernet *interface-name* *limit*</font>

**\[Command]**
**mcast-snooping group-limit ethernet *interface-name* *limit***

**\[Purpose]**
Set the maximum number of multicast entries that the interface can accommodate

**\[Parameter]**

| **Parameter**  | **Description**     |
| -------------- | ------------------- |
| interface-name | Interface name      |
| limit          | Value range: 1–4094 |

**\[View]**
VLAN view

**\[Notes]**
After modifying the maximum number of entries an interface can learn, any entries exceeding the limit will be learned into the IGMP process memory space but will not be installed (i.e., not delivered to hardware). Additionally, these entries will not be relearned within their aging cycle

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mcast-snooping group-limit ethernet 10 4094
```

### <font color="#1d50a2">igmp-snooping proxy enable</font>

**\[Command]**
**igmp-snooping proxy enable**

**\[Purpose]**
Enable IGMP Snooping proxy

**\[View]**
VLAN view

**\[Notes]**
After enabling the IGMP Snooping Proxy function, the device can send IGMP Query messages on behalf of the router and receive IGMP Report/Leave messages from users, thereby reducing the load on the routing device when a large number of terminals exist in the network

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping proxy enable
```

### <font color="#1d50a2">igmp-snooping querier enable</font>

**\[Command]**
**igmp-snooping querier enable**

**\[Purpose]**
Enable IGMP querier functionality

**\[View]**
VLAN view

**\[Notes]**
Configuring the querier on the device allows it to send IGMP Query messages on behalf of the upstream device. The device will periodically send IGMP Query packets to all interfaces (including router ports) within the VLAN.
If an IGMP querier already exists in the multicast network, this may trigger a re-election of the IGMP querier

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping querier enable
```

### <font color="#1d50a2">igmp-snooping querier-ip *ip-address*</font>

**\[Command]**
**igmp-snooping querier-ip *ip-address***

**\[Purpose]**
Configure the source IP address of IGMP Query packets

**\[View]**
VLAN view

**\[Notes]**
When multiple queriers exist within the network, the selection of the querier can be controlled by modifying the IP address of the device's Query packets

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping querier enable
sonic(config-vlan-100)# igmp-snooping querier-ip 10.1.0.10
```

### i<font color="#1d50a2">gmp-snooping fast-leave enable</font>

**\[Command]**
**igmp-snooping fast-leave enable**

**\[Purpose]**
Enable fast leave for member ports

**\[View]**
VLAN view

**\[Notes]**
When an IGMP Leave message is received from a host leaving a specific multicast group, the device will immediately delete the corresponding multicast forwarding entry for that host without sending a Group-Specific Query

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping fast-leave enable
```

### <font color="#1d50a2">igmp-snooping robustness *1-255*</font>

**\[Command]**
**igmp-snooping robustness *1-255***

**\[Purpose]**
Configure the robustness variable

**\[View]**
VLAN view

**\[Notes]**
This command adjusts robustness in the following two ways:

- It adjusts the number of Group-Specific Query messages sent by the querier to avoid potential network packet loss. When an IGMP Leave message for a multicast group is received from a user, the querier sends the configured number of Group-Specific Query messages to inquire whether any members remain in that multicast group.
- It adjusts the member aging time. After a port receives a report message from a downstream host, it sets the member aging time as: (Number of Group-Specific Query messages × General Query interval) + Maximum response time for downstream hosts to reply to the querier

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping robustness 100
```

### <font color="#1d50a2">igmp-snooping query-interval *1-18000*</font>

**\[Command]**
**igmp-snooping query-interval *1-18000***

**\[Purpose]**
Configure the interval at which the device sends General Query messages

**\[Parameter]**

| **Parameter** | **Description**                         |
| ------------- | --------------------------------------- |
| 1-18000       | Unit: seconds (s); default value: 125 s |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping query-interval 200
```

### <font color="#1d50a2">igmp-snooping query-max-response-time *1-25*</font>

**\[Command]**
**igmp-snooping query-max-response-time *1-25***

**\[Purpose]**
Configure the maximum response time for Query messages

**\[Parameter]**

| **Parameter** | **Description**                        |
| ------------- | -------------------------------------- |
| 1-25          | Unit: seconds (s); default value: 10 s |

**\[View]**
VLAN view

**\[Notes]**
Ensure that the General Query interval is greater than the maximum response time for downstream hosts to reply to the querier; otherwise, the device may incorrectly delete member entries

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping query-max-response-time 10
```

### <font color="#1d50a2">igmp-snooping last-member-query-interval *100-25500*</font>

**\[Command]**
**igmp-snooping last-member-query-interval *100-25500***

**\[Purpose]**
Configure the interval for the querier to send Group-Specific Query messages

**\[Parameter]**

| **Parameter** | **Description**                                 |
| ------------- | ----------------------------------------------- |
| 100-25500     | Unit: milliseconds (ms); default value: 1000 ms |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping last-member-query-interval 2000
```

### <font color="#1d50a2">igmp-snooping mrouter-aging *1-1000*</font>

**\[Command]**
**igmp-snooping mrouter-aging *1-1000***

**\[Purpose]**
Configure the dynamic router port aging time within a VLAN

**\[Parameter]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| 1-1000        | Unit: seconds ; default value: 180 s |

**\[View]**
VLAN view

**\[Notes]**
If no IGMP Query or PIM Hello message is received within the dynamic router port aging time, the port will no longer be considered a router port

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping mrouter-aging 10
```

### <font color="#1d50a2">igmp-snooping mrouter ethernet *interface-name*</font>

**\[Command]**
**igmp-snooping mrouter ethernet *interface-name***

**\[Purpose]**
Configure the interface as a static router port for the VLAN

**\[Parameter]**

| **Parameter**  | **Description** |
| -------------- | --------------- |
| interface-name | interface name  |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# igmp-snooping mrouter ethernet 10
```

### <font color="#1d50a2">igmp-snooping mvlan *multicast-vlan* *user-vlan*</font>

**\[Command]**
**igmp-snooping mvlan *multicast-vlan* *user-vlan***

**\[Purpose]**
Configure multicast VLAN

**\[Parameter]**

| **Parameter**  | **Description**                                                                                                                   |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| multicast-vlan | Multicast VLAN                                                                                                                    |
| user-vlan      | User VLAN(s), which can be configured individually with commas separating discrete values or as a continuous range using a hyphen |

**\[View]**
System configuration view

**\[Notes]**
When users in different VLANs need to receive data from the same multicast source, the device must replicate the data stream for each VLAN. In this scenario, efficient forwarding can be achieved by configuring a multicast VLAN: configure the VLANs where the users reside as user VLANs, and configure the VLAN to which the router interface belongs as the multicast VLAN. Data is then unidirectionally replicated from the multicast VLAN to each user VLAN.
This configuration takes effect only when IGMP Snooping is enabled in both the multicast VLAN and the user VLANs

**\[Use Cases]**

```plaintext
sonic(config)# igmp-snooping mvlan 100 200,201
```

## <font color="#1d50a2">MLD Snooping Configuration</font>

### <font color="#1d50a2">show vlan mld-snooping</font>

**\[Command]**
**show vlan mld-snooping**

**\[Purpose]**
Display MLD Snooping information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan mld-snooping
```

### <font color="#1d50a2">show vlan mld-snooping mrouter</font>

**\[Command]**
**show vlan mld-snooping mrouter**

**\[Purpose]**
Display MLD Snooping router port information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan mld-snooping mrouter
```

### <font color="#1d50a2">show vlan mld-snooping mvlan</font>

**\[Command]**
**show vlan mld-snooping mvlan**

**\[Purpose]**
Display VLAN-to-multicast VLAN binding

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show vlan mld-snooping mvlan
```

### <font color="#1d50a2">mld-snooping enable</font>

**\[Command]**
**mld-snooping enable**

**\[Purpose]**
Enable MLD Snooping for the VLAN

**\[View]**
System view

**\[Notes]**
The MLD Snooping function operates on the Layer 2 switching network between the router and user terminals. It maintains the multicast forwarding table by listening to IPv6 multicast protocol messages sent from the router and user terminals, thereby enabling multicast packets to be broadcast between designated interfaces within the VLAN

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping enable
```

### <font color="#1d50a2">mld-snooping version *1-2*</font>

**\[Command]**
**mld-snooping version *1-2***

**\[Purpose]**
Configure MLD version

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping version 2
```

### <font color="#1d50a2">mld-snooping proxy enable</font>

**\[Command]**
**mld-snooping proxy enable**

**\[Purpose]**
Enable MLD Snooping proxy

**\[View]**
VLAN view

**\[Notes]**
After enabling the MLD Snooping Proxy function, the device can send MLD Query messages on behalf of the router and receive IGMP Report/Leave messages from users, thereby reducing the load on the routing device when a large number of terminals exist in the network

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping proxy enable
```

### <font color="#1d50a2">mld-snooping querier enable</font>

**\[Command]**
**mld-snooping querier enable**

**\[Purpose]**
Enable MLD querier functionality

**\[View]**
VLAN view

**\[Notes]**
Configuring the querier on the device allows it to send MLD Query messages on behalf of the upstream device. The device will periodically send MLD Query packets to all interfaces (including router ports) within the VLAN.
If an MLD querier already exists in the multicast network, this may trigger a re-election of the MLD querier

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping querier enable
```

### <font color="#1d50a2">m</font><font color="#1d50a2">ld-snooping querier-ip *ipv6-address*</font>

**\[Command]**
**mld-snooping querier-ip *ipv6-address***

**\[Purpose]**
Configure the source IPv6 address of MLD Query packets

**\[View]**
VLAN view

**\[Notes]**
When multiple queriers exist within the network, the selection of the querier can be controlled by modifying the IPv6 address of the device's Query packets

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping querier enable
sonic(config-vlan-100)# mld-snooping querier-ip 1000::1
```

### <font color="#1d50a2">mld-snooping fast-leave enable</font>

**\[Command]**
**mld-snooping fast-leave enable**

**\[Purpose]**
Enable fast leave for member ports

**\[View]**
VLAN view

**\[Notes]**
When an MLD Leave message is received from a host leaving a specific multicast group, the device will immediately delete the corresponding multicast forwarding entry for that host without sending a Group-Specific Query

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping fast-leave enable
```

### <font color="#1d50a2">mld-snooping robustness *1-255*</font>

**\[Command]**
**mld-snooping robustness *1-255***

**\[Purpose]**
Configure the robustness variable

**\[View]**
VLAN view

**\[Notes]**
This command adjusts robustness in the following two ways:

- It adjusts the number of Group-Specific Query messages sent by the querier to avoid potential network packet loss. When an MLD Leave message for a multicast group is received from a user, the querier sends the configured number of Group-Specific Query messages to inquire whether any members remain in that multicast group.
- It adjusts the member aging time. After a port receives a report message from a downstream host, it sets the member aging time as: (Number of Group-Specific Query messages × General Query interval) + Maximum response time for downstream hosts to reply to the querier

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping robustness 100
```

### <font color="#1d50a2">mld-snooping query-interval *1-18000*</font>

**\[Command]**
**mld-snooping query-interval *1-18000***

**\[Purpose]**
Configure the interval at which the device sends General Query messages

**\[Parameter]**

| **Parameter** | **Description**                         |
| ------------- | --------------------------------------- |
| 1-18000       | Unit: seconds (s); default value: 125 s |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping query-interval 200
```

### <font color="#1d50a2">mld-snooping query-max-response-time *1-25*</font>

**\[Command]**
**mld-snooping query-max-response-time *1-25***

**\[Purpose]**
Configure the maximum response time for Query messages

**\[Parameter]**

| **Parameter** | **Description**                        |
| ------------- | -------------------------------------- |
| 1-25          | Unit: seconds (s); default value: 10 s |

**\[View]**
VLAN view

**\[Notes]**
Ensure that the General Query interval is greater than the maximum response time for downstream hosts to reply to the querier; otherwise, the device may incorrectly delete member entries

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping query-max-response-time 10
```

### <font color="#1d50a2">mld-snooping last-member-query-interval *100-25500*</font>

**\[Command]**
**mld-snooping last-member-query-interval *100-25500***

**\[Purpose]**
Configure the interval for the querier to send Group-Specific Query messages

**\[Parameter]**

| **Parameter** | **Description**                                 |
| ------------- | ----------------------------------------------- |
| 100-25500     | Unit: milliseconds (ms); default value: 1000 ms |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping last-member-query-interval 2000
```

### <font color="#1d50a2">mld-snooping mrouter-aging *1-1000*</font>

**\[Command]**
**mld-snooping mrouter-aging *1-1000***

**\[Purpose]**
Configure the dynamic router port aging time within a VLAN

**\[Parameter]**

| **Parameter** | **Description**                      |
| ------------- | ------------------------------------ |
| 1-1000        | Unit: seconds ; default value: 180 s |

**\[View]**
VLAN view

**\[Notes]**
If no MLD Query or PIM Hello message is received within the dynamic router port aging time, the port will no longer be considered a router port

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping mrouter-aging 10
```

### <font color="#1d50a2">mld-snooping mrouter ethernet *interface-name*</font>

**\[Command]**
**mld-snooping mrouter ethernet *interface-name***

**\[Purpose]**
Configure the interface as a static router port for the VLAN

**\[Parameter]**

| **Parameter**  | **Description** |
| -------------- | --------------- |
| interface-name | interface name  |

**\[View]**
VLAN view

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# mld-snooping mrouter ethernet 10
```

### <font color="#1d50a2">mld-snooping mvlan *multicast-vlan* *user-vlan*</font>

**\[Command]**
**mld-snooping mvlan *multicast-vlan* *user-vlan***

**\[Purpose]**
Configure multicast VLAN

**\[Parameter]**

| **Parameter**  | **Description**                                                                                                                   |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| multicast-vlan | Multicast VLAN                                                                                                                    |
| user-vlan      | User VLAN(s), which can be configured individually with commas separating discrete values or as a continuous range using a hyphen |

**\[View]**
System configuration view

**\[Notes]**
When users in different VLANs need to receive data from the same multicast source, the device must replicate the data stream for each VLAN. In this scenario, efficient forwarding can be achieved by configuring a multicast VLAN: configure the VLANs where the users reside as user VLANs, and configure the VLAN to which the router interface belongs as the multicast VLAN. Data is then unidirectionally replicated from the multicast VLAN to each user VLAN.
This configuration takes effect only when MLD Snooping is enabled in both the multicast VLAN and the user VLANs

**\[Use Cases]**

```plaintext
sonic(config)# mld-snooping mvlan 100 200,201
```

## <font color="#1d50a2">L2 Multicast Table</font>

### <font color="#1d50a2">show l2-multicast-table</font>

**\[Command]**
**show l2-multicast-table**

**\[Purpose]**
Display multicast address information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show l2-multicast-table
```

### <font color="#1d50a2">interface l2mc-static-group ethernet *interface-name* *vlan-id* *ip/ipv6-address*</font>

**\[Command]**
**interface l2mc-static-group ethernet *interface-name* *vlan-id* *ip/ipv6-address***

**\[Purpose]**
Statically join a multicast group on the interface

**\[Parameter]**

| **Parameter**   | **Description**                                                  |
| --------------- | ---------------------------------------------------------------- |
| interface-name  | interface name                                                   |
| vlan-id         | VLAN ID of the interface                                         |
| ip/ipv6-address | Multicast group address to be statically joined on the interface |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# interface l2mc-static-group ethernet 1 100 224.1.1.1
```

## <font color="#1d50a2">PIM Configuration</font>

### <font color="#1d50a2">show ip pim group-type \[*group-address*\] \[*json*\]</font>

**\[Command]**
**show ip pim group-type \[*group-address*] \[*json*]**

**\[Purpose]**
Display PIM mode information

**\[Parameter]**

| **Parameter** | **Description**          |
| ------------- | ------------------------ |
| group-address | iMulticast group address |
| json          | Output in JSON format    |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ip pim group-type
```

### <font color="#1d50a2">show ip pim interface \[\[*detail* \[*json*\]\] |\[*json*\] |\[*traffic* \[*json*\]\] |\[*interface-name* \[*json*\]\]\]</font>

**\[Command]**
**show ip pim interface \[\[*detail* \[*json*]] |\[*json*] |\[*traffic* \[*json*]] |\[*interface-name* \[*json*]]]**

**\[Purpose]**
Display PIM interface status information

**\[Parameter]**

| **Parameter**  | **Description**       |
| -------------- | --------------------- |
| detail         | Detailed information  |
| traffic        | PIM packet statistics |
| interface-name | interface name        |
| json           | Output in JSON format |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# sonic# show ip pim interface
```

### <font color="#1d50a2">show ip pim join \[*group1-address* \[*json*\]| *group1-address* *group2-address* \[*json*\]| \[*json*\]\]</font>

**\[Command]**
**show ip pim join \[*group1-address* \[*json*]| *group1-address* *group2-address* \[*json*]| \[*json*]]**

**\[Purpose]**
Display multicast group information learned via PIM join

**\[Parameter]**

| **Parameter**  | **Description**            |
| -------------- | -------------------------- |
| group1-address | Multicast group IP address |
| group2-address | Multicast group IP address |
| json           | Output in JSON format      |

**\[View]**
System view

**\[Notes]**
If group1-address is specified, the display is filtered to show only that multicast address.
If group2-address is also specified, group1-address is treated as the source (S) in an (S,G) entry, and group2-address as the group (G) for filtered display.
A state of JOIN indicates the entry was generated by a received PIM join message.
A state of NOINFO indicates the entry was not generated by a PIM join message received locally

**\[Use Cases]**

```plaintext
sonic# show ip pim join
```

### <font color="#1d50a2">show ip pim local-membership \[*json*\]</font>

**\[Command]**
**show ip pim local-membership \[*json*]**

**\[Purpose]**
Display the locally generated relationship of PIM entries

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| json          | Output in JSON format |

**\[View]**
System view

**\[Notes]**
A state of INCLUDE indicates that the entry was generated locally by receiving an IGMP message.
A state of NOINFO indicates that the entry was not generated locally by receiving an IGMP message

**\[Use Cases]**

```plaintext
sonic# show ip pim local-membership
```

### <font color="#1d50a2">show ip pim neighbor \[*detail* \[*json*\]| *json*| *interface\_name*\]</font>

**\[Command]**
**show ip pim neighbor \[*detail* \[*json*]| *json*| *interface\_name*]**

**\[Purpose]**
Display PIM interface neighbor relationships

**\[Parameter]**

| **Parameter**   | **Description**                                           |
| --------------- | --------------------------------------------------------- |
| detail          | view detailed information of PIM neighbors                |
| interface\_name | display PIM neighbor information for a specific interface |
| json            | Output in JSON format                                     |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ip pim neighbor
```

### <font color="#1d50a2">show ip pim rp-info \[*json*\]</font>

**\[Command]**
**show ip pim rp-info \[*json*]**

**\[Purpose]**
Display RP information

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| json          | Output in JSON format |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ip pim rp-info
```

### <font color="#1d50a2">show ip pim rpf \[*json*\]</font>

**\[Command]**
**show ip pim rpf \[*json*]**

**\[Purpose]**
Display RPF interface status information

**\[Parameter]**

| **Parameter** | **Description**       |
| ------------- | --------------------- |
| json          | Output in JSON format |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ip pim rpf
```

### <font color="#1d50a2">show ip pim upstream \[*group1-address* \[*json*\]| *group1-address* *group2-address* \[*json*\]| \[*json*\]\]</font>

**\[Command]**
**show ip pim upstream \[*group1-address* \[*json*]| *group1-address* *group2-address* \[*json*]| \[*json*]]**

**\[Purpose]**
Display the upstream interface status information for (S,G) entries

**\[Parameter]**

| **Parameter**  | **Description**            |
| -------------- | -------------------------- |
| group1-address | Multicast group IP address |
| group2-address | Multicast group IP address |
| json           | Output in JSON format      |

**\[View]**
System view

**\[Notes]**

If group1-address is specified, the display is filtered to show only that multicast address.
If group2-address is also specified, group1-address is treated as the source (S) in an (S,G) entry, and group2-address as the group (G) for filtered display

**\[Use Cases]**

```plaintext
sonic# show ip pim upstream
```

### <font color="#1d50a2">show ip pim mroute \[*vrf* \{*all*| *vrf\_name*\}| *fill* \[*json*\]| *summary* \[*json*\]\]</font>

**\[Command]**
**show ip pim mroute \[*vrf* \{*all*| *vrf\_name*}| *fill* \[*json*]| *summary* \[*json*]]**

**\[Purpose]**
Display multicast routing table

**\[Parameter]**

| **Parameter** | **Description**                                                      |
| ------------- | -------------------------------------------------------------------- |
| vrf\_name     | VRF name                                                             |
| fill          | Display all multicast group entry fields in full, with no truncation |
| Summary       | Display the number of multicast routing entries                      |
| json          | Output in JSON format                                                |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show ip mroute summary
```

### <font color="#1d50a2">ip pim \[drpriority *priority*| hello *interval*|use-source *ip-address*\]</font>

**\[Command]**
**ip pim \[drpriority *priority*| hello *interval*|use-source *ip-address*]**

**\[Purpose]**
Enable PIM functionality on the Layer 3 interface

**\[Parameter]**

| **Parameter** | **Description**                                          |
| ------------- | -------------------------------------------------------- |
| priority      | Set the PIM interface priority ,value range: 1-65535     |
| interval      | Set the PIM Hello message interval, value range: 1-65535 |
| ip-address    | Specify the source IP address for PIM Hello messages     |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 10
sonic(config-if-10)# ip pim
```

### <font color="#1d50a2">ip pim rp *A.B.C.D* \[*A.B.C.D/M*| prefix-list *prefix-list-name*\]</font>

**\[Command]**
**ip pim rp *A.B.C.D* \[*A.B.C.D/M*| prefix-list *prefix-list-name*]**

**\[Purpose]**
Configure static RP

**\[Parameter]**

| **Parameter**    | **Description**                                                                                      |
| ---------------- | ---------------------------------------------------------------------------------------------------- |
| A.B.C.D          | SRP address                                                                                          |
| A.B.C.D/M        | Multicast address range covered by the RP                                                            |
| prefix-list-name | Prefix list name, configured to control the RP corresponding to multicast groups using a prefix list |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ip pim rp 1.1.1.1 224.10.10.0/24
```

### <font color="#1d50a2">ip pim join-prune-interval *interval*</font>

**\[Command]**
**ip pim join-prune-interval *interval***

**\[Purpose]**
Configure join/prune interval period

**\[Parameter]**

| **Parameter** | **Description**                                                          |
| ------------- | ------------------------------------------------------------------------ |
| interval      | Interval period, default 60 seconds, unit: seconds, valid range: 1-65535 |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ip pim join-prune-interval 60
```

### <font color="#1d50a2">ip pim register-accept-list *prefix\_name*</font>

**\[Command]**
**ip pim register-accept-list *prefix\_name***

**\[Purpose]**
When PIM receives a register packet, the packet's source will be compared against the specified prefix list. If the comparison passes, normal processing continues. If the source address of the register packet is denied by the prefix list, a register-stop message is sent to the source

**\[Parameter]**

| **Parameter** | **Description**  |
| ------------- | ---------------- |
| prefix\_name  | Prefix list name |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ip pim register-accept-list test
```

### <font color="#1d50a2">ip pim register-suppress-time *interval*</font>

**\[Command]**
**ip pim register-suppress-time *interval***

**\[Purpose]**
Configure the source registration suppression timer. When the timer expires, the RP sends a register-stop message to the source DR

**\[Parameter]**

| **Parameter** | **Description**                                                                  |
| ------------- | -------------------------------------------------------------------------------- |
| interval      | Registration suppression time: default 60 seconds, unit: seconds, range: 1-65535 |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# ip pim register-suppress-time 60
```

### <font color="#1d50a2">clear ip mroute \[vrf *vrf\_name*| count\]</font>

**\[Command]**
**clear ip mroute \[vrf *vrf\_name*| count]**

**\[Purpose]**
Clear dynamically generated multicast routing entries / Clear multicast routing entry statistics

**\[Parameter]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| vrf\_name     | VRF name        |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# clear ip mroute
```

### <font color="#1d50a2">ip mroute \{ethernet *interface\_id*|vlan *vlan\_id*|link-aggregation *lag\_id*\} *A.B.C.D* \[*source\_address*\]</font>

**\[Command]**
**ip mroute \{ethernet *interface\_id*|vlan *vlan\_id*|link-aggregation *lag\_id*} *A.B.C.D* \[*source\_address*]**

**\[Purpose]**
Configure static multicast route

**\[Parameter]**

| **Parameter**   | **Description**                                                 |
| --------------- | --------------------------------------------------------------- |
| interface\_id   | Specify the interface ID as the egress interface for the mroute |
| vlan\_id        | Specify the VLAN ID as the egress interface for the mroute      |
| lag\_id         | Specify the LAG ID as the egress interface for the mroute       |
| A.B.C.D         | Multicast group address                                         |
| source\_address | Multicast source address                                        |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 10
sonic(config-if-10)# ip mroute ethernet 1 224.1.1.1 120.1.1.122
```

### <font color="#1d50a2">unknown-multicast trap</font>

**\[Command]**
**unknown-multicast trap**

**\[Purpose]**
Configure unknown multicast packets to be sent to the CPU

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic(config)# unknown-multicast trap
```

### <font color="#1d50a2">ip igmp \[join *A.B.C.D* \[*A.B.C.D*\]|last-member-query-interval *interval*| last-member-query-count *count*| query-interval *interval*| query-max-response-time *interval*| version *version-number*\]</font>

**\[Command]**
**ip igmp \[join *A.B.C.D* \[*A.B.C.D*]|last-member-query-interval *interval*| last-member-query-count *count*| query-interval *interval*| query-max-response-time *interval*| version *version-number*]**

**\[Purpose]**
Configure the IGMP function for the member-side DR

**\[Parameter]**

| **Parameter**  | **Description**                                         |
| -------------- | ------------------------------------------------------- |
| A.B.C.D        | multicast group address                                 |
| A.B.C.D        | multicast source address                                |
| interval       | query interval, range: 1-65535                          |
| count          | query count, range: 1-255                               |
| interval       | general query message interval, range: 1-1800           |
| interval       | maximum response time for query messages, range: 10-250 |
| version-number | version number, range: 2-3                              |

**\[View]**
Interface view

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 10
sonic(config-if-10)# ip igmp
```

