1) Mac (why I'm here) OS X Yosemite
2) Red Hat Linux 6.5 VM
3) VirtualBox 4.3 28
4) NAT Network (10.0.21.0/24)
5) Host-only (ipv4 192.168.57.100)
6) Red Hat set to use static ip address 192.168.57.152
7) On Red Hat, /etc/sysconfig/network-scripts/ifcfg-eth0:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:F0:65:6A
TYPE=Ethernet
UUID=b8e8f927-777e-4242-9297-6f4385fa40f6
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
DEVICE=eth1
HWADDR=08:00:27:63:50:6B
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.57.152
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
The problem:
This setup works great whenever I am up until I connect from home to my companies VPN via Cisco Anyconnect. Once this happens, I can no longer ping 192.168.57.152. The connection times out. I can still go onto the VM through VirtualBox, but I cannot connect to it via a browser (I am developing a web application that is deployed on this VM) nor can I ssh into the box from the Mac Terminal.
I'm not sure what the issue could be since I am not using any physical adapter as I would with a bridged connection. I could possibly use a bridged adapter to get around this, but I'd like to avoid that route and figure out what exactly is going on.
Any ideas?
Thanks,
Scott