Verify GCP

After you have completed both the Google Cloud Platform (GCP) and the MacStadium sides of the configuration, you might want to verify that the tunnel is working as expected.

Verify that there is an ISAKMP security association between the peers

  1. Verify that you are connected via VPN to your MacStadium private cloud.
    For more information about how to connect to the VPN, see Connecting to Your Cloud (via VPN).
  2. Run Cisco ASDM-IDM and log in.
    For more information about how to log in to your firewall, see Logging in to Your Cisco Firewall.
  3. In the Cisco ASDM-IDM application toolbar, select Tools > Command Line Interface....
1180
  1. Select Single Line, enter the following command, and click Send.
show crypto isakmp sa

If the site-to-site VPN connection is configured properly, you should see information about an active IKEv2.

For more information about this verification command, see Cisco Documentation: show crypto isakmp sa.

Verify that there is an IPsec security association between peers

  1. Verify that you are connected via VPN to your MacStadium private cloud.
    For more information about how to connect to the VPN, see Connecting to Your Cloud (via VPN).
  2. Run Cisco ASDM-IDM and log in.
    For more information about how to log in to your firewall, see Logging into Your Cisco Firewall.
  3. In the Cisco ASDM-IDM application toolbar, select Tools > Command Line Interface....
1180
  1. Select Single Line, enter the following command, and click Send.
show crypto ipsec sa

If the site-to-site VPN connection is configured properly, you should see a detailed log.

For more information about this verification command, see Cisco Documentation: show crypto ipsec sa.

Verify that the tunnel is connected

  1. Log in to your GCP console.
  2. From the GCP console sidebar, scroll to the Networking section and select Hybrid Connectivity > VPN.
2486
  1. On the Cloud VPN Tunnels tab, locate the tunnel to MacStadium and check the value for VPN tunnel status. When your tunnel is properly connected, the status is: Established.
2854

Test traffic and visibility through the tunnel

  1. Verify that you have created a virtual machine in MacStadium.
  2. Verify that you have created a virtual machine instance in GCP and that you have enabled user login on it.
    For more information about user login on GCP instances, see Google Cloud Documentation: Setting up and configuring OS Login.
  3. In the terminal on your MacStadium VM, run the following command.
    Replace <user> with the username for your GCP instance.
    Replace <gcp-vm-ip> with the private IP of the GCP instance.
ssh <user>@<gcp-vm-ip>
  1. When prompted, provide your password or key for the specified username on the specified GCP instance.
    If the connection is successful, the prefix of the terminal becomes <user>@<gcp-vm-ip>. This indicates that you have connected from MacStadium to GCP over the tunnel.
  2. Run the following command.
    Replace <user> with the username for your MacStadium VM.
    Replace <macstadium-vm-ip> with the private IP of the MacStadium VM.
ssh <user>@<macstadium-vm-ip>
  1. When prompted, provide your password or key for the specified username on the specified MacStadium VM.
    If the connection is successful, the prefix of the terminal becomes <user>@<macstadium-vm-ip>. This indicates that you have connected from GCP to MacStadium over the tunnel.

Troubleshooting

See GCP Troubleshooting.