A method implemented by a computer system, the method comprising the steps of: receiving, from a first network virtualization device, NVD, first information about an internet group management protocol, IGMP, response of a first compute instance (622-A), the first information indicating that the first compute instance is to be added to a multicast group, wherein: the first compute instance is hosted on a host machine and belongs to a Layer 2 virtual network, the Layer 2 virtual network is hosted on a physical network and includes a plurality of compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of layer 2 virtual switches, the physical network includes the first NVD and the host machine, the first NVD hosts a first Layer 2 virtual network interface of the plurality of Layer 2 virtual network interfaces and a first Layer 2 virtual switch of the plurality of Layer 2 virtual switches, and the first Layer 2 virtual network interface and the first Layer 2 virtual switch are associated with the first compute instance; receiving, from a second NVD, second information about an IGMP response of a second compute instance (622-B), the second information indicating that the second compute instance is to be added to the multicast group, wherein the second NVD hosts a second Layer 2 virtual network interface of the plurality of Layer 2 virtual network interfaces and a second Layer 2 virtual switch of the plurality of Layer 2 virtual switches, and wherein the second Layer 2 virtual network interface and the second Layer 2 virtual switch are associated with the second compute instance of the plurality of compute instances, the method being characterized in that further comprises the steps of: generating, based on the first information and the second information, an IGMP table indicating that the first compute instance and the second compute instance are added to the multicast group; sending at least a first portion of the IGMP table to the first NVD; and sending at least a second portion of the IGMP table to the second NVD. receiving, from a first network virtualization device, NVD, first information about an internet group management protocol, IGMP, response of a first compute instance (622-A), the first information indicating that the first compute instance is to be added to a multicast group, wherein: the first compute instance is hosted on a host machine and belongs to a Layer 2 virtual network, the Layer 2 virtual network is hosted on a physical network and includes a plurality of compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of layer 2 virtual switches, the physical network includes the first NVD and the host machine, the first NVD hosts a first Layer 2 virtual network interface of the plurality of Layer 2 virtual network interfaces and a first Layer 2 virtual switch of the plurality of Layer 2 virtual switches, and the first Layer 2 virtual network interface and the first Layer 2 virtual switch are associated with the first compute instance; the first compute instance is hosted on a host machine and belongs to a Layer 2 virtual network, the Layer 2 virtual network is hosted on a physical network and includes a plurality of compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of layer 2 virtual switches, the physical network includes the first NVD and the host machine, the first NVD hosts a first Layer 2 virtual network interface of the plurality of Layer 2 virtual network interfaces and a first Layer 2 virtual switch of the plurality of Layer 2 virtual switches, and the first Layer 2 virtual network interface and the first Layer 2 virtual switch are associated with the first compute instance; receiving, from a second NVD, second information about an IGMP response of a second compute instance (622-B), the second information indicating that the second compute instance is to be added to the multicast group, wherein the second NVD hosts a second Layer 2 virtual network interface of the plurality of Layer 2 virtual network interfaces and a second Layer 2 virtual switch of the plurality of Layer 2 virtual switches, and wherein the second Layer 2 virtual network interface and the second Layer 2 virtual switch are associated with the second compute instance of the plurality of compute instances, the method being characterized in that further comprises the steps of: generating, based on the first information and the second information, an IGMP table indicating that the first compute instance and the second compute instance are added to the multicast group; sending at least a first portion of the IGMP table to the first NVD; and sending at least a second portion of the IGMP table to the second NVD. generating, based on the first information and the second information, an IGMP table indicating that the first compute instance and the second compute instance are added to the multicast group; sending at least a first portion of the IGMP table to the first NVD; and sending at least a second portion of the IGMP table to the second NVD.