Method for realizing particular virtual local area network and device

The invention discloses a method for realizing a particular virtual local area network, which comprises the steps of: setting the port type of the particular virtual local area network (PVLAN) of each port in an inlet VALN table and an outlet VLAN table of the built virtual local area network (PVLAN); and comparing the PVLAN port type of the inlet in the inlet VALN table with the PVLAN port type of the outlet in the outlet VALN table when two-stage date enters into switch equipment to be transferred; and transmitting the date when the transmission requirement is met. The invention further discloses a device for realizing the particular virtual local area network. The technical scheme of the invention can conveniently realize the PVLAN function and easily be dilated, and can save the resource overhead of hardware caused by finding complex port segregation tables.