Configuring PIM-SM options in an interface

You can configure various PIM-SM options in an interface as described in the following steps.

Prerequisites
You must be in the interface configuration context, as indicated by the switch(config-if)# prompt, switch(config-if-vlan)# prompt, or switch(config-lag-if)# prompt.
Procedure
  1. Configure the frequency at which the router transmits PIM hello messages on the current interface using the following command.

    For IPv4 configurations:

    ip pim-sparse hello-interval <INTERVAL-VALUE>

    For example, the following command sets the V4 hello interval to 60 seconds on the 1/1/4 interface:
    switch(config)# interface 1/1/4
    switch(config-if)# ip pim-sparse hello-interval 60

    For IPv6 configurations:

    ipv6 pim6-sparse hello-interval <INTERVAL-VALUE>

    For example, the following command sets the V6 hello interval to 60 seconds on the 1/1/4 interface:
    switch(config)# interface 1/1/4
    switch(config-if)# ipv6 pim6-sparse hello-interval 60
  2. Change the maximum time before the router transmits the initial PIM hello message on the interface using the following command.

    For IPv4 configurations:

    ip pim-sparse hello-delay <DELAY-VALUE>

    For example, the following command sets the hello delay to 4 seconds on the VLAN40 interface:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ip pim-sparse hello-delay 4

    For IPv6 configurations:

    ipv6 pim6-sparse hello-delay <DELAY-VALUE>

    For example, the following command sets the hello delay to 4 seconds on the VLAN40 interface:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ipv6 pim6-sparse hello-delay 4
  3. Specify the priority value to use on the interface in the Designated Router (DR) election process using the following command.

    For IPv4 configurations:

    ip pim-sparse dr-priority <PRIORITY-VALUE>

    For example, the following command sets the DR priority to 4444 on the VLAN40 interface:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ip pim-sparse dr-priority 4444

    For IPv6 configurations:

    ipv6 pim6-sparse dr-priority <PRIORITY-VALUE>

    For example, the following command sets the DR priority to 4444 on the VLAN40 interface:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ipv6 pim6-sparse dr-priority 4444
  4. Enable the LAN prune delay option on the interface using the following command.

    For IPv4 configurations:

    ip pim-sparse lan-prune-delay

    For IPv6 configurations:

    ipv6 pim6-sparse lan-prune-delay

  5. Configure the value inserted into the Override Interval field of a LAN Prune Delay option on the interface using the following command.

    For IPv4 configurations:

    ip pim-sparse override-interval <INTERVAL-VALUE>

    For example, the following command sets the override interval value to 4000 ms on interface VLAN40:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ip pim-sparse override-interval 4000

    For IPv6 configurations:

    ipv6 pim6-sparse override-interval <INTERVAL-VALUE>

    For example, the following command sets the override interval value to 4000 ms on interface VLAN40:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ipv6 pim6-sparse override-interval 4000
  6. Configure the propagation delay value inserted into the LAN Prune Delay option on the interface using the following command.

    For IPv4 configurations:

    ip pim-sparse propagation-delay <DELAY-VALUE>

    For example, the following command sets the propagation delay value to 400 ms on interface VLAN40:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ip pim-sparse propagation-delay 400

    For IPv6 configurations:

    ipv6 pim6-sparse propagation-delay <DELAY-VALUE>

    For example, the following command sets the propagation delay value to 400 ms on interface VLAN40:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ipv6 pim6-sparse propagation-delay 400
  7. Configure the source IP address to be used in PIM packets transmitted from the interface using the following command.

    For IPv4 configurations:

    ip pim-sparse ip-addr {<IP-ADDR-VALUE> | any}

    For example, the following command specifies the IPv4 address 40.0.0.4:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ip pim-sparse ip-addr 40.0.0.4

    For IPv6 configurations:

    ipv6 pim6-sparse ipv6-addr {<IPv6-ADDR-VALUE> | any}

    For example, the following command specifies the IPv6 address 2001::02:
    switch(config)# interface vlan40
    switch(config-if-vlan)# ipv6 pim6-sparse ipv6-addr 2001::02