IP address allocating method of virtual local network switch on

The invention relates to the method for allocating IP address in the virtual local area network (VLAN). The corresponding level of the IP address can be allocated according to the user's priority. The method includes following steps. The user management center sorts the IP address resources according to the priorities of the service level. The relation of one to one correspondences is existed between the priorities of the service level and the priorities of the IP address resources. Based on the priorities of the service level of the switch in user terminal selected at opening an account, oneIP address selected from the IP address resources with corresponding priority level is assigned to the user. The network switch in device is forwarding the user message data stream according to the IP address priority of the user terminal.