You are here
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 (https://www.turnkeylinux.org/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.
Looks like you almost have it...
Hey, thanks a lot for taking
Hey, thanks a lot for taking time for my issue. :)
The thing is, when I don't have a Wi-Fi access, the interface shows me the same IP: 192.168.1.101, but when on my Mac terminal I try to ping this IP, it just times out...
Maybe my explanation is not clear enough, do you want some more details? Or maybe I just can't understand what you said, in which case I'm sorry, but can you explain a bit more what you want me to do?
Thanks again,
Romain C.
You're using the wrong IP
The "host-only" adaptor will have a different IP. You will need to check what that is and/or configure that separately. This answer (on SuperUser) should steer you in the right direction...
Absolutely perfect. Works
Absolutely perfect. Works like a charm.
Thanks a lot for your time!
Romain C.
Add new comment