Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem I've seen more than once and on different Linux systems. I normally see it when I want my laptop to temporarily connect to a different network; for example use the internal ethernet adapter to connect to a 192.168.0.x network; rather than my normal wireless connection to a 192.168.1.x network.
I take the wireless adapter down (or remove it completely) and configure the internal adapter to use DHCP. It picks up a DHCP address OK and the routing table looks fine. I can ping the local interface but when I try to ping other interfaces on the same network (which can ping each other and even ping my laptop) I get a "host destination unreachable" or similar error.
I have a few years experience with Unix networking and I've checked all the obvious stuff like phyical connectivity; but I'm a bit stumped. Does anyone have any ideas?
Have a look at your routing table while on the temporary network, route -n
The line with destination set to 0.0.0.0 is your gateway setting, is this pointing to the right gateway on the temporary network?
If not then this setting might need to be configured on the DHCP server of the temporary network, or else you will have to set it manually every time.
If the routing table looks fine then I would bet on some setting in the firewall. Even a "simple" firewall setting in a firewall script usually set up the firewall rules quite strictly and specific for the present network. If you set a simple firewall it usually narrow the rules down so that it only considers your current ip range as LAN, all other addresses are considered WAN or foreign traffic.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.