主权项 |
1. A method comprising:
receiving, by a first virtual switch, a packet including a first destination address for a virtual default gateway from a first virtual machine (VM); obtaining, by the first virtual switch, a second destination address for a second VM based on information in the packet; replacing, by the first virtual switch, the first destination address for the virtual default gateway in the packet with the second destination address for the second VM; encapsulating, by the first virtual switch, the packet into a tunneled packet by appending the packet with a tunnel header that is addressed for a second virtual switch, wherein the packet is an inner packet of the encapsulated packet; and forwarding, by the first virtual switch, the inner packet of the encapsulated packet to the second VM,wherein the first virtual switch acts as the virtual default gateway based on the replacement of the first destination address for the virtual default gateway with the second destination address for the second VM, and the first VM and the second VM are part of a distributed overlay virtual Ethernet (DOVE) network. |