Forum archive
[SOLVED] Access VM with deactivated Wi-Fi network
Hey there,
I have been blocked on a problem for days now, and can't find out a configuration which convinces me...
The thing is: I'm working on a MacBook Pro in several situations: at my home with my own Wi-Fi, in open-spaces with free Wi-Fi accesses, or in the train where I have no Wi-Fi and where I generally deactivate the Wi-Fi connection to save some more battery juice.
I'm searching for a way to allow my Debian LAMP (/lampstack) to automatically adapt to every situation (even if a reboot is required for the VM), and with the same ip-adress (because I'm just bored of constantly being forced to edit my IDE and other tools server settings).
Here is what I have by now:


In the DHCP Server tab, the checkbox is unchecked.
And here is what my /etc/network/interfaces file looks like:
auto lo
iface lo inet loopback
allow-hotplug eth0
allow-hotplug eth1
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
auto eth1
iface eth1 inet dhcp
When I have access to Wi-Fi, everything is working fine: I can have a web access in my browser (192.168.1.101), and a ssh access in my terminal (root@192.168.1.101).
But when I have no access to Wi-Fi, I just can't get it working properly: I can't even ping 192.168.1.101.
So here I am, asking some gurus if what I want is possible, and if yes: how? :-)
Thanks in advance for taking time to read me!
Romain C.