Example: Manage IGMP configurations using Amazon VPC Transit Gateways - Amazon VPC
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Example: Manage IGMP configurations using Amazon VPC Transit Gateways

This example shows at least one host that uses the IGMP protocol for multicast traffic. Amazon automatically creates the multicast group when it receives an IGMP JOIN message from an instance, and then adds the instance as a member in this group. You can also statically add non-IGMP hosts as members to a group using the Amazon CLI. Any instances that are in subnets associated with the multicast domain can send traffic, and the group members receive the multicast traffic.

Use the following steps to complete the configuration:

  1. Create a VPC. For more information about creating VPCs, see Creating a VPC in the Amazon VPC User Guide.

  2. Create a subnet in the VPC. For more information about creating subnets, see Creating a subnet in your VPC in the Amazon VPC User Guide.

  3. Create a transit gateway configured for multicast traffic. For more information, see Create a transit gateway using Amazon VPC Transit Gateways.

  4. Create a VPC attachment. For more information, see Create a VPC attachment using Amazon VPC Transit Gateways.

  5. Create a multicast domain configured for IGMP support. For more information, see Create an IGMP multicast domain using Amazon VPC Transit Gateways.

    Use the following settings:

    • Enable IGMPv2 support.

    • Disable Static sources support.

  6. Create an association between subnets in the transit gateway VPC attachment and the multicast domain. For more information see Associating VPC attachments and subnets with a multicast domain using Amazon VPC Transit Gateways.

  7. The default IGMP version for EC2 is IGMPv3. You need to change the version for all IGMP group members. You can run the following command:

    sudo sysctl net.ipv4.conf.eth0.force_igmp_version=2
  8. Add the members that do not use the IGMP protocol to the multicast group. For more information, see Register members with a multicast group using Amazon VPC Transit Gateways.