Networking - how to connect PC to two subnets?
Discussion
Looking for some idiot-proof
suggestions here please...
I have a Draytek Vigor modem/router bringing broadband into my house (192.168.1.1) and providing DHCP.
Plugged into its ethernet ports are a Qnap NAS (192.168.1.2) and the hub of my Google WiFi network (192.168.1.10).
My workstation is plugged into the Google WiFi, which has assigned it an IP of 192.168.86.171.
My workstation used to be plugged into the Vigor and all was fine, except that I couldn't print to my wifi printer and I couldn't browse the workstation's shared folders from my phones/tablets. So I moved the workstation's ethernet cable to the Google WiFi hub. I've just discovered that my weekly backup task (from PC to NAS) has been failing ever since I made this change. Probably no surprise there since the NAS and workstation are now on different subnets.
I'd like to keep the workstation's shared folders browseable from devices connected through the wifi, continue to print from the workstation to the wifi printer, but also be able to browse the NAS's shared folders from the workstation.
Is this possible with my existing hardware? I can't plug the NAS into the Google WiFi hub too because there are now no spare ports, and I want to access the NAS remotely through the VPN generated by the Vigor.
Can the Vigor provide some sort of routing from its own subnet to the Google subnet? Or is the equivalent possible through the somewhat restricted Google WiFi config? Or can Windows 10 be configured to access two subnets with one ethernet port somehow?
suggestions here please...I have a Draytek Vigor modem/router bringing broadband into my house (192.168.1.1) and providing DHCP.
Plugged into its ethernet ports are a Qnap NAS (192.168.1.2) and the hub of my Google WiFi network (192.168.1.10).
My workstation is plugged into the Google WiFi, which has assigned it an IP of 192.168.86.171.
My workstation used to be plugged into the Vigor and all was fine, except that I couldn't print to my wifi printer and I couldn't browse the workstation's shared folders from my phones/tablets. So I moved the workstation's ethernet cable to the Google WiFi hub. I've just discovered that my weekly backup task (from PC to NAS) has been failing ever since I made this change. Probably no surprise there since the NAS and workstation are now on different subnets.
I'd like to keep the workstation's shared folders browseable from devices connected through the wifi, continue to print from the workstation to the wifi printer, but also be able to browse the NAS's shared folders from the workstation.
Is this possible with my existing hardware? I can't plug the NAS into the Google WiFi hub too because there are now no spare ports, and I want to access the NAS remotely through the VPN generated by the Vigor.
Can the Vigor provide some sort of routing from its own subnet to the Google subnet? Or is the equivalent possible through the somewhat restricted Google WiFi config? Or can Windows 10 be configured to access two subnets with one ethernet port somehow?
Google Wifi network? What hardware is this running?
It looks to me if it is set up as a DHCP server itself, which it probably shouldn't be (you don't want multiple DHCP servers on the same network as this kind of issue can crop up). It should have the DHCP service disabled on it, and have its gateway set to the Draytek's address.
DHCP clients should then get an IP in the scope the Draytek is serving, which should mean any devices will be on the same subnet, solving your issue.
ETA - I've had a look at the On Hub google thing, and it looks like it has to be set up specifically in order to allow its features to function, so the above may not be the correct solution.
It may be a case of connecting the google on hub to the ISP connection, connect the Draytek to it, disable DHCP on the Draytek and allow everything to get an IP from the google hub. If you need more ethernet ports, any cheap 8-port switch will do the job.
They have this walkthrough on enabling bridge mode (which seems to say "you're on your own for ISP-supplied kit, but if you want to turn it on the google hub, you'll lose all of this functionality...) https://support.google.com/wifi/answer/6240987?hl=...
It looks to me if it is set up as a DHCP server itself, which it probably shouldn't be (you don't want multiple DHCP servers on the same network as this kind of issue can crop up). It should have the DHCP service disabled on it, and have its gateway set to the Draytek's address.
DHCP clients should then get an IP in the scope the Draytek is serving, which should mean any devices will be on the same subnet, solving your issue.
ETA - I've had a look at the On Hub google thing, and it looks like it has to be set up specifically in order to allow its features to function, so the above may not be the correct solution.
It may be a case of connecting the google on hub to the ISP connection, connect the Draytek to it, disable DHCP on the Draytek and allow everything to get an IP from the google hub. If you need more ethernet ports, any cheap 8-port switch will do the job.
They have this walkthrough on enabling bridge mode (which seems to say "you're on your own for ISP-supplied kit, but if you want to turn it on the google hub, you'll lose all of this functionality...) https://support.google.com/wifi/answer/6240987?hl=...
Edited by Mr Happy on Sunday 25th March 22:37
Thanks Mr Happy.
I have Google WiFi set up with three APs in a mesh, and from your link it seems that the main hub for the mesh can't be in bridge mode. I think when I've explored this before I've discovered major limitations setting up bespoke network settings within the Google WiFi interface, but the Vigor is infinitely configurable.
Trouble is, I've no idea what I need to do!
I have Google WiFi set up with three APs in a mesh, and from your link it seems that the main hub for the mesh can't be in bridge mode. I think when I've explored this before I've discovered major limitations setting up bespoke network settings within the Google WiFi interface, but the Vigor is infinitely configurable.
Trouble is, I've no idea what I need to do!
Bikerjon said:
Could you plug your workstation into the Draytek like before and then get either a second network adaptor or a USB WiFi adaptor for connection to the Google mesh?
If that's the only option, maybe.How do large company networks function to achieve the same sort of thing? What hardware do they use to enable devices in one subnet to browse Windows shares in other subnets? Or is it down to some clever MS Server trickery?
threadlock said:
Or can Windows 10 be configured to access two subnets with one ethernet port somehow?
Yes, but I'm not sure that's the best approach, You have to manually assign addresses and can't use DHCP, but see here. Basically, add two IP addresses for your PC, one on each subnet.
I'd look to have everything on a single subnet. Which in turn, means a single DHCP server.
threadlock said:
If that's the only option, maybe.
How do large company networks function to achieve the same sort of thing? What hardware do they use to enable devices in one subnet to browse Windows shares in other subnets? Or is it down to some clever MS Server trickery?
VLAN's mostly I think and various other network stuff that's beyond me! Your situation is different as you're essentially using two routers for one internet connection - this is called double NAT and never ideal. I must admit I don't know much about Google Wi-Fi but I'd be surprised if it didn't have some form of "bridge mode". If not then you could remove the Draytek and replace it with a basic modem and use the Google equipment to manage your internet connection. How do large company networks function to achieve the same sort of thing? What hardware do they use to enable devices in one subnet to browse Windows shares in other subnets? Or is it down to some clever MS Server trickery?
threadlock said:
How do large company networks function to achieve the same sort of thing? What hardware do they use to enable devices in one subnet to browse Windows shares in other subnets? Or is it down to some clever MS Server trickery?
Fully managed networking infrastructure, generally!Switches connecting many local computers together, which then connect to routers which handle the traffic in between the different networks.
The same way your system works at the moment, just scaled up - really. Devices connect to a switch, the switch is connected to (in this case shares the same box as) the router, this then talks upstream to another router (at the ISP) and from there on, out onto the internet via more and more routers (which is - in essence, the internet)
rsbmw said:
I'm sure Google wifi can work in bridged mode so the clients use the DHCP from the router.
Yeshttps://support.google.com/wifi/answer/6240987#whe...
edit
actually no, you cannot if using multiple google wifi points
threadlock said:
Can the Vigor provide some sort of routing from its own subnet to the Google subnet?
That’s what I’d try yes, I wonder if the Vigor doesn’t know how to get back to the Google WiFi subnet.If so, you could try adding a route for the WiFi network (192.168.86.0/24?) via the google WiFi box (192.168.1.10).
Just whether or not the Vigor can do that...
This Vigor kb might help - https://www.draytek.co.uk/archive/kb_vigor_staticr...
ging84 said:
rsbmw said:
I'm sure Google wifi can work in bridged mode so the clients use the DHCP from the router.
Yeshttps://support.google.com/wifi/answer/6240987#whe...
edit
actually no, you cannot if using multiple google wifi points
As far a the Google Wifi is concerned the Vigor is the 'WAN' - it's job is to provide an internet connection and nothing plugged into it is a part of your network.
You need to get a basic switch, unplug your workstation from the 'LAN' connection in your Google Wifi and plug in the switch, then plug the workstation into the switch and plug everything that was in the Vigor into the switch (leaving just the Google Wifi connected to the Vigor).
At this point everything is on the same network - the Google Wifi one and should work. The only issue is your internet connection is 'double NAT' which may cause problems as you connect to your home network from the internet - most people don't do this and will be fine.
You need to get a basic switch, unplug your workstation from the 'LAN' connection in your Google Wifi and plug in the switch, then plug the workstation into the switch and plug everything that was in the Vigor into the switch (leaving just the Google Wifi connected to the Vigor).
At this point everything is on the same network - the Google Wifi one and should work. The only issue is your internet connection is 'double NAT' which may cause problems as you connect to your home network from the internet - most people don't do this and will be fine.
Just looking into this. Thanks again for all the replies. Appreciate the suggestions.
I wish I understood how networks work. It must be possible to do this, given the flexibility of the Vigor firmware (despite the limitations of the Google WiFi), but I'm not sure what I'm doing! I'll post again with an update when I've got one.
I wish I understood how networks work. It must be possible to do this, given the flexibility of the Vigor firmware (despite the limitations of the Google WiFi), but I'm not sure what I'm doing! I'll post again with an update when I've got one.
threadlock said:
Just looking into this. Thanks again for all the replies. Appreciate the suggestions.
I wish I understood how networks work. It must be possible to do this, given the flexibility of the Vigor firmware (despite the limitations of the Google WiFi), but I'm not sure what I'm doing! I'll post again with an update when I've got one.
The issue is that whilst the laptop knows how to route to the 192.168.1.0/24 network, via it's gateway (the Google WiFi), the NAS doesn't know how to route traffic back. A static route on the vigor pointing 192.168.86.0/24 via 192.168.1.10 (the Google WiFi router IP on that network) would sort it, assuming the Google WiFi will route traffic in that direction - it may not.I wish I understood how networks work. It must be possible to do this, given the flexibility of the Vigor firmware (despite the limitations of the Google WiFi), but I'm not sure what I'm doing! I'll post again with an update when I've got one.
Alternatives are to plug a switch into the Google Wifi and hang your LAN off that, so everything is in 192.168.86.0/24, or running the Google WiFi in bridged mode so all the clients get DHCP from the Vigor and stay in the 192.168.1.0/24 network.
I expect you can't simply set your NAS to a static in the 192.168.86.0/24 network as presumably the Google WiFi uses VLANs to segregate its' clients.
I'm going to post some screenshots of the various config pages in the Vigor and the Google. If I can try a set-up that looks to experts like it should work but which doesn't, then I know it's a limitation of the hardware and I'll go down the switch route and let Google WiFi run everything. (I think I've got a spare switch somewhere.) But I'm worried that I'll then not be able to access any of my network resources remotely through the Vigor VPN I set up to allow me to browse the NAS while I'm out. We'll see.
threadlock said:
<snip>
I have a Draytek Vigor modem/router bringing broadband into my house (192.168.1.1) and providing DHCP.
Plugged into its ethernet ports are a Qnap NAS (192.168.1.2) and the hub of my Google WiFi network (192.168.1.10).
My workstation is plugged into the Google WiFi, which has assigned it an IP of 192.168.86.171.
<snip>
I have a Draytek Vigor modem/router bringing broadband into my house (192.168.1.1) and providing DHCP.
Plugged into its ethernet ports are a Qnap NAS (192.168.1.2) and the hub of my Google WiFi network (192.168.1.10).
My workstation is plugged into the Google WiFi, which has assigned it an IP of 192.168.86.171.
<snip>
On the Vigor (192.168.1.1) add a route to the Google network 192.168.86.0/24 VIA 192.168.1.10
That should do the trick.
There should be a configuration page to adds these routes on each device.
EDIT I got this wrong, due to not reading the numbers correctly - I read 192.168.1.10 as 192.168.86.10 - now idea how...
Edited by TonyRPH on Friday 30th March 10:11
Edited by TonyRPH on Friday 30th March 14:15
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



