skip to primary navigationskip to content

Department of Computer Science and Technology

VPN 2

 

Instructions for configuring the VPN on Windows 11 and 10 devices

Before you start

Obtain your VPN username and password from vpnpassword.cl.cam.ac.uk.

Setting-up the VPN in Windows 11 or 10

Either run the following script in a cmd shell (Windows-R cmd):

Powershell.exe -Command "& {Add-VpnConnection -Name 'CL VPN 2' -ServerAddress 'vpn2.cl.cam.ac.uk' -TunnelType 'Ikev2' -AuthenticationMethod 'Eap' -EncryptionLevel "Required" -RememberCredential -SplitTunneling; Set-VpnConnectionIPsecConfiguration -ConnectionName 'CL VPN 2' -Force -CipherTransformConstants AES128 -EncryptionMethod AES128 -IntegrityCheckMethod SHA256 -AuthenticationTransformConstants SHA256128 -DHGroup ECP384 -PfsGroup ECP384}"

Then connect to the VPN via the network icon in the lower right corner, or via Start > Settings > Network & Internet > VPN.

Or:

  1. Click Start > Settings to open the 'Settings' panel:
    startsettings
     
  2. ...and select Network & Internet:
    vpnnetwork
     
  3. Click VPN from the list on the left. Add a VPN connection will appear – click on the + sign:
    vpnadd
     
  4. Click in the VPN Provider window, which should add the text Windows (built-in).
  5. In the Connection name box, type Computer Lab VPN2.
  6. In the Server name or address box enter: vpn2.cl.cam.ac.uk. 
  7. Leave the VPN type box set to Automatic.
  8. Click in the Type of sign-in info box, which should default to 'Username and password'.
  9. DO NOT add the username and password at this stage, but ensure that Remember my sign-in info is ticked at the bottom of the screen.
  10. Click Save, and this screen will disappear.
  11. You should now see the 'Computer Lab VPN2' icon; click Change adapter options or Change adapter settings (which may appear beneath or to the right):
    vpncambridge
    (or, if that doesn't work, press Win+R, type ncpa.cpl and press Enter).
  12. Right-click on the 'Computer Lab VPN2' icon (showing as 'Disconnected'), and choose Properties:
    disconnectedvpn
     
  13. Choose the Security tab, and under the heading Type of VPN, select IKEv2 from the drop down list:
    vpneap
     
  14. Under the heading Data encryption, select Require encryption (disconnect if server declines).
  15. Under the heading Authentication select Use Extensible Authentication Protocol (EAP).
  16. Choose the Networking tab, then select Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
    vpn network properties
     
  17. Click Advanced.
    vpn network properties2
     
  18. In the IP Settings tab in Advanced TCP/IP Settings box, make sure that 'Use default gateway on remote network' is NOT ticked.
    DISABLE Use default gateway on remote network
  19. Click the OK button.
  20. Select Internet Protocol Version 6 (TCP/IPv6), and then repeat the above steps: first click Properties...
  21. ...then click Advanced...
  22. ...then UNTICK the 'Use default gateway on remote network' box.
  23. Click the OK button in each of the three boxes.

 

Connecting to the VPN in Windows 10

  1. Select Start > Settings.
  2. Select Network & Internet.
  3. Select VPN and then click on the Computer Lab VPN2 icon. A Connect box will appear.
  4. Click Connect.
  5. In the Username box, enter your VPN username, which is normally your CRSid followed by the device ID, such as spqr2-laptop (NOT an email address)
  6. In the Password box, enter your 16-character VPN password as obtained from vpnpassword.cl.cam.ac.uk for the device.

makeconnection

Hint: Check that the Remember my sign-in info checkbox is still ticked, if you want to log in automatically in future.

  1. Select the OK button. 'Connected' should appear below the Computer Lab VPN2 icon.

Disconnecting from the VPN after use

Click the Disconnect box on the right, below the Computer Lab VPN2 icon.
 

Troubleshooting VPN problems in Windows 10

Continuously Connecting

In a recent update to Windows 10 it has been reported that connecting to the VPN using the network icon in the system tray results in the status getting stuck at 'connecting'.

This is a known issue which Microsoft are looking into. The workaround is to connect to the VPN via Settings>Network & Internet>VPN
This should cause the credentials prompt to appear, if the credentials are saved it should allow you to connect from the system tray icon going forwards.

IKE service status

If you have trouble connecting to the VPN or the connection just hangs, it may be that the required IKE service has not been started. To check:

  1. Go to Start > Settings.
  2. Search for Administrative Tools. Choose Services from the list:
  3. The IKE and AuthIP service status should be listed as 'Running':

    ikev2

    If it isn't, double-click to highlight the IKE and AuthIP line, and change the Startup type to Automatic.