Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Problem

I have several routes that are created when I connect to my company's VPN using Cisco VPN client. (It appears to be a bug in our VPN client that we're subjected to this in the first place: Allow Local LAN Access is ON but the client is ignoring the option.)

I have a virtual machine running on my system that I want to connect to while I'm on the VPN. I can do this reliably by deleting the route to the network of my VPN's Host-Only adapter created by the vpn client but I have to delete the route every time I connect to my VPN.

Question

How do I reliably prohibit either the deletion of these routes either at the time of connection, prohibit some of them from being created, or work around them?

share|improve this question
up vote 1 down vote accepted

Because I am using the Host-Only VM adapter with set IP addresses on both the host and guest I created a work around as follows:

Add a persistent route from the host to the VM using the following command:

route -p add <guest-ip-address> 255.255.255.255 <host-vmnet1-ip-address>

Because this is a more specific route than the 255.255.255.0 route that the VPN software creates, this route is used even when connected to the VPN.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .