notoneofmy wrote: > I have three separate networks, ip addresses, etc. > One wireless and two hard wired, ethernet. > The wireless must connect to the internet. > As is necessary, I will need to physically swap the ethernet cables > between networks.
You say networks. Is that the same as ethernet interfaces? You have two ethernet interfaces? Or you have one ethernet interface that you sometimes connect to one wired network and sometimes to a different wired network? Is this a laptop that is carried mobile to various places? Or is it a laptop that always sits in one place and needs to connect to different networks in that one place? (I would suggest different things if it iis three fully specified local networks with static ip addresses versus if it were carried mobile and must connect to random dhcp networks too.) On these networks are they DHCP or static IPs? For the WiFi network are you needing to select them manually from a desktop graphically with the mouse? Or is this from a set of known networks that you would preconfigure and then not change? (Such as in a home network environment but not mobile at airports or elsewhere.) > And when I do this, hope to be connected to a respective network based > on my explicit rules. Have you looked at the "guessnet" package? It might help you. http://guessnet.alioth.debian.org/ https://packages.debian.org/jessie/guessnet There are also "whereami" and other packages in this topic space too. > I hope this can work. And I hope I have explained a bit more enough. > Are there rules I must follow to do this properly. As I've tried before > without success. > Thanks for your help. There are still many possibilities. But if we go through more questions and answers then it will eventually be communicated. :-) So far we have the above and your previously written: > I'm using a laptop and want the wifi to go online, but the ethernet to > stay on a different lan networks, actually two different networks. And > I worry how to proceed with such a configuration. Ideas? Let me assume you want to keep NetworkManager (or better wicd) managing your wifi interface but manually configure your eth0 and eth1 wired interfaces. For that you would simply add a static or dhcp configuration to /etc/network/interfaces for eth0 and eth1 but not specify wlan0. (Reboot after doing this so that NM won't grab eth0 and eth1.) With that configuration you will manually select the WiFi connection "to the internet" as you say. As you connect the wired networks they will use the explicit configuration in /etc/network/interfaces for them. If you have only one wired ethernet and are planning on connecting back and forth between two wired networks then it is similar but I would use guessnet to manage the interface so that it can automatically switch you between the specified network profiles. And so forth... Bob
signature.asc
Description: Digital signature