Allow LAN access between devices on two different LANs
My current setup:
4G WiFi modem/router with Ethernet ports
- Media devices (Chromecast, phones etc)
ADSL modem into WiFi/Ethernet router
- Latency sensitive devices (PC/game consoles etc)
Reason for my current setup is speed vs latency
My goal:
- Allow a device connected to 4G to access a device using ADSL without using the internet. i.e. over LAN.
Currently nothing exists between the two routers. I am trying to find out if I can connect then via Ethernet directly with some settings tweaking, or if I will need a switch (and which type of switch) between the two. I don't mind setting custom DNS or whatever else is required on the devices, although it may not be possible on some of the 4G connected ones.
networking router lan switch wan
add a comment |
My current setup:
4G WiFi modem/router with Ethernet ports
- Media devices (Chromecast, phones etc)
ADSL modem into WiFi/Ethernet router
- Latency sensitive devices (PC/game consoles etc)
Reason for my current setup is speed vs latency
My goal:
- Allow a device connected to 4G to access a device using ADSL without using the internet. i.e. over LAN.
Currently nothing exists between the two routers. I am trying to find out if I can connect then via Ethernet directly with some settings tweaking, or if I will need a switch (and which type of switch) between the two. I don't mind setting custom DNS or whatever else is required on the devices, although it may not be possible on some of the 4G connected ones.
networking router lan switch wan
1
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11
add a comment |
My current setup:
4G WiFi modem/router with Ethernet ports
- Media devices (Chromecast, phones etc)
ADSL modem into WiFi/Ethernet router
- Latency sensitive devices (PC/game consoles etc)
Reason for my current setup is speed vs latency
My goal:
- Allow a device connected to 4G to access a device using ADSL without using the internet. i.e. over LAN.
Currently nothing exists between the two routers. I am trying to find out if I can connect then via Ethernet directly with some settings tweaking, or if I will need a switch (and which type of switch) between the two. I don't mind setting custom DNS or whatever else is required on the devices, although it may not be possible on some of the 4G connected ones.
networking router lan switch wan
My current setup:
4G WiFi modem/router with Ethernet ports
- Media devices (Chromecast, phones etc)
ADSL modem into WiFi/Ethernet router
- Latency sensitive devices (PC/game consoles etc)
Reason for my current setup is speed vs latency
My goal:
- Allow a device connected to 4G to access a device using ADSL without using the internet. i.e. over LAN.
Currently nothing exists between the two routers. I am trying to find out if I can connect then via Ethernet directly with some settings tweaking, or if I will need a switch (and which type of switch) between the two. I don't mind setting custom DNS or whatever else is required on the devices, although it may not be possible on some of the 4G connected ones.
networking router lan switch wan
networking router lan switch wan
edited Jan 21 at 18:30
Leonardo Alves Machado
1418
1418
asked Jan 19 at 12:52
Hayden MouldsHayden Moulds
792
792
1
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11
add a comment |
1
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11
1
1
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11
add a comment |
1 Answer
1
active
oldest
votes
A simple way to achieve this without having to mess with routing would require the following setup (assuming both your routers are doing NAT and you have a private address space):
- 4g router with LAN network
192.168.0.0/23(DHCP pool192.168.0.10-110) - ADSL router with LAN network
192.168.1.0/23(DHCP pool192.168.1.10-110). Set this router's LAN IP address to static in the higher range, for example192.168.1.1. - pass one ethernet cable between both routers
This effectively creates a "giant" /23 LAN address space shared among both routers (joined at the layer2 level).
This setup is a but messy with regards to DHCP, since you will have two servers in your now-joined network, you have a few choices:
- only one router has DHCP server enabled, you must pick which will give you internet access
- both routers have DHCP server enabled. Problem: this means you won't control which router each device uses to reach the internet, since it will depend on how fast each router responds to DHCP Discover requests. It will usually be the router to which the device is directly connected, but it's not clean.
- both routers have DHCP server enabled, and you block LAN DHCP Discover requests from leaving the routers. That way, clients plugged into your 4G router will only get IP addresses from its pool, and the same for the ADSL router.
The second option is the easiest to achieve while keeping use of both internet connections, and it should never happen that a device plugged into your ADSL router gets an IP from the 4G router and vice versa.
Note: I assume wired (ethernet) devices only, you didn't specify if your routers have separate SSIDs. If they do, the same effect should be achieved.
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396064%2fallow-lan-access-between-devices-on-two-different-lans%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A simple way to achieve this without having to mess with routing would require the following setup (assuming both your routers are doing NAT and you have a private address space):
- 4g router with LAN network
192.168.0.0/23(DHCP pool192.168.0.10-110) - ADSL router with LAN network
192.168.1.0/23(DHCP pool192.168.1.10-110). Set this router's LAN IP address to static in the higher range, for example192.168.1.1. - pass one ethernet cable between both routers
This effectively creates a "giant" /23 LAN address space shared among both routers (joined at the layer2 level).
This setup is a but messy with regards to DHCP, since you will have two servers in your now-joined network, you have a few choices:
- only one router has DHCP server enabled, you must pick which will give you internet access
- both routers have DHCP server enabled. Problem: this means you won't control which router each device uses to reach the internet, since it will depend on how fast each router responds to DHCP Discover requests. It will usually be the router to which the device is directly connected, but it's not clean.
- both routers have DHCP server enabled, and you block LAN DHCP Discover requests from leaving the routers. That way, clients plugged into your 4G router will only get IP addresses from its pool, and the same for the ADSL router.
The second option is the easiest to achieve while keeping use of both internet connections, and it should never happen that a device plugged into your ADSL router gets an IP from the 4G router and vice versa.
Note: I assume wired (ethernet) devices only, you didn't specify if your routers have separate SSIDs. If they do, the same effect should be achieved.
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
add a comment |
A simple way to achieve this without having to mess with routing would require the following setup (assuming both your routers are doing NAT and you have a private address space):
- 4g router with LAN network
192.168.0.0/23(DHCP pool192.168.0.10-110) - ADSL router with LAN network
192.168.1.0/23(DHCP pool192.168.1.10-110). Set this router's LAN IP address to static in the higher range, for example192.168.1.1. - pass one ethernet cable between both routers
This effectively creates a "giant" /23 LAN address space shared among both routers (joined at the layer2 level).
This setup is a but messy with regards to DHCP, since you will have two servers in your now-joined network, you have a few choices:
- only one router has DHCP server enabled, you must pick which will give you internet access
- both routers have DHCP server enabled. Problem: this means you won't control which router each device uses to reach the internet, since it will depend on how fast each router responds to DHCP Discover requests. It will usually be the router to which the device is directly connected, but it's not clean.
- both routers have DHCP server enabled, and you block LAN DHCP Discover requests from leaving the routers. That way, clients plugged into your 4G router will only get IP addresses from its pool, and the same for the ADSL router.
The second option is the easiest to achieve while keeping use of both internet connections, and it should never happen that a device plugged into your ADSL router gets an IP from the 4G router and vice versa.
Note: I assume wired (ethernet) devices only, you didn't specify if your routers have separate SSIDs. If they do, the same effect should be achieved.
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
add a comment |
A simple way to achieve this without having to mess with routing would require the following setup (assuming both your routers are doing NAT and you have a private address space):
- 4g router with LAN network
192.168.0.0/23(DHCP pool192.168.0.10-110) - ADSL router with LAN network
192.168.1.0/23(DHCP pool192.168.1.10-110). Set this router's LAN IP address to static in the higher range, for example192.168.1.1. - pass one ethernet cable between both routers
This effectively creates a "giant" /23 LAN address space shared among both routers (joined at the layer2 level).
This setup is a but messy with regards to DHCP, since you will have two servers in your now-joined network, you have a few choices:
- only one router has DHCP server enabled, you must pick which will give you internet access
- both routers have DHCP server enabled. Problem: this means you won't control which router each device uses to reach the internet, since it will depend on how fast each router responds to DHCP Discover requests. It will usually be the router to which the device is directly connected, but it's not clean.
- both routers have DHCP server enabled, and you block LAN DHCP Discover requests from leaving the routers. That way, clients plugged into your 4G router will only get IP addresses from its pool, and the same for the ADSL router.
The second option is the easiest to achieve while keeping use of both internet connections, and it should never happen that a device plugged into your ADSL router gets an IP from the 4G router and vice versa.
Note: I assume wired (ethernet) devices only, you didn't specify if your routers have separate SSIDs. If they do, the same effect should be achieved.
A simple way to achieve this without having to mess with routing would require the following setup (assuming both your routers are doing NAT and you have a private address space):
- 4g router with LAN network
192.168.0.0/23(DHCP pool192.168.0.10-110) - ADSL router with LAN network
192.168.1.0/23(DHCP pool192.168.1.10-110). Set this router's LAN IP address to static in the higher range, for example192.168.1.1. - pass one ethernet cable between both routers
This effectively creates a "giant" /23 LAN address space shared among both routers (joined at the layer2 level).
This setup is a but messy with regards to DHCP, since you will have two servers in your now-joined network, you have a few choices:
- only one router has DHCP server enabled, you must pick which will give you internet access
- both routers have DHCP server enabled. Problem: this means you won't control which router each device uses to reach the internet, since it will depend on how fast each router responds to DHCP Discover requests. It will usually be the router to which the device is directly connected, but it's not clean.
- both routers have DHCP server enabled, and you block LAN DHCP Discover requests from leaving the routers. That way, clients plugged into your 4G router will only get IP addresses from its pool, and the same for the ADSL router.
The second option is the easiest to achieve while keeping use of both internet connections, and it should never happen that a device plugged into your ADSL router gets an IP from the 4G router and vice versa.
Note: I assume wired (ethernet) devices only, you didn't specify if your routers have separate SSIDs. If they do, the same effect should be achieved.
answered Jan 21 at 19:00
André FernandesAndré Fernandes
244318
244318
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
add a comment |
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
I like this suggestion, thank you. I read a few threads that highly discouraged 2 DHCP (which I understand the reasons for). The routers have separate SSIDs, all ADSL router connections are Ethernet, all 4G router connections are wireless. If I disable DHCP on the ADSL router and set the connected devices to static IP in the ADSL router range would that make them use the ADSL connection?
– Hayden Moulds
Jan 22 at 19:57
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Which internet connection your devices will use will depend on which default gateway (route) they use. If you are setting static IP addresses for the devices connected to the ADSL router, then you must also set the default gateway as that router's LAN address.
– André Fernandes
Jan 22 at 23:24
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
Excellent, thank you I will try that by setting all the media devices to auto and only enabling DHCP on the 4g wifi modem/router. Then I will set all ADSL devices to static IP (ADSL router range) and set their gateway to the ADSL router IP
– Hayden Moulds
Jan 24 at 0:03
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396064%2fallow-lan-access-between-devices-on-two-different-lans%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This question has been asked in various variants. The simplest way is to set up static routes on both routers for the other router. If the manufactures firmware doesn't allow that, you need custom firmware (e.g. OpenWRT), or other approaches.
– dirkt
Jan 19 at 13:15
Do you have an example link? I searched multiple times before and after your comment with no success.
– Hayden Moulds
Jan 20 at 13:11