A had this challenge on how to reset or reconnect the VPN service in the office whenever I am mobile and do not have access to the Cisco ASDM-IDM. I do however have access to the device via SSH, so here is how you can reset or reconnect the VPN session using CLI.
- Connect and login to the device via SSH (granting you have already enabled the service on your device).
- Enable config mode.
Type help or '?' for a list of available commands. CISCO> enable Password: ******** CISCO#
- Get a list of the site-to-site VPN tunnels that are up. Issue the following command:
CISCO# show vpn-sessiondb l2l Output example: Session Type: LAN-to-LAN Connection : 192.168.50.1 Index : 4 IP Addr : 192.168.50.1 Protocol : IKEv1 IPsec IPsecOverNatT Encryption : IKEv1: (1)3DES IPsec: (1)3DES IPsecOverNatT: (1)3DES Hashing : IKEv1: (1)SHA1 IPsec: (1)SHA1 IPsecOverNatT: (1)SHA1 Bytes Tx : 8022844 Bytes Rx : 389894534 Login Time : 09:56:20 PHST Wed Aug 1 2018 Duration : 1h:31m:11s
- You can now logoff or disconnect the VPN session using the “Index” number.
CISCO# vpn-sessiondb logoff index 4
- Confirm the session has been restarted, issue the following command and check the “Login Time” and “Duration”.
CISCO# show vpn-sessiondb l2l