| CPC H04L 45/74 (2013.01) [H04L 45/02 (2013.01)] | 19 Claims |

|
19. A communication apparatus, comprising:
one or more processors; and
a non-transitory computer-readable storage medium storing a program to be executed by the one or more processors, the program including instructions to:
receive a first border gateway protocol (BGP) route advertisement message sent by a control management device, wherein the first BGP route advertisement message advertises a first virtual private network (VPN) route based on a virtual private network version 4 (VPNv4) address family, a virtual private network version 6 (VPNv6) address family, or a Layer 3 Ethernet virtual private network (L3EVPN) address family, wherein the first VPN route comprises indication information that instructs the communication apparatus to redirect a VPN route to iterate to a first next hop of a private network, an IP address prefix of a destination host, wherein the first next hop of the private network is a next hop towards reaching the IP address prefix of the destination host, and a network address of the first next hop towards reaching the IP address prefix, and wherein the network address of the first next hop is a private IP address of the private network;
generate a first virtual routing and forwarding (VRF) entry based on the indication information, wherein the first VRF entry comprises the IP address prefix and first outbound interface information, and wherein the first outbound interface information identifies a first outbound interface that is of the communication apparatus and that is connected to the first next hop of the private network, wherein to generate the first VRF entry based on the indication information, the program includes instructions to:
determine, in a local VRF table based on the indication information and the network address of the first next hop of the private network, the first outbound interface information corresponding to the first next hop; and
generate the first VRF entry based on the IP address prefix and the first outbound interface information; and
control network traffic based on the first VRF entry.
|