Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Confusing home network question: 2 WAN connections, one LAN?
New Posts  All Forums:Forum Nav:

Confusing home network question: 2 WAN connections, one LAN?

post #1 of 7
Thread Starter 
I'm having a bit of a difficult time trying to get my home network set up the way I want it. Hopefully, someone here can help me figure it out. First, let me start by saying that yes, this may seem like a silly setup, please don't question the why of it.

My desktop has it's own dedicated WAN connection, a cablemodem that it's hooked directly to. The other computers in my house, 2 desktops, a media center, and my laptop, are all ran through a DD-WRT router on a second WAN connection, a DSL modem.

My desktop has dual NICs and a wireless card, and I also have a spare DD-WRT router.

What I would like to do is keep my desktop on it's own internet connection, but somehow connect it to the same LAN as the rest of the house, allowing me to share files and such. Initially, I tried just having my pc connect wirelessly to the DSL's lan, but despite the fact that I had the cablemodem's connection prioritized, programs would randomly use the DSL's internet.

I tried using the access restrictions in DD-WRT to block internet on my desktop's MAC, which seemed closer to what I wanted, but still didn't quite work out. DD-WRT apparently only blocks traffic out, it doesn't block dns requests, so windows still thought there was internet available on that connection, and would still attempt to use it (even though the cablemodem's connection was higher priority).

I then unhooked the cablemodem's connection, and removed the access restrictions. I manually set a bogus dns server for the wireless on my desktop, which managed to block my internet and still allow my shares to work. However, when I plugged the cablemodem's connection back in, the system used it for dns only, and started using the dsl again.

I'm pretty much out of ideas here. As I mentioned, I have a spare DD-WRT router, what I'd love is if there was a way to set it as a client to the dsl's router, blocking internet on any device connected to the second dd-wrt router but still sharing the LAN. I've toyed with it a bit, but I can't seem to make it work quite like what I need. Does anyone have any suggestions?

(edit)
Of course, as soon as I decide to make a post about it, things start working right. I used the second dd-wrt router as a wireless client bridge, and manually set an ip in the proper range for that LAN on my second NIC. Windows says it has no internet and is an unidentified network, so it's using my WAN through the cablemodem like it should, and my shares are working properly. That's a fairly convoluted setup for what I wanted, but hey, I'll go with it for now as long as it works...
Edited by bakageta - 3/28/11 at 2:27am
Primary System
(18 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 Gigabyte P55A-UD4P 2x EVGA GTX460 2x 4gb Corsair Vengeance 
Hard DriveCoolingCoolingCooling
Samsung F4 XSPC Rasa cpu block 2x XSPC Razor 460 Black Ice GTX 360 
CoolingOSMonitorKeyboard
MCP-350 Windows 7 64bit Samsung SyncMaster SA300 23" Filco Majestouch "Otaku" Tenkeyless 
PowerCaseMouseAudio
Corsair TX850W v1 NZXT Whisper Logitech Performance MX Altec Lansing ATP3 
  hide details  
Reply
Primary System
(18 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 Gigabyte P55A-UD4P 2x EVGA GTX460 2x 4gb Corsair Vengeance 
Hard DriveCoolingCoolingCooling
Samsung F4 XSPC Rasa cpu block 2x XSPC Razor 460 Black Ice GTX 360 
CoolingOSMonitorKeyboard
MCP-350 Windows 7 64bit Samsung SyncMaster SA300 23" Filco Majestouch "Otaku" Tenkeyless 
PowerCaseMouseAudio
Corsair TX850W v1 NZXT Whisper Logitech Performance MX Altec Lansing ATP3 
  hide details  
Reply
post #2 of 7
The other thing you could try would be to manually configure ip settings on the LAN side for the desktop and not put DNS or a default gateway that should allow the computer to talk to other computers on the LAN but will not let it go out to the internet.
post #3 of 7
You know you can set a static IP address on your wireless card without a default gateway and authenticate to the Access Point and everything will work as you want, right? Assuming both networks aren't using the same subnet. But I'm glad you figured out a way to make it work..
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
post #4 of 7
you have 2 NICs and a wireless card. you can connect wirelessly to the router that has everything media-related to it so you can share files. all you need to do is statically set your ip address to be on the same network as that other subnet(same network as your laptop, media server etc.) you could also plug in directly to the media router since you have 2 NICs.
Zed
(13 items)
 
  
CPUMotherboardGraphicsRAM
9950 Phenom 125W @ 3.0 @ 1.36v Abit AX78 HD4870 2x2GB Patriot PC2-8500 @1066mhz 
Hard DriveOSCase
Seagate 500GB 7200RPM Arch x86_64 Thermaltake Armour 
  hide details  
Reply
Zed
(13 items)
 
  
CPUMotherboardGraphicsRAM
9950 Phenom 125W @ 3.0 @ 1.36v Abit AX78 HD4870 2x2GB Patriot PC2-8500 @1066mhz 
Hard DriveOSCase
Seagate 500GB 7200RPM Arch x86_64 Thermaltake Armour 
  hide details  
Reply
post #5 of 7
We'll call your PC LAN1 and your other devices LAN2.

If your PC has 2 nics all you need to do is plug the LAN1 router and the LAN2 router into separate nics.

Alternatively you could use your wireless nic to connect to LAN2's router.

~Devoid~

Edit: Sorry I missed the whole purpose of your post. I also missed the part that said you solved your problem. Dunno how you managed that haha, but whatever works right?
Edited by Devoid - 3/28/11 at 2:29pm
The Shield
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q9450 @ 2.66GHz Gigabyte GA-EP45-DS3R HIS Radeon 4870 G.SKILL 2x2GB DDR2 800 
Hard DriveOSMonitorKeyboard
Hitachi 500GB Windows 7 64-bit / Ubuntu 10.10 64-bit Samsung 21.6" LCD Logitech K200 
PowerCaseMouse
Cooler Master 650w Raidmax Sagitta Logitech M500 
  hide details  
Reply
The Shield
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core 2 Quad Q9450 @ 2.66GHz Gigabyte GA-EP45-DS3R HIS Radeon 4870 G.SKILL 2x2GB DDR2 800 
Hard DriveOSMonitorKeyboard
Hitachi 500GB Windows 7 64-bit / Ubuntu 10.10 64-bit Samsung 21.6" LCD Logitech K200 
PowerCaseMouse
Cooler Master 650w Raidmax Sagitta Logitech M500 
  hide details  
Reply
post #6 of 7
Thread Starter 
Quote:
Originally Posted by Devoid;12905786 
We'll call your PC LAN1 and your other devices LAN2.

If your PC has 2 nics all you need to do is plug the LAN1 router and the LAN2 router into separate nics.

Alternatively you could use your wireless nic to connect to LAN2's router.

~Devoid~

Edit: Sorry I missed the whole purpose of your post. I also missed the part that said you solved your problem. Dunno how you managed that haha, but whatever works right?

Hehe, yeah I'm glad it's currently working, though a little confused why it acted the way it did at times... If I let my pc retrieve an IP from LAN2 automatically and then set the dns severs to null, the pc will use the DNS from LAN1 and still try to use the internet on LAN2. If I manually set an IP on LAN2 with no dns servers, then it works like I'd expect, internet only over LAN1, and LAN2 still connected for media sharing.
Quote:
Originally Posted by scottsee;12905607 
You know you can set a static IP address on your wireless card without a default gateway and authenticate to the Access Point and everything will work as you want, right? Assuming both networks aren't using the same subnet. But I'm glad you figured out a way to make it work..

That's essentially what I ended up doing, I just did it through the spare ddwrt router instead of the wireless currently in my pc, because I'll likely be removing this wireless card among other reasons. I'm just confused why I couldn't let it it pull an IP and have it work, though. When I let it pull an IP from DHCP, then forced no dns servers, it still insisted that there was internet there, and would do anything it could to use it. When I manually set the IP (to the same IP I received from DHCP) with no dns servers, it suddenly works like I want.
Edited by bakageta - 3/28/11 at 3:01pm
Primary System
(18 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 Gigabyte P55A-UD4P 2x EVGA GTX460 2x 4gb Corsair Vengeance 
Hard DriveCoolingCoolingCooling
Samsung F4 XSPC Rasa cpu block 2x XSPC Razor 460 Black Ice GTX 360 
CoolingOSMonitorKeyboard
MCP-350 Windows 7 64bit Samsung SyncMaster SA300 23" Filco Majestouch "Otaku" Tenkeyless 
PowerCaseMouseAudio
Corsair TX850W v1 NZXT Whisper Logitech Performance MX Altec Lansing ATP3 
  hide details  
Reply
Primary System
(18 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 Gigabyte P55A-UD4P 2x EVGA GTX460 2x 4gb Corsair Vengeance 
Hard DriveCoolingCoolingCooling
Samsung F4 XSPC Rasa cpu block 2x XSPC Razor 460 Black Ice GTX 360 
CoolingOSMonitorKeyboard
MCP-350 Windows 7 64bit Samsung SyncMaster SA300 23" Filco Majestouch "Otaku" Tenkeyless 
PowerCaseMouseAudio
Corsair TX850W v1 NZXT Whisper Logitech Performance MX Altec Lansing ATP3 
  hide details  
Reply
post #7 of 7
The reason is because the router you're connecting to via Wifi is supplying your machine with a additional gateway via the DHCP. It's not really a problem, all you have to do is change metric in the windows routing tables to use the default route on the interface you like (wired or wireless), wired in this case. I forget how to do it graphically. But it's part of the advanced features in the network properties. And of course using the route command in the CLI.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Cisco Cisco Cisco Cisco 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Confusing home network question: 2 WAN connections, one LAN?