Managing Multiple Cisco VPN Connections

March 24, 2020

Since everyone is working from home now. This is a short tutorial for everyone who needs to connect to multiple virtual private networks with the Cisco Anyconnect client. As a student this is for me the university network as well as the company network. For others this might be their company as well as the clients they work for.


  1. Multiple Cisco VPN Endpoints
  2. KeePass

Cisco AnyConnect

The mostly used vpn software from cisco is probably the Cisco AnyConnect Secure Mobility Client. To save a connection the client uses a xml-file with the format described in the file AnyConnectProfile.xsd which is available in your AnyConnect installation directory. This describe alot more settings than needed for this example. We use to save our connection details by filling the elements HostName which describes the element in the dropdown list and HostAdress which is the endpoint to connect to. Below is a example with placeholders which have to be replaced by your names and addresses.

<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="">
            <HostName>Uni Stuttgart</HostName>
            <HostName>Informatik Uni Stuttgart</HostName>

After Saving the XML to <AnyConnectInstallationDirectory>/Profile/Profile.xml and restarting the AnyConnect client your should see a list of networks to connect like in the picture below.

Dropdown of vpn connections


KeePass is a software to manage passwords. Of course there are other password managers out there but I have been using this for years as it works under Windows, Linux and on my smartphone. Storing credentials in plain text is insecure, thus the use of a password manager like KeePass is highly recommended. With this software you can create multiple entries and sort the into different folders. Now if your save your vpn credentials you can perform auto-type to type them into your openend vpn client.

KeePass User Interface


In this post you have learned a way to save multiple vpn connections and managing username and password with the help of software. This software is also able to type your credentials into the vpn connection.

About the author: Joachim Spalink

Software-Engineering Student working part-time at mimacom.

Join us