VLAN context commands for configuring PIM-SM

PIM-SM must be configured on at least one VLAN in the router before it can be configured as a C-BSR or a C-RP.

Enabling or disabling IGMP in a VLAN

IGMP must be enabled in VLANs on edge routers where multicast receivers (end points) are connected and will be requesting to join multicast groups.

Syntax:

[no] ip igmp

[no] vlan [vid] ip igmp

Enables or disables IGMP operation in the current VLAN. Configuring IGMP on the router is required in VLANs supporting edge router operation. See Configuring PIM-DM on a routing switch at the global level.

Enabling or disabling PIM-SM per-VLAN

Syntax:

ip pim-sparse [ ip-addr [any | ip-addr] ]
vlan [vid] ip pim-sparse [ ip-addr [any | ip-addr] ]
no [vlan [vid]] ip pim-sparse

This command enables or disables PIM-SM in the designated VLAN interface and sets the source (and designated router) IP address for PIM-SM packets sent from the interface. Executing the command without specifying an IP address option causes the router to default to the any option, below. (Default: PIM-SM disabled)

ip-addr any

Enables the router to dynamically determine from the VLAN's current IP configuration the source IP address to use for PIM-SM packets sent from the VLAN interface.


[NOTE: ]

NOTE: Using this command after a source IP address has already been set does not change that setting.


ip-addr [ip-addr]

Specifies one of the VLAN's currently existing IP addresses for use as the source IP address for PIM-SM packets sent from the VLAN interface.

Note that ip-addr must first be statically configured on the VLAN.


[NOTE: ]

NOTE: To change an existing source IP address setting, you must use this command option.


Changing the interval for PIM-SM neighbor notification

Syntax:

ip pim-sparse hello-interval [5-300]
vlan vid ip pim-sparse hello-interval [5-300]

Changes the frequency at which the router transmits PIM hello messages on the current VLAN. The router uses hello packets to inform neighbor routers of its presence.

The router also uses this setting to compute the hello hold time, which is included in hello packets sent to neighbor routers. hello hold time tells neighbor routers how long to wait for the next hello packet from the router. If another packet does not arrive within that time, the router removes the neighbor adjacency on that VLAN from the routing table, which removes any flows running on that interface.

Shortening the hello interval reduces the hello hold time. This changes how quickly other routers will stop sending traffic to the router if they do not receive a new hello packet when expected. For example, if multiple routers are connected to the same VLAN and the router requests multicast traffic, all routers on the VLAN receive that traffic. (Those that have pruned the traffic will drop it when they receive it.) If the upstream router loses contact with the router receiving the multicast traffic (that is, fails to receive a hello packet when expected), the shorter hello interval causes it to stop transmitting multicast traffic onto the VLAN sooner, resulting in less unnecessary bandwidth use.

(Default: 30 seconds)

Changing the randomized delay setting for PIM-SM neighbor notification

Syntax:

ip pim-sparse hello-delay [0-5]
vlan [vid] ip pim-sparse hello-delay [0-5]

Changes the maximum time in seconds before the router actually transmits the initial PIM hello message on the current VLAN. In cases where a new VLAN activates with connections to multiple routers, if all of the connected routers sent hello packets at the same time, the receiving router could become momentarily overloaded. This value randomizes the transmission delay to a time between 0 and the hello delay setting. Using 0 means no delay.

After the router sends the initial hello packet to a newly detected VLAN interface, it sends subsequent hello packets according to the current Hello Interval setting.

Not used with the no form of the ip pim command.

(Default: 5 seconds)

Enabling or disabling lan prune delay

Syntax:

[no] ip pim-sparse lan-prune-delay
[no] vlan [vid] ip pim-sparse lan-prune-delay

Enables the LAN prune delay option on the current VLAN. With lan-prune-delay enabled, the router informs downstream neighbors how long it will wait before pruning a flow after receiving a prune request.

Other downstream routers on the same VLAN must send a join to override the prune before the lan-prune-delay time if they want the flow to continue. This prompts any downstream neighbors with multicast receivers continuing to belong to the flow to reply with a join. If no joins are received after the lan-prune-delay period, the router prunes the flow.

The propagation-delay and override-interval settings (below) determine the lan-prune-delay setting.

Uses the no form of the command to disable the LAN prune delayoption.

(Default: Enabled)

Changing the Lan-prune-delay interval

Syntax:

ip pim-sparse propagation-delay [250-2000]
vlan [vid] ip pim-sparse propagation-delay [250-2000]

ip pim-sparse override-interval [500-6000]
vlan [vid] ip pim-sparse override-interval [500-6000]

A router sharing a VLAN with other multicast routers uses these two values to compute the lan-prune-delay setting (above) for how long to wait for a PIM-SM join after receiving a prune packet from downstream for a particular multicast group.

Multiple routers sharing VLAN

A network may have multiple routers sharing VLAN "X." When an upstream router is forwarding traffic from multicast group "X" to VLAN "Y," if one of the routers on VLAN "Y" does not want this traffic, it issues a prune response to the upstream neighbor. The upstream neighbor then goes into a prune pending state for group "X" on VLAN "Y." (During this period, the upstream neighbor continues to forward the traffic.) During the pending period, another router on VLAN "Y" can send a group "X" join to the upstream neighbor. If this happens, the upstream neighbor drops the prune pending state and continues forwarding the traffic. But if no routers on the VLAN send a join, the upstream router prunes group "X" from VLAN "Y" when the lan-prune-delay timer expires.

(Defaults: propagation-delay = 500 milliseconds; override-interval = 2500 milliseconds)

Neighbor timeout

Syntax:

ip pim-sparse nbr-timeout [60-65536]

Changing the DR priority

Syntax:

ip pim-sparse dr-priority [0-4294967295]

This command changes the router priority for the DR election process in the current VLAN. A numerically higher value means a higher priority. If the highest priority is shared by multiple routers in the same VLAN, the router with the highest IP address is selected as the DR.

A 0 (zero) value disables DR operation for the router on the current VLAN.

(Range: 0 - 2147483647; Default: 1)

Configuring PIM-SM support in a VLAN context

PIM-SM support must be configured in each VLAN where you want PIM-SM forwarding of multicast traffic. This illustrates the following per-VLAN configuration steps:

  • Enabling PIM-SM on VLAN 120 and allowing the default any option to select a source IP address for PIM-SM packets forwarded from this VLAN. (Because the VLAN in this example is configured with only one IP address—120-10.10.2—it is this address that will be used for the source.)

  • Increasing the DR priority on this VLAN from the default 1 to 100.

  • Leaving the other per-VLAN PIM-SM fields in their default settings.

Example of Enabling PIM-SM in a VLAN

Example of Enabling PIM-SM in a VLAN