Configure PIM on a VLAN

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

Before you begin

  • You must enable PIM globally before you configure PIM on a VLAN.

  • The interface uses a valid IP address.

Procedure

  1. Enter VLAN Interface Configuration mode:

    enable

    configure terminal

    interface vlan <1–4059>

  2. Create a PIM interface on a VLAN:

    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>

  5. Verify the configuration:

    show ip pim interface vlan [<1-4059>]

Example

Configure the interval for join and prune messages, the time between hello messages, and then verify the configuration.

Switch:1(config-if)#ip pim join-prune-interval 60
Switch:1(config-if)#ip pim hello-interval 30
Switch:1>show ip pim interface vlan 10
========================================================================
                                  Vlan Ip Pim
========================================================================

VLAN-ID   PIM-ENABLE MODE    HELLOINT  JPINT   CBSRPREF      INTF TYPE
------------------------------------------------------------------------
10         enable    sparse  30        60      -1  (disabled) active