主权项 |
1. A multicast processing method comprising:
receiving, by a Virtual eXtensible Local Area Network (VXLAN) tunnel end point (VTEP), configuration information sent by a management layer, wherein the configuration information comprises a virtual machine (VM) tenant identifier, a mapping relationship between a VM multicast address and a multicast address on a layer 3 network, and a mapping relationship between a VM multicast source address and a layer 3 network multicast source address; receiving, by the VTEP, a multicast packet sent by a VM managed by the VTEP; and when performing VXLAN encapsulation on the multicast packet after determining that the VM matches the VM tenant identifier, encapsulating, according to the mapping relationship between the VM multicast address and the multicast address on the layer 3 network, a destination address of the multicast packet into the multicast address on the layer 3 network, and encapsulating, according to the mapping relationship between the VM multicast source address and the layer 3 network multicast source address, a VXLAN source address of the multicast packet into the layer 3 network multicast source address; and sending an encapsulated multicast packet to the layer 3 network. |