摘要 |
Embodiments of the present invention provide a method for generating a route entry, including: receiving, by a first BGP speaker, a first route message and a second route message that are distributed respectively by a second BGP speaker by using a first distribution path and a second distribution path; determining, by the first BGP speaker, that a quantity of next hops in a first next hop list attribute is less than a quantity of next hops in a second next hop list attribute; and generating, by the first BGP speaker, a route entry according to path attributes, of a path towards a destination, in the first route message. In addition, the embodiments of the present invention further provide a first BGP speaker. The foregoing technical solution helps reduce a workload in configuring route preference policies. |