Configure IGMP on a VRF

You configure IGMP on a VRF instance the same way you configure IGMP for the Global Router, except that you must use VRF Router Configuration mode.

Procedure

  1. Enter VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    router vrf WORD<1-16>

  2. Enable SSM dynamic learning:

    ip igmp ssm dynamic-learning

  3. Configure the range group:

    ip igmp ssm group-range {A.B.C.D/X}

    The system displays the following message:.

    Warning: Changing the SSM range will cause all spb-multicast and spb-pim-gw enabled interfaces to be internally bounced. Do you wish to continue? (y/n) ? (y/n)?

    Enter y to continue.

  4. Enable the SSM map table for all static entries:

    ip igmp ssm-map all

  5. Create a static entry for a specific group:

    ip igmp ssm-map {A.B.C.D} {A.B.C.D} enable

  6. Enable the generation of IGMP traps:

    ip igmp generate-trap

  7. Enable the generation of IGMP log messages:

    ip igmp generate-log

  8. Configure the fast leave mode:

    ip igmp immediate-leave-mode {multiple-user|one-user}

Example

For the VRF Red context, configure a new IP multicast group address and create an SSM map table entry for the multicast group and the source at 192.32.99.151. Configure the administrative state to enable all the static SSM map table entries.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#router vrf red
Switch:1(router-vrf)#ip igmp ssm group-range 232.1.1.10/32

WARNING: Changing the SSM range will cause all spb-multicast and spb-pim-gw enabled interfaces to be internally bounced. Do you wish to continue? (y/n) ? (y/n)? y
Switch:1(router-vrf)#ip igmp ssm-map 232.1.1.10 192.32.99.151
Switch:1(router-vrf)#ip igmp ssm-map all

Variable definitions

Use the definitions in the following table to use the ip igmp command on a VRF.

Variable

Value

generate-log

Enables the generation of IGMP log messages. The default is disabled.

generate-trap

Enables the generation of IGMP traps. The default is disabled.

immediate-leave-mode {multiple-user|one-user}

  • multiple-user: Removes (from the group) the IGMP member who sent the leave message. The default is multiple-user.

  • one-user: Removes all group members on a fast leave enabled interface port after receiving the first leave message from a member.

ssm dynamic-learning

Enables dynamic learning from IGMPv3 reports. The default is enabled.

ssm group-range {A.B.C.D/X}

Changes the SSM range group to define the SSM range. The SSM range parameter extends the default SSM range of 232/8 to include an IP multicast address.

This parameter specifies an IP multicast address within the range of 224.0.0.0 and 239.255.255.255. The default is 232.0.0.0. The address mask is the IP address mask of the multicast group. The default is 255.0.0.0.

ssm-map <all | {A.B.C.D} {A.B.C.D} enable

Creates a static SSM channel table entry by specifying the group and source IP addresses. The IP address is an IP multicast address within the SSM range. The source IP address is an IP host address that sends traffic to the group.

Enables the administrative state for a specific entry (group). This variable does not affect the dynamically learned entries. This state determines whether the switch uses the static entry or saves it for future use. The default is enable for each entry.