摘要 |
Embodiments of the present invention relate to a method and an apparatus for sending a packet. The method for sending a packet includes: receiving an original packet; querying a pre-configured GRE forwarding entry including next-hop address information and outbound interface information, and obtaining next-hop address information and outbound interface information of a GRE tunnel used to send the original packet; encapsulating the original packet into a GRE packet; encapsulating the GRE packet into an outer layer protocol packet; and selecting a sending path in the GRE tunnel according to the next-hop address information and outbound interface information, and sending the outer layer protocol packet through the sending path. Therefore, according to the method and apparatus, a packet sending path may be independently selected, thereby reasonably configuring and efficiently using each path of a GRE tunnel, and improving packet sending efficiency.
|