The invention discloses a method and
system for implementing sub-network intercommunication, and relates to the field of communications. When a first
virtual machine of a tenant sends an IP message to a second
virtual machine, the IP message is sent to first VTEP (
Virtual Extensible LAN Tunneling End Point) equipment; the first VTEP equipment packages the IP message into a first VxLAN (
Virtual Extensible LAN) message and forwards the first VxLAN message to a VxLAN gateway; if a VxLAN MAC table comprises an
MAC address table item of the second
virtual machine, a VNI (VxLAN Network Identifier) number of the second virtual
machine is extracted from the VxLAN MAC table; and if the VNI numbers of the second virtual
machine and the first virtual
machine belong to the same tenant, the first VxLAN message is repackaged to generate a second VxLAN message and the second VxLAN message is forwarded to second VTEP equipment so as to send the IP message to the second virtual machine. According to the method and the
system which are disclosed by the invention, by constructing a tenant VxLAN set table, intercommunication of the same tenant in different VxLAN networks or three
layers of sub-networks can be implemented, and
network isolation between different tenants is kept.