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 two LANs that used to be one LAN. The original (LAN1) is at my house. I have a DSL internet connection, which is fine for me. I have a wireless bridge set up that extends LAN1 to my son's house that is about 3/4 mile away. My son was using my LAN1 for internet connectivity.
My son now has a fibre connection and no longer is on LAN1, but the wireless bridge is still in place to service a switch and couple of arduino data collection devices that I have set up there (it is part of our farm).
What are my options to be able to use my son's internet connection (call it LAN2) on the rare occasion that my DSL is down or when I want to download something big fast (like an O/S image). I'd like to have it so that I don't need to change settings, etc., on his router.
So, what options do I have?
What terminology should I be using? Then, at least, I'd know what to search for!
If you can ping your son's router then it should be just a matter of changing the route i.e gateway device.
Otherwise, we need more information on how the bridge works.
I assume originally that your Son's LAN would be on the same subnet as yours?
Do the bridges have a static or assigned via DHCP?
Without knowing exactly how the bridge works i.e. if it just an extension then for DHCP devices I would assume the closest DHCP server would respond first i.e. each router which could lead to address conflicts. If you have access to both router's configuration then you can set the range in half for each network i.e. 192.168.1.1 - 192.168.1.127 and 192.168.1.128 - 192.168.1.254. One router at 192.168.1.1 and the other at 192.168.1.254. It depends on how the aarduinos are configured. To access your son's internet you would just switch the route from 192.168.1.254 to 192.168.1.1 (or vice versa depending on how it was setup).
I assume originally that your Son's LAN would be on the same subnet as yours?
Yes, my router, the green one, did all of the DHCP serving.
Quote:
Do the bridges have a static or assigned via DHCP?
The AP's that comprise the bridge have static IP's.
Quote:
Without knowing exactly how the bridge works
The bridge is pretty transparent, from my point of view it acts like a 1/2 mile long length of cat5. Definitely not the fastest, the AP's for the bridge are 15 years old now. But very reliable and low maintenance.
Quote:
One router at 192.168.1.1 and the other at 192.168.1.254
That would be a lot of work, I have a lot of stuff hanging on the LAN1 192.168.1.x subnet.
If I were able to change the LAN2 (the Calix router) subnet to 192.168.2.x and then just connect my old house switch (red) to the Calix (yellow) would that work? If so to access LAN2 from LAN1 would I set up a desktop computer (for instance) with a second IP number (eg.: 192.168.1.40 and 192.168.2.25)?
You would also need to change the bridges to the 2.x subnet. A second IP address on the same network adapter would allow access but don't know or think you can route traffic to it. Maybe via firewall rules you can route traffic. A second physical network adapter would work for sure.
So if I put a second adaptor in my 192.168.1.40 desktop and hooked it to any switch I could set it up to access internet via the Calix router (which would be at 192.168.2.1).
Or, if I did not want to install a second adaptor in my 192.168.1.40 desktop, I could change the desktop networking settings to get its IP form Calix router (192.168.2.1) and when I was done switch it back to get its IP from the 192.168.1.1 router.
Yes, but I think you would need to manually configure a static ip address on the computer itself. Debian uses network manager to configure networking even with dhcp.
Just accessing the arduinos would only require adding a second ip address via the ip command.
Yes, but I think you would need to manually configure a static ip address on the computer itself
I think that I can handle that.
Quote:
Just accessing the arduinos would only require adding a second ip address via the ip command.
You've just hit on the difficulties of my LAN. When I started out, many, many years ago, on arduinos I set the IP address in the arduino software. I had problems with that so then I started setting reserved IP addresses for MAC's in the router, which, for my purposes, works much better. Then I started adding RPi's for various purposes. Now I dread the (inevitable) day, that may or may not come in my time, when I need to replace my router. OK, it wouldn't be that bad, but I am now old and lazy. And, network administrators will cringe at this, I have a couple of RPi's (data base, music, back up, etc., servers) that are over 3 years uptime (1173 days the longest) and I just can't bear to take them down.
P.S.: michaelk, thank you for your patience, I'll let you know how it works out. JP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.