Route advertisement from CE2 to PE2: CE2 advertises its IPv4 route to PE2. A static route or a dynamic routing protocol such as RIP, OSPF, IS-IS, or BGP can be configured for the communication between CE2 and PE2.
Route advertisement from PE2 to PE1: PE2 advertises the EVPN route to its BGP EVPN peer PE1 through update messages carrying RT and SRv6 VPN SID attributes.
After PE1 receives the EVPN route, if the next hop in the EVPN route is reachable and the route matches the BGP route import policy, PE1 performs a series of actions to determine whether to install the route in the IPv4 routing table of the corresponding EVPN instance. These actions include route leaking, route recursion to an SRv6 BE path, and route selection. If PE1 installs the route, this route is then associated with an SRv6 VPN SID.
PE1 advertises the route to CE1. CE1 then learns the route from PE1 using RIP, OSPF, IS-IS, or BGP. This process is similar to that from CE2 to PE2.
CE1 sends a common IPv4 packet to PE1.
After receiving the packet through the interface to which a VPN instance is bound, PE1 searches the routing table of the VPN instance for a prefix entry that matches the destination IPv4 address of the packet. After finding the associated SRv6 VPN SID and next hop, PE1 encapsulates the packet into an IPv6 packet using the SRv6 VPN SID A2:1::C100 as the destination address.
PE1 finds the route A2:1::/64 based on the longest match rule and forwards the packet to the P device over the shortest path.
Likewise, the P device finds the route A2:1::/64 based on the longest match rule and forwards the packet to PE2 over the shortest path.
PE2 searches My Local SID Table for an End.DT4 SID that matches A2:1::C100. According to the instruction specified by the SID, PE2 removes the IPv6 packet header and searches the IPv4 routing table of the VPN instance identified by the End.DT4 SID for packet forwarding.