Patent ID: 7986649

Claim:
A dynamic virtual network configuration method, comprising: by a serving edge device, in the process of a user handover from a current virtual network to a target virtual network, obtaining a target virtual network identifier and a corresponding interface identifier, using the target virtual network identifier and the corresponding interface identifier of the interface accessed by the user, to generate a Layer-2 Control (L2C) protocol packet, and sending out the L2C protocol packet; and by a communication proxy device that receives the L2C protocol packet, obtaining the target virtual network identifier and the corresponding interface identifier from the L2C protocol packet, and setting up a mapping relation between a target virtual network and an interface; wherein the process of setting up the mapping relation between the target virtual network and the interface comprises: by the communication proxy device, dynamically deleting a physical interface identifier corresponding to the interface identifier from a physical interface partition list corresponding to a current virtual network identifier; and adding the physical interface identifier to a physical interface partition list corresponding to the target virtual network identifier; or by the communication proxy device, dynamically deleting a virtual interface identifier corresponding to the interface identifier from a virtual interface partition list corresponding to a current virtual network identifier; and adding the physical interface to a physical interface partition corresponding to the target virtual network identifier.