The application provides a traffic forwarding method and device based on MLAG dual-homing access EVPN, which comprises the following steps: in the case of main link failure, based on the target ESI corresponding to the main link, determining a first MAC / IP
route associated with the target ESI, the
route attribute of the first MAC / IP
route being a preset attribute value, and the preset attribute value representing that the route has a proxy attribute; configuring the egress of target traffic to point to a second PE; the main link is a link between a target CE and a first PE, the
backup link is a link between the target CE and the second PE, and the route attribute of the first MAC / IP route is configured by the second PE through the way of adding a BGP extended
community attribute. Through the way of adding the BGP extended
community attribute, the dual-homing PE can form a protection group for the MAC / IP route associated with the same ESI on the access side and the tunnel side, and can prevent traffic
packet loss in the case of main link failure.