A method of electing a designated forwarder, DF, applied to a first provider edge, PE, in a plurality of PEs that provide a multi-homing access for a customer edge, CE, and the method comprising: receiving network layer reachability information, NLRI, sent by a second PE of the PEs, parsing out, from the NLRI, a first election policy set supported by the second PE, and a first priority corresponding to each election policy in the first election policy set; determining a target election policy by using a second election policy set supported by the first PE, a second priority corresponding to each election policy in the second election policy set, the first election policy set supported by the second PE, and the first priority corresponding to each election policy in the first election policy set; electing a DF from the first PE and the second PE based on the target election policy, wherein determining the target election policy by using the second election policy set supported by the first PE, the second priority corresponding to each election policy in the second election policy set, the first election policy set supported by the second PE, and the first priority corresponding to each election policy in the first election policy set, comprises: determining an intersection of the first election policy set and the second election policy set; determining, for each election policy in the intersection, a target priority corresponding to the election policy by using the first priority and the second priority corresponding to the election policy; determining an election policy with highest target priority as the target election policy; when the intersection of the first election policy set and the second election policy set is empty, obtaining a specified election policy, and determining the specified election policy as the target election policy. receiving network layer reachability information, NLRI, sent by a second PE of the PEs, parsing out, from the NLRI, a first election policy set supported by the second PE, and a first priority corresponding to each election policy in the first election policy set; determining a target election policy by using a second election policy set supported by the first PE, a second priority corresponding to each election policy in the second election policy set, the first election policy set supported by the second PE, and the first priority corresponding to each election policy in the first election policy set; electing a DF from the first PE and the second PE based on the target election policy, wherein determining the target election policy by using the second election policy set supported by the first PE, the second priority corresponding to each election policy in the second election policy set, the first election policy set supported by the second PE, and the first priority corresponding to each election policy in the first election policy set, comprises: determining an intersection of the first election policy set and the second election policy set; determining, for each election policy in the intersection, a target priority corresponding to the election policy by using the first priority and the second priority corresponding to the election policy; determining an election policy with highest target priority as the target election policy; determining an intersection of the first election policy set and the second election policy set; determining, for each election policy in the intersection, a target priority corresponding to the election policy by using the first priority and the second priority corresponding to the election policy; determining an election policy with highest target priority as the target election policy; when the intersection of the first election policy set and the second election policy set is empty, obtaining a specified election policy, and determining the specified election policy as the target election policy. <EOS>