A method, apparatus and system for connecting the layer2 network and the layer3 network are provided. The first virtual interface receives the data message; according to the virtual interface ID, the first virtual interface searches the layer2 and layer3 virtual interface binding map, and acquires the corresponding second virtual interface; the data messages are transmitted from the second virtual interface; wherein, when the first virtual interface is the layer2 virtual interface, the second virtual interface is the layer3 virtual interface, accordingly, the virtual interface ID is the layer2 virtual interface ID; when the first virtual interface is the layer3 virtual interface, the second virtual interface is the layer2 virtual interface, accordingly, the virtual interface ID is the layer3 virtual interface ID.
展开▼