LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-14-2021, 05:05 AM   #1
mfaridi
LQ Newbie
 
Registered: Aug 2005
Location: afghanistan
Posts: 5

Rep: Reputation: 0
Two internet connecion at home, ADSL and TDE LTE


I have two internet connections in my home. one of them is ADSL connection and another one is TDE LTE connection,
I have desktops and laptops and smart TVs and two raspberries,
some devices connect to the ADSL modem and some devices connect to TDE LTE modem,
they are in separate networks and I want to connect the ADSL network and TD LTE network together and I want two networks can see each other.
How I can connect two networks and use them at the same?
Can I do this by some device like RP 3+?
 
Old 05-14-2021, 06:19 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
The RP can function as a router and forward traffic to the modems (which I would guess are actually routers).

Do you want specific devices to keep using a specific Internet connection, like today?

The RP can do policy routing, meaning it can forward traffic to a next-hop router based on criteria like the IP address of the host. Does that sound like what you're looking for?
 
Old 05-14-2021, 06:48 AM   #3
mfaridi
LQ Newbie
 
Registered: Aug 2005
Location: afghanistan
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
The RP can function as a router and forward traffic to the modems (which I would guess are actually routers).

Do you want specific devices to keep using a specific Internet connection, like today?

The RP can do policy routing, meaning it can forward traffic to a next-hop router based on criteria like the IP address of the host. Does that sound like what you're looking for?
Thanks
I want two networks can see each other and can communicate together
For example i want run nginx in TDE LTE network and other devices in ADSL network can see nginx server
 
Old 05-14-2021, 06:56 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
Two possible solutions:
  1. Merge both networks and use the same IP range/network for all devices, but use different gateways depending on which Internet connection you want each device to use
  2. Put a device with two NICs between the networks and configure it as a router
With a network as small as the one you have, I'd probably go for option 1.
 
Old 05-14-2021, 09:55 AM   #5
mfaridi
LQ Newbie
 
Registered: Aug 2005
Location: afghanistan
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
Two possible solutions:
  1. Merge both networks and use the same IP range/network for all devices, but use different gateways depending on which Internet connection you want each device to use
  2. Put a device with two NICs between the networks and configure it as a router
With a network as small as the one you have, I'd probably go for option 1.
Thanks
How I merge them?
When i have two modems.
 
Old 05-14-2021, 02:08 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
That depends on your current setup.

Do either or both "modems" have wireless functionality? And if so, are you using it?

Would it be feasible to connect the modems using a network cable?

Should certain devices (for instance, the smart TVs) be tied to a specific Internet gateway?

Which IP addresses are currently being used in the two respective networks?
 
1 members found this post helpful.
Old 05-14-2021, 02:46 PM   #7
mfaridi
LQ Newbie
 
Registered: Aug 2005
Location: afghanistan
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
That depends on your current setup.

Do either or both "modems" have wireless functionality? And if so, are you using it?

Would it be feasible to connect the modems using a network cable?

Should certain devices (for instance, the smart TVs) be tied to a specific Internet gateway?

Which IP addresses are currently being used in the two respective networks?
Both modems have wireless and LAN cable
Some device connect to modems by wireless and desktops use LAN cables for connecting to the internet
RPs and wireless tv use wireless connection
my TDE-LTE modems give 192.168.1.54 IP to my laptop
My ADSL modem gives 192.168.1.111 to my laptop, So I think both modems give the same range of IPs to devices.

default route in ADSL and TDE-LTE are 192.168.1.1
so the default route is the same too.

My ADSL modem has 4 ports for LAN cables
My TDE-LTE modem has 2 ports for LAN cables.

Last edited by mfaridi; 05-14-2021 at 02:59 PM.
 
Old 05-14-2021, 03:17 PM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
Right. So you have two DHCP servers, one in each router/modem, giving out addresses in the same IP range/network.

You could do this:
  • Change the IP address on one modem/router to 192.168.1.2
  • Deactivate the DHCP server on that modem (making sure the DHCP scope on the other modem starts at 3 or higher)
  • Connect both modems with a LAN cable
  • Manually configure IP addresses (or at least the gateway) on those devices that are to use 192.168.1.2 rather than 192.168.1.1 as a gateway
As you can see, some manual configuration is required to differentiate between gateways. A dual-gateway setup cannot be made to function entirely automatically without the use of a 3rd router.
 
  


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
TDE Trinity Desktop Environment & Q4OS license: "GPL and other licenses" no-windose Linux - Security 9 08-03-2018 04:43 AM
LXer: TDE needs your help! LXer Syndicated Linux News 0 03-13-2014 12:42 PM
internet connecion sharing between windows host and linux client pdwivedi Linux - Networking 8 04-16-2009 11:09 AM
Connecion message Joe2003 Linux - Newbie 1 05-06-2005 05:00 PM

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

All times are GMT -5. The time now is 03:12 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