PIM Commands

Use these commands to configure Protocol Independent Multicast - Dense Mode (PIM-DM) and Protocol Independent Multicast - Sparse Mode (PIM-SM).

PIM-DM and PIM-SM are multicast routing protocols that provide scalable inter-domain multicast routing across the Internet, independent of the mechanisms provided by any particular unicast routing protocol. Only one PIM mode can be operational at a time.

ip pim dense

M4250

M4350

This command administratively enables the PIM Dense mode across the router.

Default disabled
Format ip pim dense
Mode Global Config

Command example:

CODE
(NETGEAR) (Config) #ip pim dense

no ip pim dense

This command administratively disables the PIM Dense mode across the router.

Format no ip pim dense
Mode Global Config

ip pim sparse

M4250

M4350

This command administratively enables the PIM Sparse mode across the router.

Default disabled
Format ip pim sparse
Mode Global Config

Command example:

CODE
(NETGEAR) (Config) #ip pim sparse

no ip pim sparse

This command administratively disables the PIM Sparse mode across the router.

Format no ip pim sparse
Mode Global Config

ip pim

M4250

M4350

Use this command to administratively enable PIM on the specified interface.

Default disabled
Format ip pim
Mode Interface Config

Command example:

CODE
(NETGEAR) (Interface 1/0/1) #ip pim

no ip pim

Use this command to disable PIM on the specified interface.

Format no ip pim
Mode Interface Config

ip pim hello-interval

M4250

M4350

This command configures the transmission frequency of PIM hello messages on the specified interface. The seconds argument is a value in a range of 0 to 18000 seconds.

Default 30
Format ip pim hello-interval seconds
Mode Interface Config

Command example:

CODE
(NETGEAR) (Interface 1/0/1) #ip pim hello-interval 50

no ip pim hello-interval

This command resets the transmission frequency of hello messages between PIM enabled neighbors to the default value.

Format no ip pim hello-interval
Mode Interface Config

ip pim bsr-border

M4250

M4350

Use this command to prevent bootstrap router (BSR) messages from being sent or received on the specified interface.

Note: This command takes effect only when Sparse mode is enabled in the Global mode.
Default disabled
Format ip pim bsr-border
Mode Interface Config

Command example:

CODE
(NETGEAR) (Interface 1/0/1) #ip pim bsr-border

no ip pim bsr-border

Use this command to disable the specified interface from being the BSR border.

Format no ip pim bsr-border
Mode Interface Config

ip pim bsr-candidate

M4250

M4350

This command is used to configure the router to announce its candidacy as a bootstrap router (BSR).

The argument for an interface corresponds to a physical routing interface or VLAN routing interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command description and format.

The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

Note: This command takes effect only when PIM-SM is configured as the PIM mode.
Default Disabled
Format ip pim bsr-candidate interface {unit/slot/port | vlan vlan-id} hash-mask-length [bsr-priority] [interval interval]
Mode Global Config
Parameters Description
slot/port or unit/slot/port or vlan-id Interface or VLAN number on this router from which the BSR address is derived, to make it a candidate. This interface or VLAN must be enabled with PIM.
hash-mask-length Length of a mask (32 bits maximum) that is to be “ANDed” with the group address before the hash function is called. All groups with the same seed hash correspond to the same RP. For example, if this value is 24, only the first 24 bits of the group addresses matter. This allows you to get one RP for multiple groups.
bsr-priority [Optional] Priority of the candidate BSR. The range is an integer from 0 to 255. The BSR with the larger priority is preferred. If the priority values are the same, the router with the larger IP address is the BSR. The default value is 0.
interval [Optional] Indicates the BSR candidate advertisement interval. The range is from 1 to 16383 seconds. The default value is 60 seconds.

Command example:

The following shows examples of the command.

CODE
(NETGEAR) (Config) #ip pim bsr-candidate interface 1/0/1 32 5
(NETGEAR) (Config) #ip pim bsr-candidate interface 1/0/1 32 5 interval 100

no ip pim bsr-candidate

Use this command to remove the configured PIM Candidate BSR router.

Format no ip pim bsr-candidate interface {unit/slot/port | vlan vlan-id}
Mode Global Config

ip pim dr-priority

M4250

M4350

Use this command to set the priority value for which a router is elected as the designated router (DR). The priority argument is a value in the range of 0–2147483647.

Note: This command takes effect only when Sparse mode is enabled in the Global mode.
Default 1
Format ip pim dr-priority priority
Mode Interface Config

Command example:

CODE
(NETGEAR) (Interface 1/0/1) #ip pim dr-priority 10

no ip pim dr-priority

Use this command to return the DR Priority on the specified interface to its default value.

Format no ip pim dr-priority
Mode Interface Config

ip pim join-prune-interval

M4250

M4350

Use this command to configure the frequency of PIM Join/Prune messages on a specified interface. The join/prune interval is specified in seconds. The seconds argument can be configured as a value from 0 to 18000 seconds.

Note: This command takes effect only when PIM-SM is configured as the PIM mode.
Default 60
Format ip pim join-prune-interval seconds
Mode Interface Config

Command example:

CODE
(NETGEAR) (Interface 1/0/1) #ip pim join-prune-interval 90

no ip pim join-prune-interval

Use this command to set the join/prune interval on the specified interface to the default value.

Format no ip pim join-prune-interval
Mode Interface Config

ip pim rp-address

M4250

M4350

This command defines the address of a PIM Rendezvous point (RP) for a specific multicast group range.

Note: This command takes effect only when PIM-SM is configured as the PIM mode.
Default 0
Format ip pim rp-address rp-address {group-address group-mask | prefix-list list-name} [override]
Mode Global Config
Parameter Description
rp-address The IP address of the RP.
group-address The group address supported by the RP.
group-mask The group mask for the group address.
list-name The name of a list that contains group ranges for the RP.
override [Optional] Indicates that if there is a conflict, the RP configured with this command prevails over the RP learned by BSR.

Command example:

CODE
(NETGEAR) (Config) #ip pim rp-address 192.168.10.1
   224.1.2.0 255.255.255.0

no ip pim rp-address

Use this command to remove the address of the configured PIM Rendezvous point (RP) for the specified multicast group range.

Format no ip pim rp-address rp-address {group-address group-mask | prefix-list list-name}
Mode Global Config

ip pim rp-candidate

M4250

M4350

Use this command to configure the router to advertise itself as a PIM candidate rendezvous point (RP) to the bootstrap router (BSR) for a specific multicast group range.

The interface corresponds to a physical routing interface or VLAN routing interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

Note: This command takes effect only when PIM-SM is configured as the PIM mode.
Default Disabled
Format ip pim rp-candidate interface {unit/slot/port | vlan vlan-id} group-address group-mask [interval interval] [priority value]
Mode Global Config
Parameter Description
slot/port or unit/slot/port or vlan-id The interface or the VLAN ID is advertised as a candidate RP address. This interface or VLAN must be enabled with PIM.
group-address The multicast group address that is advertised in association with the RP address.
group-mask The multicast group prefix that is advertised in association with the RP address.
interval [Optional] Indicates the RP candidate advertisement interval. The range is from 1 to 16383 seconds. The default value is 60 seconds.
value [Optional] Indicates the RP candidate advertisement priority value. The range is from 0 to 255.

Command example:

The following shows examples of the command.

CODE
(NETGEAR) (Config) #ip pim rp-candidate interface 1/0/1 224.1.2.0 255.255.255.0
(NETGEAR) (Config) #ip pim rp-candidate interface 1/0/1 224.1.2.0 255.255.255.0 interval
200

no ip pim rp-candidate

Use this command to remove the configured PIM candidate Rendezvous point (RP) configuration for a specific multicast group range.

Format no ip pim rp-candidate interface {unit/slot/port | vlan vlan-id} group-address group-mask [interval] [priority]
Mode Global Config

ip pim ssm

M4250

M4350

Use this command to define the Source Specific Multicast (SSM) range of IP multicast addresses on the router.

Note: This command takes effect only when PIM-SM is configured as the PIM mode.
Default disabled
Format ip pim ssm {default | group-address group-mask}
Mode Global Config
Parameter Description
default Defines the SSM range access list to 232/8.

Command example:

CODE
(NETGEAR) (Config) #ip pim ssm default
(NETGEAR) (Config) #ip pim ssm 232.1.2.0 255.255.255.0

no ip pim ssm

Use this command to remove the Source Specific Multicast (SSM) range of IP multicast addresses on the router.

Format no ip pim ssm {default | group-address group-mask}
Mode Global Config

ip pim-trapflags

M4250

M4350

This command enables the PIM trap mode for both Sparse Mode (SM) and Dense Mode (DM).

Default disabled
Format ip pim-trapflags
Mode Global Config

no ip pim-trapflags

This command sets the PIM trap mode to the default.

Format no ip pim-trapflags
Mode Global Config

show ip mfc

M4250

M4350

This command displays multicast route entries in the multicast forwarding (MFC) database.

Format show ip mfc
Modes

Privileged EXEC

User EXEC

Term Definition
MFC IPv4 Mode Indicates whether IPv4 multicast routing is operational.
MFC IPv6 Mode Indicates whether IPv6 Multicast routing is operational.
MFC Entry Count The number of entries present in MFC.
Current multicast IPv4 Protocol The current operating IPv4 multicast routing protocol.
Current multicast IPv6 Protocol The current operating multicast IPv6 routing protocol.
Total Software Forwarded packets The total number of multicast packets forwarded in software.
Source Address The source address of the multicast route entry.
Group Address The group address of the multicast route entry.
Packets Forwarded in Software for this entry The number of multicast packets that are forwarded in software for a specific multicast route entry.
Protocol The multicast routing protocol that added a specific entry.
Expiry Time (secs) The expiration time in seconds for a specific multicast route entry.
Up Time (secs) The up time in seconds for a specific multicast routing entry.
Incoming interface The incoming interface for a specific multicast route entry.
Outgoing interface list The outgoing interface list for a specific multicast route entry.

Command example:

CODE
(NETGEAR) #show ip mfc

MFC IPv4 Mode.................................. Enabled
MFC IPv6 Mode.................................. Disabled
MFC Entry Count ............................... 1
Current multicast IPv4 protocol................ PIMSM
Current multicast IPv6 protocol................ No protocol enabled.
Total software forwarded packets .............. 0
Source address: 192.168.10.5
Group address: 225.1.1.1
Packets forwarded in software for this entry: 0            Protocol: PIM-SM
Expiry Time (secs): 206       Up Time (secs): 4
Incoming interface: 1/0/10    Outgoing interface list: None

show ip pim

M4250

M4350

This command displays the system-wide information for PIM-DM or PIM-SM.

Format show ip pim
Modes

Privileged EXEC

User EXEC

Note: If the PIM mode is PIM-DM (dense), some of the fields in the following table do not display in the command output because they are applicable only to PIM-SM.
Term Definition
PIM Mode Indicates the configured mode of the PIM protocol as dense (PIM-DM) or sparse (PIM-SM).
Interface The interface.
Interface Mode Indicates whether PIM is enabled or disabled on this interface.
Operational Status The current state of PIM on this interface: Operational or Non-Operational.

The following example shows PIM Mode - Dense:

CODE
(NETGEAR) #show ip pim

PIM Mode Dense

Interface   Interface-Mode    Operational-Status
---------   --------------    ------------------
1/0/1       Enabled           Operational
1/0/3       Disabled          Non-Operational

Command example:

The following example shows PIM Mode - Sparse:

CODE
(NETGEAR) #show ip pim

PIM Mode Sparse

Interface   Interface-Mode    Operational-Status
---------   --------------    ------------------
1/0/1       Enabled           Operational
1/0/3       Disabled          Non-Operational

Command example:

The following example shows that PIM is not configured:

CODE
(NETGEAR) #show ip pim

PIM Mode None

None of the routing interfaces are enabled for PIM.

show ip pim ssm

M4250

M4350

This command displays the configured source specific IP multicast addresses.

Format show ip pim ssm
Modes

Privileged EXEC

User EXEC

Term Definition
Group Address The IP multicast address of the SSM group.
Prefix Length The network prefix length.

Command example:

CODE
(NETGEAR) #show ip pim ssm
Group Address/Prefix Length
----------------------------
232.0.0.0/8

Command example:

If no SSM group range is configured, the command displays the following message:

CODE
No SSM address range is configured.

show ip pim interface

M4250

M4350

This command displays the PIM interface status parameters.

The interface corresponds to a physical routing interface or VLAN routing interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

If no interface is specified, the command displays the status parameters of all PIM-enabled interfaces.

Format show ip pim interface [unit/slot/port | vlan vlan-id]
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface number.
Mode Indicates the active PIM mode enabled on the interface is dense or sparse.
Hello Interval The frequency at which PIM hello messages are transmitted on this interface. By default, the value is 30 seconds.
Join Prune Interval The join/prune interval value for the PIM router. The interval is in seconds.
DR Priority The priority of the Designated Router configured on the interface. This field is not applicable if the interface mode is Dense.
BSR Border Identifies whether this interface is configured as a bootstrap router border interface.
Neighbor Count The number of PIM neighbors learned on this interface. This is a dynamic value and is shown only when a PIM interface is operational.
Designated Router The IP address of the elected Designated Router for this interface. This is a dynamic value and will only be shown when a PIM interface is operational. This field is not applicable if the interface mode is Dense.

Command example:

CODE
(NETGEAR) #show ip pim interface

Interface.........................................1/0/1
  Mode............................................Sparse
  Hello Interval (secs)...........................30
  Join Prune Interval (secs)......................60
  DR Priority.....................................1
  BSR Border......................................Disabled
  Neighbor Count..................................1
  Designated Router...............................192.168.10.1

Interface.........................................1/0/2
  Mode............................................Sparse
  Hello Interval (secs)...........................30
  Join Prune Interval (secs)......................60
  DR Priority.....................................1
  BSR Border......................................Disabled
  Neighbor Count..................................1
  Designated Router...............................192.168.10.1

Command example:

If none of the interfaces are enabled for PIM, the following message is displayed:

CODE
None of the routing interfaces are enabled for PIM.

show ip pim neighbor

M4250

M4350

This command displays PIM neighbors discovered by PIMv2 Hello messages.

The interface corresponds to a physical routing interface or VLAN routing interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

If the interface number is not specified, the command displays the status parameters of all PIM-enabled interfaces.

Format show ip pim neighbor [unit/slot/port | vlan vlan-id]
Modes

Privileged EXEC

User EXEC

Term Definition
Neighbor Address The IP address of the PIM neighbor on an interface.
Interface The interface number.
Up Time The time since this neighbor has become active on this interface.
Expiry Time Time remaining for the neighbor to expire.
DR Priority

The DR Priority configured on this Interface (PIM-SM only).

Note: DR Priority is applicable only when sparse-mode configured routers are neighbors. Otherwise, NA is displayed in this field.

Command example:

CODE
(NETGEAR) #show ip pim neighbor 1/0/1

Neighbor Addr   Interface Uptime      Expiry Time DR
                          (hh:mm:ss) (hh:mm:ss)   Priority
--------------- --------- ----------- ----------- --------
192.168.10.2    1/0/1     00:02:55     00:01:15   NA

Command example:

CODE
(NETGEAR) #show ip pim neighbor

Neighbor Addr   Interface  Uptime      Expiry Time DR
                           (hh:mm:ss) (hh:mm:ss)   Priority
--------------- ---------  ----------- ----------- --------
192.168.10.2    1/0/1      00:02:55     00:01:15   1
192.168.20.2    1/0/2      00:03:50     00:02:10   1

Command example:

If no neighbors were learned on any of the interfaces, the following message is displayed:

CODE
No neighbors exist on the router.

show ip pim bsr-router

M4250

M4350

This command displays the bootstrap router (BSR) information.

Format show ip pim bsr-router {candidate | elected}
Mode

Privileged EXEC

User EXEC

Parameter Definition
BSR Address IP address of the BSR.
BSR Priority Priority as configured in the ip pim bsr-candidate command.
BSR Hash Mask Length Length of a mask (maximum 32 bits) that is to be ANDed with the group address before the hash function is called. This value is configured in the ip pim bsr-candidate command.
C-BSR Advertisement Interval Indicates the configured C-BSR Advertisement interval with which the router, acting as a C-BSR, will periodically send the C-BSR advertisement messages.
Next Bootstrap Message Time (in hours, minutes, and seconds) in which the next bootstrap message is due from this BSR.

Command example:

CODE
(NETGEAR) #show ip pim bsr-router elected

BSR Address................................... 192.168.10.1
  BSR Priority................................ 0
  BSR Hash Mask Length........................ 30
  Next Bootstrap message (hh:mm:ss)........... 00:00:24

Command example:

CODE
(NETGEAR) #show ip pim bsr-router candidate

BSR Address................................... 192.168.10.1
  BSR Priority................................ 0
  BSR Hash Mask Length........................ 30
  C-BSR Advertisement Interval (secs)......... 60
  Next Bootstrap message (hh:mm:ss)........... NA

Command example:

If no configured or elected BSRs exist on the router, the following message is displayed:

CODE
No BSR's exist/learned on this router.

show ip pim rp-hash

M4250

M4350

This command displays the rendezvous point (RP) selected for the specified group address.

Format show ip pim rp-hash group-address
Modes

Privileged EXEC

User EXEC

Term Definition
RP Address The IP address of the RP for the group specified.
Type Indicates the mechanism (BSR or static) by which the RP was selected.

Command example:

CODE
(NETGEAR) #show ip pim rp-hash 224.1.2.0

RP Address 192.168.10.1
   Type Static

Command example:

If no RP Group mapping exists on the router, the following message is displayed:

CODE
No RP-Group mappings exist/learned on this router.

show ip pim rp mapping

M4250

M4350

Use this command to display the mapping for the PIM group to the active Rendezvous points (RP) of which the router is aware (either configured or learned from the bootstrap router (BSR)). Use the optional parameters to limit the display to a specific RP address (rp-address) or to view group-to-candidate RP (candidate) or group to static RP mapping information (static).

Format show ip pim rp mapping [rp-address | candidate | static]
Modes

Privileged EXEC

User EXEC

Term Definition
RP Address The IP address of the RP for the group specified.
Group Address The IP address of the multicast group.
Group Mask The subnet mask associated with the group.
Origin Indicates the mechanism (BSR or static) by which the RP was selected.
C-RP Advertisement Interval Indicates the configured C-RP Advertisement interval with which the router acting as a Candidate RP will periodically send the C-RP advertisement messages to the elected BSR.

Command example:

CODE
(NETGEAR) #show ip pim rp mapping 192.168.10.1
RP Address        192.168.10.1
   Group Address  224.1.2.1
   Group Mask     255.255.255.0
   Origin         Static

Command example:

CODE
(NETGEAR) #show ip pim rp mapping

RP Address        192.168.10.1
   Group Address  224.1.2.1
   Group Mask     255.255.255.0
   Origin         Static

RP Address        192.168.20.1
   Group Address  229.2.0.0
   Group Mask     255.255.0.0
   Origin         Static

Command example:

CODE
(NETGEAR) # show ip pim rp mapping candidate

RP Address.................................... 192.168.10.1
   Group Address.............................. 224.1.2.1
   Group Mask................................. 255.255.0.0
   Origin..................................... BSR
   C-RP Advertisement Interval (secs)......... 60
   Next Candidate RP Advertisement (hh:mm:ss). 00:00:15

Command example:

If no RP Group mapping exists on the router, the following message is displayed:

CODE
No RP-Group mappings exist on this router.

show ip pim statistics

M4250

M4350

This command displays statistics for the received PIM control packets per interface. This command displays statistics only if PIM sparse mode is enabled.

The interface corresponds to a physical routing interface or VLAN routing interface. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.

The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

Format show ip pim statistics [unit/slot/port | vlan vlan-id]
Modes

Privileged EXEC

User EXEC

Term Definition
Stat
  • Rx packets received.
  • Tx packets transmitted.
Interface The PIM-enabled routing interface.
Hello The number of PIM Hello messages.
Register The number of PIM Register messages.
Reg-Stop The number of PIM Register-stop messages.
Join/Pru The number of PIM Join/Prune messages.
BSR The number of PIM Boot Strap messages.
Assert The number of PIM Assert messages.
CRP The number of PIM Candidate RP Advertisement messages.

Command example:

CODE
(NETGEAR) #show ip pim statistics
=====================================================================
Interface  Stat   Hello Register Reg-Stop Join/Pru  BSR  Assert  CRP
=====================================================================
Vl10        Rx       0        0        0        0     0     0     0
            Tx       2        0        0        0     0     0     0

     Invalid Packets Received - 0
---------------------------------------------------------------------
Vl20        Rx       0        0        0        5     0     0     0
            Tx       8        7        0        0     0     0     0

     Invalid Packets Received - 0
---------------------------------------------------------------------
1/0/5       Rx       0        0        6        5     0     0     0
            Tx       10       9        0        0     0     0     0

     Invalid Packets Received - 0
---------------------------------------------------------------------

Command example:

CODE
(NETGEAR) #show ip pim statistics vlan 10
=====================================================================
Interface  Stat   Hello Register Reg-Stop Join/Pru  BSR  Assert  CRP
=====================================================================
Vl10        Rx       0        0        0        0     0     0     0
            Tx       2        0        0        0     0     0     0

     Invalid Packets Received - 0
---------------------------------------------------------------------

Command example:

CODE
(NETGEAR) #show ip pim statistics 1/0/5
=====================================================================
Interface  Stat   Hello Register Reg-Stop Join/Pru  BSR  Assert  CRP
=====================================================================
1/0/5       Rx       0        0        6        5     0     0     0
            Tx       10       9        0        0     0     0     0

     Invalid Packets Received - 0