The invention discloses a method for achieving the
address resolution protocol proxy through a two-layer virtual
local area network and a
local area network system. The method comprises the steps that an IP stack is configured in drive of the two-layer virtual
local area network; the
address resolution protocol proxy function is configured on the virtual local
area network; a message is received, and an
address resolution protocol request is sent to a corresponding virtual local
area network according to a matched virtual local
area network tag; whether a computer requested by the
address resolution protocol and the two-layer virtual local area network are the same
network segment or not is judged, if not, the request is ignored, and if yes, the two-layer virtual local area network feeds
media access control of the two-layer virtual local area network back to the computer; the two-layer virtual local area network broadcasts the
address resolution protocol request; the two-layer virtual local area network receives the response to the
address resolution protocol; routing information is written in a forwarding table. According to the method, user configuration is simplified, the virtual local area network with the routing function is built by configuration of the IP and the address resolution protocol proxy, the two-layer or three-layer virtual local area network does not need to be designed much, the internal
processing procedure is optimized, and the
processing time of the
system is saved.