LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2024, 10:49 AM   #1
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Rep: Reputation: Disabled
Two LANs, How to Inter-Access?


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!

Other advice?

Thanks,
JP.
 
Old 01-16-2024, 11:12 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.
 
Old 01-16-2024, 12:12 PM   #3
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
Right now there is no physical connection.

When the fibre was installed a new router / access point was installed (a Calix GigaSpire Blast).

The old switch / access point that I installed in the house is still there but currently powered down.

Both of the LANs are set up on 192.168.1.x subnet (is that the correct terminology?).

P.S.: I will whip up a quick drawing of the topology.

Last edited by jogl_z_8; 01-16-2024 at 12:14 PM.
 
Old 01-16-2024, 12:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
A drawing would help.
 
Old 01-16-2024, 12:40 PM   #5
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
Hopefully this works.

https://www.linuxquestions.org/quest...1&d=1705430318

The red switch / ap is the one that is powered down. It is phisically sitting right beside the Calix GigaSpire Blast.
Attached Thumbnails
Click image for larger version

Name:	net_top.jpg
Views:	12
Size:	32.0 KB
ID:	42421  
Attached Files
File Type: pdf net_top.pdf (11.8 KB, 8 views)

Last edited by jogl_z_8; 01-16-2024 at 12:42 PM.
 
Old 01-16-2024, 01:36 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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).
 
Old 01-16-2024, 02:39 PM   #7
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
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)?
 
Old 01-16-2024, 03:04 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.
 
Old 01-16-2024, 03:23 PM   #9
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
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.

Right?
 
Old 01-16-2024, 03:38 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.
 
Old 01-16-2024, 04:10 PM   #11
jogl_z_8
Member
 
Registered: Oct 2005
Location: SW Ontario Canada
Distribution: Debian
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
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.

Last edited by jogl_z_8; 01-16-2024 at 04:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Inter process and inter computer communication jthjth Linux - Newbie 1 12-27-2011 03:53 PM
Merging two LANs with OpenVPN across the Internet tedcox Linux - Networking 3 12-30-2006 10:39 AM
how to connect two lans? DrKranium Linux - Networking 3 08-27-2006 12:09 PM
HOWTO? Using unix to forward traffic between two lans g33sp0t Linux - Networking 5 05-31-2006 01:38 PM
Problem in routing between two LANs burrito Linux - Networking 2 07-03-2005 08:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration