Various examples of the present disclosure may provide a packet processing method. A control device may receive a packet from an access switch. If VM address information in the packet is not associated with a port on the access switch for receiving the packet, the control device may send an instruction to the access switch instructing the access switch to associate the VM address information with the port on the access switch for receiving the packet, so that the access switch associates the VM address information with the port on the access switch for receiving the packet. The VM address information may comprise: a VLAN ID, an IP address and an MAC address.