Trying to connect 2 Seperate Lans

IceQB

Expert Member
Joined
Jun 10, 2004
Messages
3,122
Have 6 PC's & 2 Laptops (WiFi) in Office connected to switch then to Router 1.
In store have 8 PC's on switch hooked up to Router 2.

Router 1 (LAN1)
DHCP
192.168.1.1
ADSL Access

Router 2 (LAN2)
DHCP
192.168.2.1
No Internet (not required)

Need to connect LAN1 to LAN2 so that 2PC's on LAN2 has access to a shared Folder on LAN1.
LAN2 does NOT require Internet Access.
Can I just hook Router 1 to Router 2.
Add a static route on Router 2 to Router 1?
 

sajunky

Honorary Master
Joined
Nov 1, 2010
Messages
13,124
The simplest way, no routing. I assume you are using basic L2 switches (most cheap devices):

Hook switch to switch or to a router (if your router have a switched LAN ports and there is no unused port on the switch). Then manually set both 2PC's and a PC with a shared folder with:

- static IP within each LAN (and outside DHCP range)
- default gateway and DNS respective to each LAN.
- Subnet mask 255.255.0.0 (not an usual 255.255.255.0)

You will be able to ping from two PC's to the shared folder PC and in reverse. Your workgroup settings may need to be reconfigured, I forgotten these things. :)

A second easy option is to use layer 3 switch, it would be easy to setup packet forwarding on the switch. Such devices are expensive.

Using routers is not so easy. Answering your question would require to examine each router for capabilities, available ports and you didn't provide any information for this.
 
Last edited:

OCP

Executive Member
Joined
Jan 23, 2014
Messages
5,305
The simplest way, no routing. I assume you are using basic L2 switches (most cheap devices):

Hook switch to switch or to a router (if your router have a switched LAN ports and there is no unused port on the switch). Then manually set both 2PC's and a PC with a shared folder with:

- static IP within each LAN (and outside DHCP range)
- default gateway respective to each LAN.
- Subnet mask 255.255.0.0 (not an usual 255.255.255.0)

You will be able to ping from two PC's to the shared folder PC and in reverse. Your workgroup settings may need to be reconfigured, I forgotten these things. :)

A second easy option is to use layer 3 switch, it would be easy to setup packet forwarding on the switch. Such devices are expensive.

Using routers is not so easy. Answering your question would require to examine each router for capabilities, available ports and you didn't provide any information for this.
Good suggestion considering you would keep LAN speed at gigabit where as a router would likely create a 100mb/s bottleneck.
 

IceQB

Expert Member
Joined
Jun 10, 2004
Messages
3,122
The simplest way, no routing. I assume you are using basic L2 switches (most cheap devices):

Hook switch to switch or to a router (if your router have a switched LAN ports and there is no unused port on the switch). Then manually set both 2PC's and a PC with a shared folder with:

- static IP within each LAN (and outside DHCP range)
- default gateway and DNS respective to each LAN.
- Subnet mask 255.255.0.0 (not an usual 255.255.255.0)

You will be able to ping from two PC's to the shared folder PC and in reverse. Your workgroup settings may need to be reconfigured, I forgotten these things. :)

A second easy option is to use layer 3 switch, it would be easy to setup packet forwarding on the switch. Such devices are expensive.

Using routers is not so easy. Answering your question would require to examine each router for capabilities, available ports and you didn't provide any information for this.

Network 1:
Zyxel VMG1312 ADSL/Router
DLink DES-1008A Switch
Shared Folder

Network 2:
Netgear DGN2200M Router
Dlink DGS-1210-10 Switch
No Internet (Dont want it available back there)

Sorry for late reply, just got info back from sis.
What she inherited from business she bought.
 

sajunky

Honorary Master
Joined
Nov 1, 2010
Messages
13,124
If you follow my suggestion, all devices on the router 2 LAN will have no Internet access from router 1. Only from router 2.
 

IceQB

Expert Member
Joined
Jun 10, 2004
Messages
3,122
If you follow my suggestion, all devices on the router 2 LAN will have no Internet access from router 1. Only from router 2.

Will run her thru it in the morning & test.
Thanks
 

gregmcc

Honorary Master
Joined
Jun 29, 2006
Messages
25,512
If you only have 6 PC's then why not just put them all on the same network. 192.168.1.0/24.
Connect up Lan1 to Lan2 and remove DHCP from Lan 2
 

sajunky

Honorary Master
Joined
Nov 1, 2010
Messages
13,124
If you only have 6 PC's then why not just put them all on the same network. 192.168.1.0/24.
Connect up Lan1 to Lan2 and remove DHCP from Lan 2
Not all PC's should have Internet access, I gather it from the OP, it is why a two separate subnets.
 

IceQB

Expert Member
Joined
Jun 10, 2004
Messages
3,122
Ok, so from what sajunky proposed. Hope this is correct.

Router 1 (LAN1)
- DHCP Scope 192.168.1.100 - 192.168.1.200
- Default Gateway 192.168.1.1
- Subnet Mask 255.255.0.0
- Internet
- Static IP's 192.168.1.201-210 etc... (Shared Folders)
- Zyxel VMG1312 ADSL/Router
- DLink DES-1008A Switch

Lan Cable from switch/router LAN1 to switch LAN2

Router 2 (LAN2)
- DHCP Scope 192.168.2.100 - 192.168.2.200
- Default Gateway 192.168.2.1
- Subnet Mask 255.255.0.0
- No Internet (not required)
- Static IP's 192.168.2.201-210 etc..
- Netgear DGN2200M Router
- Dlink DGS-1210-10 Switch
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,842
Is the goal specifically just to limit internet access?

If so why not just make one LAN and cut the complexity.

Then either restrict access from the router for those Mac addresses if it allows it. Or statically drop the Gateway on the computers that don’t require internet access.

Much less hassle.

Or just give everyone internet...even simpler.
 

irBosOtter

Expert Member
Joined
Feb 14, 2014
Messages
2,872
Ok, so from what sajunky proposed. Hope this is correct.

Router 1 (LAN1)
- DHCP Scope 192.168.1.100 - 192.168.1.200
- Default Gateway 192.168.1.1
- Subnet Mask 255.255.0.0
- Internet
- Static IP's 192.168.1.201-210 etc... (Shared Folders)
- Zyxel VMG1312 ADSL/Router
- DLink DES-1008A Switch

Lan Cable from switch/router LAN1 to switch LAN2

Router 2 (LAN2)
- DHCP Scope 192.168.2.100 - 192.168.2.200
- Default Gateway 192.168.2.1
- Subnet Mask 255.255.0.0
- No Internet (not required)
- Static IP's 192.168.2.201-210 etc..
- Netgear DGN2200M Router
- Dlink DGS-1210-10 Switch

Or just keep using the /24....

You will need to use the WAN port on one of the routers, switch off NAT and firewall, and then add the static route to the network

You will need to use a WAN port on router two... if it has one... and run that cable either to switch 1/router 1.

Or if you want to do it with the switch ports you don't need a /16

Just use 192.168.1.1/23 which includes IP's from 192.168.1.1-192.168.2.254
Subnet will be 255.255.254.0
 
Last edited:

sajunky

Honorary Master
Joined
Nov 1, 2010
Messages
13,124
Ok, so from what sajunky proposed. Hope this is correct.

Router 1 (LAN1)
- DHCP Scope 192.168.1.100 - 192.168.1.200
- Default Gateway 192.168.1.1
- Subnet Mask 255.255.0.0
- Internet
- Static IP's 192.168.1.201-210 etc... (Shared Folders)
- Zyxel VMG1312 ADSL/Router
- DLink DES-1008A Switch

Lan Cable from switch/router LAN1 to switch LAN2

Router 2 (LAN2)
- DHCP Scope 192.168.2.100 - 192.168.2.200
- Default Gateway 192.168.2.1
- Subnet Mask 255.255.0.0
- No Internet (not required)
- Static IP's 192.168.2.201-210 etc..
- Netgear DGN2200M Router
- Dlink DGS-1210-10 Switch
Nope. It goes totally out of control. I didn't suggest changing anything on the routers. Leave routers as is, especially netmask should be 255.255.255.0. It gives you two separate LANs for DHCP clients as it was before.

My proposed solution is only changing network adapter properties on 3 PC's (one PC with shared folders on LAN 1 and two PC's on LAN 2 that should access PC with shared folder on LAN 1).

BTW, a previous post from irBosOtter is correct, but it is a routing solution. Network professionals would do that way as everything is done on routers - not user devices. I don't think you will be undertanding how it works, so keep it simple.
 
Last edited:

IceQB

Expert Member
Joined
Jun 10, 2004
Messages
3,122
Or just keep using the /24....

You will need to use the WAN port on one of the routers, switch off NAT and firewall, and then add the static route to the network

You will need to use a WAN port on router two... if it has one... and run that cable either to switch 1/router 1.

Or if you want to do it with the switch ports you don't need a /16

Just use 192.168.1.1/23 which includes IP's from 192.168.1.1-192.168.2.254
Subnet will be 255.255.254.0

Thanks, issue sorted
 
Top