Patent ID: 8649292

Claim:
A virtual network configuration method, comprising: obtaining, by a serving edge device, a port corresponding to a user from an authentication process of the user; after completing the authentication process for the user, obtaining, by a serving edge device, a user profile of the user from an authentication result, wherein the user profile includes a target virtual local area network (VLAN) identifier (VID), and wherein the serving edge device is configured to process Open Systems Interconnect (OSI) layer 3 packets; after completing the authentication process for the user, setting up, by the serving edge device, a mapping relation between the port and the target VID; after completing the authentication process for the user, sending, by the serving edge device, the mapping relation to an Access Node through a Layer-2 Control (L2C) protocol packet, wherein the Access Node is positioned between the serving edge device and a residential gateway; and obtaining, by the Access Node, the mapping relation between the target VID and the port by parsing the L2C protocol packet; and recording, by the Access Node, the mapping relation, wherein the process of setting up the mapping between the target VID and the port comprises: deleting, by the Access Node, a physical port from a first physical port partition list corresponding to a current VID; and adding the physical port to a second physical port partition list corresponding to the target VID, and wherein the first physical port partition list and the second physical port partition list are divided according to different Internet service providers.