Before enabling an L2VPN (Layer 2 VPN) in NSX, a Route-based IPSec VPN must be configured. Route-based VPNs create a secure tunnel over which Layer 2 traffic can be extended, allowing for the creation of L2VPN connections. This setup is required to establish the underlying secure connectivity that L2VPN relies on for traffic between sites.