Route Addition to IKEv2 in Windows 11

There is no option in windows for adding a static route automatically through a VPN using GUI, but using powershell its working fine here is the command :

Add-VpnConnectionRoute VPN-Name Route-In-CIDR

To remove the route

 Remove-VpnConnectionRoute VPN-Name  Route-In-CIDR

For Example

Add-VpnConnectionRoute "IKEv2 VPN NML" "192.168.1.0/24"

Whenever I connect to NML VPN I get all traffic 192.168.1.0/24 directed to NML Network. Be careful your home network is other than 192.168.1.0/24

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.