|I have an Ubuntu Virtual Machine running inside my Mac OS X system.|
When I'm connected to the "internet", everything works fine. I can ping my Ubuntu VM (named 'ubuntu') just fine using
However, I often have to connect my Mac to a company VPN (Juniper), which then causes the Mac's IP address to change to a different subnet. Once that happens, the Mac can no longer ping/hit the VM. In my case, after VPN connection, the Mac IP==10.1.115.78, and the Ubuntu IP==10.211.55.4. Note that the name resolution still works; ping ubuntu.local still resolves to 10.211.55.4, it's just that the Mac no longer has a 'route' to that IP.
I am assuming there is a really easy fix for this (as you can tell I am a networking idiot). I want the routes to work whether the Mac is connected to VPN or not, and I want the Ubuntu to continue to have internet access.
Do I have to add a hard-route to the Mac's route tables or something? It seems as if Juniper is forcing all traffic through the VPN, and it not allowing traffic to another IP on my machine.
This is the ifconfig of the Virtual Machine:
eth0 Link encap:Ethernet HWaddr 00:1c:42:7c:87:dc
inet addr:10.211.55.4 Bcast:10.211.55.255 Mask:255.255.255.0
inet6 addr: fec0::fea9:21c:42ff:fe7c:87dc/64 Scopeite
inet6 addr: fe80::21c:42ff:fe7c:87dc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36569 errors:0 dropped:0 overruns:0 frame:0
TX packets:34847 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13639146 (13.6 MB) TX bytes:7023763 (7.0 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:663 errors:0 dropped:0 overruns:0 frame:0
TX packets:663 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:101100 (101.1 KB) TX bytes:101100 (101.1 KB)
Your admin has denied access to do this activity.
You can *try* to put a static route; however, once the tunnel is started, all traffic will need to go through the VPN tunnel (and avoids the static route you have in place on the physical adapter).