A method, comprising: advertising, by a particular router, in a network via a particular route advertisement message of a routing protocol, a particular route associated with a particular Internet Protocol Version 6, IPv6, Segment Routing, SRv6, Segment Identifier, SID, with the SID including a locator of the particular router and a function encoding representing a particular Ethernet Virtual Private Network, EVPN, end function of the particular router, with the particular SID including a routable prefix to the particular router; receiving, by the particular router from an ingress router, a particular packet including the particular SID, wherein the particular packet comprises an Ethernet frame encapsulated into the particular packet; and in response to said received particular packet including the particular SID, the particular router performing the particular EVPN end function on the particular packet, wherein said performing the particular EVPN end function on the particular packet includes decapsulating the Ethernet frame from the particular packet and sending the Ethernet frame from the particular router; wherein the routing protocol is Border Gateway Protocol, BGP; wherein the particular route advertising message includes an implicit null label in each of one or more BGP Multiprotocol Label Switching-based, MPLS-based, EVPN label fields identifying that BGP MPLS-based EVPN is not supported by the particular router while SRv6 EVPN is supported by the particular router as identified by a SRv6-VPN Type Length Value TLV; wherein the particular router and the ingress router in the network are multihomed to a same Ethernet segment or node; wherein the particular SID includes a particular argument including a representation of a particular Ethernet Segment Identifier, ESI; and wherein said sending the Ethernet frame from the particular router includes sending the Ethernet frame from the particular router on one or more corresponding Layer 2 output interfaces except the Layer 2 output interface identified by the particular ESI. advertising, by a particular router, in a network via a particular route advertisement message of a routing protocol, a particular route associated with a particular Internet Protocol Version 6, IPv6, Segment Routing, SRv6, Segment Identifier, SID, with the SID including a locator of the particular router and a function encoding representing a particular Ethernet Virtual Private Network, EVPN, end function of the particular router, with the particular SID including a routable prefix to the particular router; receiving, by the particular router from an ingress router, a particular packet including the particular SID, wherein the particular packet comprises an Ethernet frame encapsulated into the particular packet; and in response to said received particular packet including the particular SID, the particular router performing the particular EVPN end function on the particular packet, wherein said performing the particular EVPN end function on the particular packet includes decapsulating the Ethernet frame from the particular packet and sending the Ethernet frame from the particular router; wherein the routing protocol is Border Gateway Protocol, BGP; wherein the particular route advertising message includes an implicit null label in each of one or more BGP Multiprotocol Label Switching-based, MPLS-based, EVPN label fields identifying that BGP MPLS-based EVPN is not supported by the particular router while SRv6 EVPN is supported by the particular router as identified by a SRv6-VPN Type Length Value TLV; wherein the particular router and the ingress router in the network are multihomed to a same Ethernet segment or node; wherein the particular SID includes a particular argument including a representation of a particular Ethernet Segment Identifier, ESI; and wherein said sending the Ethernet frame from the particular router includes sending the Ethernet frame from the particular router on one or more corresponding Layer 2 output interfaces except the Layer 2 output interface identified by the particular ESI.