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:
-
Click Start > Settings to
open the 'Settings' panel:

- ...and select Network & Internet:

- Click VPN from the list on the
left. Add a VPN connection will appear –
click on the + sign:

- Click in the VPN Provider window, which should add the text Windows (built-in).
- In the Connection name box, type Computer Lab VPN2.
- In the Server name or address box
enter:
vpn2.cl.cam.ac.uk. - Leave the VPN type box set to Automatic.
- Click in the Type of sign-in info box, which should default to 'Username and password'.
- 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.
- Click Save, and this screen will disappear.
- 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):

(or, if that doesn't work, press Win+R, type ncpa.cpl and press Enter). - Right-click on the 'Computer Lab VPN2' icon
(showing as 'Disconnected'), and
choose Properties:

- Choose the Security tab, and under the
heading Type of VPN,
select IKEv2 from the drop
down list:

- Under the heading Data encryption, select Require encryption (disconnect if server declines).
- Under the heading Authentication select Use Extensible Authentication Protocol (EAP).
- Choose the Networking tab, then
select Internet Protocol Version 4 (TCP/IPv4),
and then click Properties.

- Click Advanced.

- In the IP Settings tab
in Advanced TCP/IP Settings box, make sure
that 'Use default gateway on remote network' is NOT
ticked.
- Click the OK button.
- Select Internet Protocol Version 6 (TCP/IPv6), and then repeat the above steps: first click Properties...
- ...then click Advanced...
- ...then UNTICK the 'Use default gateway on remote network' box.
- Click the OK button in each of the three boxes.
Connecting to the VPN in Windows 10
- Select Start > Settings.
- Select Network & Internet.
- Select VPN and then click on the Computer Lab VPN2 icon. A Connect box will appear.
- Click Connect.
- 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)
- In the Password box, enter your 16-character VPN password as obtained from vpnpassword.cl.cam.ac.uk for the device.

Hint: Check that the Remember my
sign-in info checkbox is still ticked, if you want to
log in automatically in future.
- 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:
- Go to Start > Settings.
- Search for Administrative Tools. Choose Services from the list:
- The IKE and AuthIP service status
should be listed as 'Running':

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