Networking 2 routers at home
Posted on 2004-10-02
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?