Configuring PIM-SM on the router

Global configuration context for supporting PIM-SM

Before configuring specific PIM-SM settings, it is necessary to enable IP routing, IP multicast routing, an IP routing protocol, and PIM in the global configuration context. Also, if the router operates as an edge router for any end points (receivers) expected to join multicast groups, it is also necessary to enable IGMP on the VLANs supporting such receivers.

Configuring global context commands


[NOTE: ]

NOTE: PIM-SM operation requires an IP routing protocol enabled on the router. You can use RIP, OSPF, and/or static routing. The examples in this section use RIP. See Routing Basics.


Syntax:

[no] ip routing

Enables IP routing on the router.

The no form of the command disables IP routing. Note that before disabling IP routing, it is necessary to disable all other IP routing protocols on the router.

(Default: Disabled)

Syntax:

[no] ip multicast-routing

Enables or disables IP multicast routing on the router. IP routing must first be enabled. Note that router PIM must be disabled before disabling IP multicast routing.

(Default: Disabled)

Syntax:

[no] router [ ospf | rip ]

[no] ip route [ ip-addr/mask-len ] [ ip-addr | vlan | reject | blackhole ]

These commands are the options for the IP routing protocol required to support PIM operation. For more on these options, see Routing Basics

.

Syntax:

[no] router pim [[enable] | [disable]]

Puts the CLI into the PIM context level. IP routing must be enabled before enabling PIM.

The no router pim command deletes the PIM configuration. (Default: Disabled)

[enable]

Enables PIM globally.

[disable]

Disables PIM globally. Disabling PIM does not delete the PIM configuration.

Configuring for PIM support at the global level

Using the topology (Example PIM-SM domain with SPT active to support a host that has joined a multicast group), router "B" is directly connected to the DR for multicast group "X." In this case, suppose that you want to globally configure router "B" for PIM operation. On the global level, you would enable the following:

  • IP routing

  • IP multicast routing

  • An IP routing protocol (RIP, OSPF, or static routing; use RIP for this example)

PIM-SM domain with SPT active to support a host that has joined a multicast group

PIM-SM domain with SPT active to support a host that has joined a multicast group

Global configuration for supporting PIM-SM operation

HP Switch(config)# ip routing
HP Switch(config)# ip multicast-routing
HP Switch(config)# router rip
HP Switch(rip)# exit
HP Switch(config)# router pim
HP Switch(pim)# exit
HP Switch(config)#

Displaying the running configuration

Displaying the running configuration