Hi @Tanima Sonar ,
Thank you for contacting to Microsoft Community.
You could try these steps below to fix the issue related L2TP:
Open Command Prompt as Administrator:
Copy and paste the following commands
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v ProhibitIpSec /t REG_DWORD /d 0x0 /f
Restart Your Computer:
After executing the commands, restart your computer to apply the changes.
If the issue continues, additional troubleshooting may be necessary, including reviewing network settings or removing recent updates.
If you found this answer helpful, please click "Accept Answer" to support our community and others.
Thank you again for your patience and support!
Dustin Tran