Link to home
Start Free TrialLog in
Avatar of Hades
Hades

asked on

Networking 2 routers at home

Hi there!

I have a wired router (D-Link DI-704 with LAN IP: 192.168.1.1) with 4 Network ports and 1 WAN port. It is currently connected to my cable modem via its WAN port, and has DHCP enabled (for 7 IP addresses: 192.168.1.101 - 192.168.1.107). I have 4 PCs connected to its 4 Network ports.

I recently purchased a wireless router (Linksys WRT54GS) to allow me to use my laptop wirelessly; it too has 4 Network ports and 1 WAN port. (I know I should have just gotten a wireless access point instead, but too late now.)

The problem is in connecting this wireless router to my wired router, while allowing Internet connectivity and dynamic IP allocation for PCs connected to the wireless router.

After searching for a solution all over the place, this is as close as I have set it up:

1. Disconnected 1 PC from 1 Network port of the wired router (192.168.1.1).
2. Connected the same PC to the wireless router, and setup the wireless router's LAN IP to 192.168.1.2 (i.e. the same subnet but outside the range of the dynamically allocated IP addresses from the first router).
3. Disabled DHCP server and RIP on the wireless router, and set the Operating Mode of the wireless router to "Router" instead of "Gateway".
4. Connected the wired router the wireless router using a cable from the wired router's Network port to the wireless router's Network port (i.e. I did not use the WAN port on the wireless router).

Using this setup, the 3 PCs connected to my wired router (192.168.1.1) obtain IP addresses dynamically without any problems as expected. However, any PCs connected (physically and wirelessly) to my wireless router (192.168.1.2) are unable to pick up an IP address dynamically. Thus for each PC connected to my wireless router, I have to set a static IP address (e.g. 192.168.1.201), Gateway as 192.168.1.1, and DNS servers based on my ISP.

Enabling the DHCP server on my wireless router to assign addresses outside of 192.168.1.101-107 solves this problem (I think this is bad since I shouldn't have two routers assigning IP addresses on the same network), but then PCs connected to the wireless router can no longer access the Internet.

So, is there ANY way for PCs connected to my wireless router (192.168.1.2) to obtain an IP address dynamically (most likely from my wired router - 192.168.1.1) and still connect to the Internet?

Thanks!!!
ASKER CERTIFIED SOLUTION
Avatar of aindelicato
aindelicato

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of XSINUX
XSINUX


Forgive my Ignorance, but would'nt you try connecting the cable modem on the WAN Port of the Wireless Linksys WRT54GS and the other 4 Computers on the 4 LAN ports of the Linksys WRT54GS and why not connect the Laptop wirelessly? I thought thats what you need.

I am not sure if the WRT54GS and is just a Device to connect the Locally Networked PCs to a Wireless Network. Is that so ?

User Guide : ftp://ftp.linksys.com/pdf/wrt54gs_ug.pdf

Some clarifications....

> 1. Disconnected 1 PC from 1 Network port of the wired router (192.168.1.1). < Is it 192.168.1.101 or 192.168.1.1 :) Just Confused.

Avatar of Hades

ASKER

With respect to this:
WIRELESS ROUTER - 192.168.1.2 (assign static info, use same subnet, DNS, gateway = 192.168.1.1)

The wireless router has two sections for configuring its IP: Internet Setup and Network Setup

Internet Setup allows me to specify the following: Internet IP Address, Subnet Mask, Gateway, Static DNS 1-3
Network Setup allows me to specify the following: Local IP Address, Subnet Mask

My initial setup was with Internet Setup using DHCP (I figured this was of no consequence since I did not use the WAN Port), and the Network Setup using 192.168.1.2/255.255.255.0.

What if anything do I need to change in these settings? I've already tried changing Internet Setup as follows while keeping Network Setup the same with no luck:
Internet IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1

Thanks again!
Avatar of Hades

ASKER

XSINUX>> Yes, I understand what you're saying, except that I'm thinking of physically connecting a couple more PCs soon.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hades,

I believe you leave it to STATIC and leave the values at 0.0.0.0

If you dont get a signal from LAN port to LAN port, then you must use a cross-over cable to create an uplink.
Avatar of Hades

ASKER

Okay, I finally understood what was happening.

I realized what "aindelicato" was talking about when trying it the way "XSINUX" suggested. IP addresses were being assigned to Linksys's PCs after connecting to Linksys with the WAN port and allowing it to pick up an IP address dynamically from D-Link, but there was no Internet connectivity for Linksys's PCs. I then switched from the WAN port to the normal port, and everything was working fine! That's when the bulb went off on. :)

This is my final working setup:

1. 3 PCs connected to D-Link (192.168.1.1).
2. 1 PC connected to Linksys (192.168.1.2).
3. Linksys's Internet Setup was set as follows (using Static IP configuration): Internet IP Address - 192.168.1.3, Subnet Mask - 255.255.255.0, Gateway - 199.199.1.1, Static DNS (from my ISP)
4. Connected D-Link to Linksys via their normal Network ports (NOT Linksys's WAN port).

I'm splitting the points.
Avatar of Hades

ASKER

Thanks guys!!! :)
Avatar of Hades

ASKER

Oops, just realized I made a mistake:

Gateway - 192.168.1.1