Question Locked

Dlink router to router for internet connection

0 helpful
22 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

The desired connection is like this:
Desktop<--->Wireless Router A<----> Wireless Router B<---->Internet

**Router A is D-Link Wireless Router DIR-300**
**Router B is D-Link Wireless G ADSL2+ Router (DSL-2640B)**

My desktop do not have a LAN cable long enough for direct connection to Router B and no wireless adapter too. I wish to make use of the extra router (ie Router A) to make another wireless connection to Router B for internet surfing.

Please help me with a step by step guide on what to configure. Thank you.

22 replies

by 93961

AFAIK Not possible.
You will have to buy Wireless Network Adapter preferably USB.

by cg it

assign a static IP address to the Wireless router WAN port that is on the router B LAN segment.

Assign different subnet on wirelress router LAN than router B.

DNS for both routers is your ISP DNS servers.

might consider enabling RIPv2 on both routers so they learn each other's routing tables.

by robo_dev

the only tricky part is if you need to get from one network to the other, you need to have the correct firewall rules so the ports you need are open.

You can just do DNS forwarding through the two routers. The only thing that this could break would be an IPSEC VPN, but everything else would work just fine.

From a routing standpoint, you really don't need to do anything, since there is only one possible route.

I prefer to setup a DHCP reservation in one router for the other's IP address versus static IP, since it's less stuff to type.

by alex737ty

i mean like a step-by-step guide for beginner..if possible..i have been searching all around internet for guidelines, but all the configurations don't match my routers thus I couldn't proceed further..

Thank you.

by cg it

Router B is your first router and it's WAN port has your ISP configuration. It's LAN port has a private addressing. Not sure what Class C Dlink uses but most popular is 192.168.1.1-254 as the subnet [where 192.168.1.1 is the routers address].

for the wireless Dlink, you assign the WAN port with an address on the router B network. such as 192.168.1.2 255.255.255.0 subnet mask. the default gateway is router B address, 192.168.1.1 and DNS servers are your ISP DNS servers. plug an ethernet cable into the WAN port of the wireless router into the lan port of Router B.

For the wirless router, set the LAN address of the router as 192.168.2.1 255.255.255.0

all computers connected to it are addresses as 192.168.2.2-254 255.255.255.0

DNS servers are ISP DNS servers.

this allows internet access from the 192.168.2.X subnet through the router B subnet to the internet.

by robo_dev

I've been working with networks for more than 25 years, so I don't know where to begin.

First of all, the best advice is not to daisy-chain routers like this, as it slows down your connection, creates certain problems, and can be a pain to configure.

If you need to extend the network, just use an ethernet switch, as it is much, much simpler.

Alright, here are some pointers.

First, consider how the router connects your PCs to your ISP.

The router WAN interface uses automatically granted values for DNS address, IP address, subnet mask, and default gateway. This allows it to connect to the 'upstream router' at your Internet Service Provider.

The two things your router does for a PC connected to it are act as a firewall, and provide NAT (Network Address Translation). These two things provide some security, and allow your home network to use as many IP addresses as you like, typically in the 192.168.x.x range.

Just like the way the router attaches to the ISP, your PC gets DNS and DHCP services from the router, so it connects fairly easily.

Now if you plug a router into a port on your router, and it is configured to use DHCP, it should just connect and work. For all practical purposes, the second router thinks your primary router is the ISP, and it should just work. In this case you configure your second router to just use 'Ethernet' as it's connection type (not PPPoE), and plug the wan port of the second router into a LAN port on the first router.

by tobif

I'd install dd-wrt on the DIR-300 and configure it router and/or bridge mode.

by alex737ty

the technical terms just overwhelmed me after I read the guidelines and precautionary steps..

by tobif

Installing DD-WRT is almost as easy as upgrading the router firmware.

The quickest way to filter the information is to head here:
http://dd-wrt.com/site/support/router-database
And search for "dir300"

You'll get links to the specific files and instructions you need.

Next, get acquainted with DD-WRT having its WAN port connected to a LAN port on your other router.

After that browse through the two pages I linked to in my post in the other subthread, to get a feeling for the terminology needed. While reading those, you can skip the installation part (since that'll be done already) and also look around in your routers web-interface so you can compare it to the instructions.

Oh: And when you get it working, let us know here...

by alex737ty

gonna try it in a while and let you know the result~ :) thank you very much for the replies!

and thank you to the others too! :)

by alex737ty

i went to the link you gave me regarding the router database. Dir-300 is Revision A1 as written.

however when I clicked on the link to DD-WRT Wiki Dir-300, it says it's for Revision A (not A1)..so can I still follow its instructions?

by tobif

A1 is the same. (Worked fine for me)

by alex737ty

at this link: http://www.dd-wrt.com/wiki/index.php/DIR300

Under Install Redboot, First paragraph, second line where it says: "now enter the redboot using telnet and ip 192.168.20.81 and port 9000"

--before i did this, i scrolled downwards further to this: Redboot access script for Windows...Then, I followed the guide as stated..however, after I start the .bat file and power on the router, a window popped out with these sentences:

rem echo off
:start
rem ------------------------------------------------
ping 192.168.20.81 -n 1 -w 1 >NUL
IF ERRORLEVEL 1 goto start

..it keeps going on and on like forever..
so how should I proceed next about the part where "now enter the redboot using telnet" ?

by tobif

In normal situations, you don't need redboot.

It is only needed if an upgrade went wrong etc.

The batch program you started goes into a loop where it will try to talk to the routers low level interface and establish contact during the short boot_wait period.

by oldbaritone

Wireless Access Points often have a Client mode or a Bridge mode, but usually routers do not.

You need a device that can act as a wireless client, not a router.

Step-by-step guide:

1) Buy a real wireless adapter, install and use it. Inexpensive ones can be had new for less than $20, and you'll save yourself at least that much in headaches. (Ask some friends, maybe somebody has one they'd let you use. I know I have a couple of cheap USB adapters - somewhere, if I took the time to look for them. Haven't used them in several years. They're gathering dust in a box or on a shelf.)

-or-

2) buy a cable. Probably that will be about the same price as the wireless adapter, so decide which option you prefer.

by tobif

The OP was asking how to link the routers over the air.
I.e. one of the routers should "receive" upwards connection from the other router via Wifi.

by cg it

humm thought he only had 1 wireless router.

oh well.... my alzheimers must be getting the best of me...

by alex737ty

As per what you explained in the last paragraph, i'd assume i need to use cable to connect the two routers..hmmm, i am actually thinking on how to connect these routers wireless-ly..
Again, thank you very much for your explaination :)

@CG IT: yes, via WIFI :)
@Tobif: I tried to flash the device already but still to no avail..

This discussion is closed to new replies.