Preface:
==============================================================================

   This is just a basic setup. I don't go into Security, drawbacks, power, signal strenth etc... 
   i leave that as an exercise for the reader. 
   
   I only tested this setup with the hardware outlined here. The firmware in these devices are 
   factory. The only thing i did was update them to the latest revisions. 

 - nocon
   07/15/2007



Hardware:
================================================================================
Location A  Hardware:
- Netgear Wireless Router (WGR614 v6) Firmware: V2.0.13_1.0.13NA

Location B Hardware: 
- D-Link Access Point (DWL-2100AP) Firmware: V 2.10
- Linksys Wireless G Router (WRT54GS v7 - SN:CGNBxxxxxxxx) Firmware: v7.50.2, Jun. 7, 2007



Setting the whole thing up:
=================================================================================

Assuming the Wifi Router you wish to connect to is already set up and wifi/lan connectivity is working 
(Location A)

Step 1: 
----------
  - Configure the D-Link 2100AP as described below. You'll need to connect to the LAN port Cat5 to do this. 
    Default IP is: 192.168.0.50  
  - Verify that AP client mode is working properly. You can do this by 
    telneting to the AP and using the ping command.

[....]

C:\Documents and Settings\Desktop>telnet 192.168.1.199

D-Link Access Point login: admin
Password:

Wireless Driver Rev 4.0.0.167
D-Link Access Point wlan1 -> get apmode
AP Mode: AP Client
Currnet Operating AP Mode: AP Client
D-Link Access Point wlan1 -> ping www.yahoo.com
PING www.yahoo.com (209.191.93.52): 56 data bytes
64 bytes from 209.191.93.52: icmp_seq=0. time=16. ms
64 bytes from 209.191.93.52: icmp_seq=1. time=16. ms
64 bytes from 209.191.93.52: icmp_seq=2. time=16. ms
----www.yahoo.com PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms)  min/avg/max = 16/16/16
D-Link Access Point wlan1 ->

[....]


Step 2: 
------------
   - Configure the Linksys Wifi Router as described below.
     You can do this either wirelessly or through one of the LAN ports. (I prefer LAN port)
   - Verify that you can connect to the router through wifi and wired and are getting the correct 
     assigned IP address from the dhcp pool etc...


Step 3: 
-------------
   - Connect the D-Link AP to the Linksys router's WAN port.

      DLink LAN <----> Linksys WAN
    
   - On the linksys go to the Status page and Release/Renew DHCP Lease. This should pull an IP from the remote 
     wifi router (I noticed that sometimes the info takes some time to display) you should see something like this...

[......]


Internet
	  	  	 

Configuration Type
	  	  	Login Type: 	Automatic Configuration - DHCP 	  	 
  	  	  	IP Address: 	192.168.1.7 	  	 
  		  	Subnet Mask: 	255.255.255.0 	  	
  		  	Default Gateway: 	192.168.1.1 	  	
  	  	  	DNS 1: 	192.168.1.1 	  	 
  	  	  	DNS 2: 		  	 
  	  	  	DNS 3: 		  	 
  	  	  	MTU: 	1500

[.....]


Step 4: 
-------------

   - That's it. Test your setup, internet connectivity, etc...   
     You should now be able to connect wirelessly OR wired to the Linksys and have connectivity to the internet and 
     the other nodes on both networks. 
   
[...]

C:\Documents and Settings\Desktop>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.10.10.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.240
        Default Gateway . . . . . . . . . : 10.10.10.98

C:\Documents and Settings\Desktop>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=9ms TTL=63
Reply from 192.168.1.1: bytes=32 time=15ms TTL=63

Ping statistics for 192.168.1.1:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 9ms, Maximum = 15ms, Average = 12ms
Control-C
^C
C:\Documents and Settings\Desktop>ping www.yahoo.com

Pinging www.yahoo-ht3.akadns.net [209.191.93.52] with 32 bytes of data:

Reply from 209.191.93.52: bytes=32 time=19ms TTL=51
Reply from 209.191.93.52: bytes=32 time=22ms TTL=51
Reply from 209.191.93.52: bytes=32 time=24ms TTL=51
Reply from 209.191.93.52: bytes=32 time=24ms TTL=51

Ping statistics for 209.191.93.52:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 19ms, Maximum = 24ms, Average = 22ms

C:\Documents and Settings\Desktop>

[.......]



Summary:
=======================================================================================================================

Setup:


Netgear Wireless Router (WGR614 v6) Setup:
------------------------------------------
1: Basic Settings
   - Internet IP Address: Get Dynamically From ISP
   - Domain Name Server (DNS) Address: Get Automatically From ISP

2: Wireless Settings
   - Name (SSID): FOOOWiFI
   - Channel: 5
   - Mode: g and b

3: Security Options
   - WPA-PSK (Wi-Fi Protected Access Pre-Shared Key)
   - Security Encryption (WPA-PSK) (Passphrase: blalalala)

4: LAN TCP/IP Setup
   - IP Address: 192.168.1.1
   - IP Subnet Mask: 255.255.255.0
   - RIP Direction: None
   - RIP Version: Disabled
   - Use Router as DHCP Server: Checked/Enabled
   - Starting IP Address: 192.168.1.2
   - Ending IP Address: 192.168.1.100


D-Link 2100AP Setup:
---------------------------
1: Home / LAN Settings /
   - Get IP From: Static Manual
   - IP Address: 192.168.1.199
   - Subnet Mask: 255.255.255.0
   - Default Gatway: 192.168.1.1

2: Wireless
   - Mode: AP Client
   - Root AP MAC Address: (MAC Addr of Netgear Wifi Router)
   - SSID: (SSID of  Netgear Wifi Router, FOOOWiFI)
   - Authentication: (Same as Netgear Wifi Router, In my case WPA-PSK)
   - Cipher Type: (Same as Netgear Wifi Router, In my case TKIP)
   - PassPhrase: (Same as Netgear, blalalala) 
   - Super G Mode: (In my case Disabled)

3: DHCP Server
   - All Settings Completely Disabled


Linksys (WRT54GS) Router Setup: 
-------------------------------------
1: Basic Setup
   - Local IP Address: 10.10.10.98
   - Subnet Mask: 255.255.255.240

2: Network Address 
   - Server Settings (DHCP): Enabled
   
3: MAC Address Clone
   - MAC Clone: Enable 
   - User Defined Entry: (All i did was Make one up making sure it wasn't on either the network/interface)
                          * This is what got things working for me *