The present invention discloses a method for processing messages on an end router of a VPLS-based communication network, a method for processing data packets, and an end router for implementing the corresponding methods. In an embodiment of the method according to the invention, an end router is interconnected with a second end router, each of which provides accesses to a communication network for a first device and a second device, When a message from the first device including the MAC address of the first device as the L2 source address and the IP address of the second device as the L3 target address is received, the L2 source address of the message is converted into the virtual MAC address of the first device step; And transmitting a message having a virtual MAC address of the first device to a second end router according to an IP address of the second device, wherein the virtual MAC address of the first device includes an information PEID that identifies an end router, Information VMID identifying the device, and information VIDCA for preventing collision when there is a possibility of a conflict when identifying the first device.;
展开▼