Fix the shared network connectivity issues in virtual machines when using Cisco AnyConnect VPN on Mac

1 users found this article helpful

This article offers a solution for the issue where the external network becomes unreachable in a guest virtual machine (VM). This issue specifically occurs when the virtual network adapter is attached in the Shared network mode and a Cisco AnyConnect VPN tunnel is established. The root cause of this issue lies in the fact that the Shared Network IPv4 subnet is made routable via the VPN tunnel, leading to connectivity issues with the external network.

Workaround

  1. Contact your VPN administrator to suggest a /24 subnet in the subnets 10.0.0.0/8 or 192.168.0.0/16 that is not routed via the VPN tunnel.

    Note: This information is crucial and cannot be determined without knowledge of the VPN gateway configuration.

  2. Shut down all VMs. Make sure that the VMs are shut down. If any of them are in a suspended state, please run it and then shut down (Actions > Shut Down).

  3. Quit Parallels Desktop (click the Parallels icon on the top Mac menu > Quit Parallels Desktop).

     4. Modify the Virtual Network Configuration:

For macOS VMs on Apple Silicon (except the cases when macOS Sonoma is running as a host and VM operating system):

sudo nano /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist

Note: you will need to enter your Mac password to run the command. No symbols will be shown due to security measures, so just hit the keys and use Return/Enter.

For Parallels Desktop for AppStore:

open -a TextEdit ~/Library/Group\ Containers/4C6364ACXT.com.parallels.desktop.appstore/Parallels/network.desktop.xml

Note: you will need to enter your Mac password to run the command. No symbols will be shown due to security measures, so just hit the keys and use Return/Enter. 

For Parallels Desktop for Mac with a Standard License:

open -a TextEdit /Library/Preferences/Parallels/network.desktop.xml

Note: you will need to enter your Mac password to run the command. No symbols will be shown due to security measures, so just hit the keys and use Return/Enter.

For Other Cases:

Was this article helpful?

Tell us how we can improve it.