Configuring PIM on a port

Configure PIM for each interface to enable the interface to perform multicasting operations.

Before you begin

  • You must enable PIM globally before you configure it on an interface.

  • The interface uses a valid IP address.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Create a PIM interface on a port:

    ip pim enable

    This command creates an active interface, by default.

  3. Configure the interval for join and prune messages:

    ip pim join-prune-interval <1–18724>

  4. Configure the time between hello messages:

    ip pim hello-interval <0–18724>

Example

Configure the interval for join and prune messages and the time between hello messages:

Switch(config-if)#ip pim join-prune-interval 60
Switch(config-if)#ip pim hello-interval 30