Question Locked

How : Share 1st router's comps resource from a network behind 2nd router

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

I have 1 ADSL/Broadband-Modem+4PortRouter (Huwai MT-841) whose IP is 192.168.1.1...
I have 3 computers connected to this router by LAN. IPs>> 192.168.1.x.. subnet mask>> 255.255.255.0... gateway>> 192.168.1.1 and home networking enabled to share resources and to connect to internet.

on the 4th Port of that HuwaiRouter, I have D-link WBR-1310 4 port wireless router's WAN port connected... Internal IP 192.168.0.1...
in this D-Link Router i have 3 computers connected by LAN and 2 laptop connected wirelessly.. IPs>> 192.168.0.x... subnet mask 255.255.255.0... gateway>> 192.168.0.1 and home networing enabled to share resources and to connect to internet...

In huwai router d-link router is getting dectected (dhcp enabled) as 192.168.1.2..

I have no problem accessing internet from any of the computer or laptop. I have no problem to share resources within particular router network (means i can do anything connected inside d-link network or inside huwai network). I can access Huwai router settings even from the computers connected to d-link.

The Problem is, i cant access the settings of d-link router from any computer connected to Huwai...

AND MAIN PROBLEM is I am not able to see the computers or the resources in the computers connected to Huwai, from the computers connected to d-link or vice-versa... Means i can only see the computer connected with same router, cant see anything of the other router.

But the Ping results getting successful (i.e if i ping 192.168.1.10 from 192.168.0.20 it is getting successful)...
I have all the computers running on XP-pro-sp2.

Does anyone know how to solve this problem or what should i do to see each and every computer from anyone of them...???

31 replies

by cg it

or take the Dlink router back, get a wireless access point and a el cheapo 4 port switch. connect the wireless AP and the 4 port switch to the port the Dlink is connected to. Not enough ports? get a 8 port switch.

by lovedimpy

firewall is already off in DLINK....

cant take the dlink back because it was bought from USA and currently i am in India...

without changing any networking device or hardware can i do it by changing some sttings in computers or in routers???

by lovedimpy

Though none of the answers solved my problem but Thanks for the reply... at least someone gave answer..... :-)

my goal was to have total connectivity between two network (having different subnet) and it is done (at least in my case) just by merging two subnet into one... I just had to take out the connection to D-Link WAN port and put that RJ-45 to normal LAN port of D-link. Then i configured the D-link as 192.168.1.3 (internal IP) and the computers connected to it as 192.168.1.x (non-conflicting ones with Huwai network)... now all of my computers have 192.168.1.x IP & Gateway>>192.168.1.1 (Huwai Inernal IP)....

Now it looks like that D-Link is acting (May be) just like a Normal Network Hub/Switch, but still transmitting wireless signal....

My goal (i dont know if you guys have understood that or not) is achieved.

by cg it

what you have is 1 network all in the 192.168.1.X/24 subnet range.

something that could have been accomplished with a wireless access point and a 10/100 switch rather than a wireless router.

by dumphrey

he did not have the luxury of returning the router or purchasing any new hardware.

by cg it

Either you can a tome to read or virtually nothing.

Since you said you can log in to the huawei router and find the static routing page, that would indicate that you can add the route in the routers table. The router would then know that traffic for the Dlink network is sent to the dlink router. The dlink router would then know the destination is for it's network.

the static route is the Dlink's WAN address. This is where you have to setup the Dlink router's WAN address with a static address on the huawei's network.

But the router's firewall must also know or be allowed to forward traffic destined from the huawei network to it's network. So you either disable the firewall or put in port forwarding.

by michael kassner

If the way you have it now is sufficient then there is no need to revert back and setup routes on each of the routers. You could control access between different subnets by routing tables and access controls that are configured from each router's configuration web page.

by lovedimpy

@ CG IT .....

Yes. You are right about 1 network all in 192.168.1.x/24 subnet range....

@ Michael Kassner..

But I am wondering if it is possible to explain to me or at least help me to do what you told. Because right now it is OK, but if i want to attach one more computer on LAN then it wont be fine. So I would love the way my network's physical condition and connection was previously, but of course i want to share both networks resources like now.. Currently I have all the ports occupied (lost 2 ports, one of Huwai & one of DLink for connecting them to each other, and WAN port of DLink got free)... If It can be done what you told then I can free up 1 of those ports and use WAn port of DLink and that would be very helpful.

what you mentioned - "You could control access between different subnets by routing tables and access controls that are configured from each router's configuration web page". i am thinking is it the page containing "Network Filters/MAC Filter" pages??? Currently those are disabled/off in both routers. If u want, then i can show you screen shots of those pages... If they are the pages you are talking about, then can you tell me how can i do that or can u give me some link where i can find the solution???

Many Many Thanks to Both of you guys.... Because it is hard to find helpful people without their own profit and you guys just tried to help me without any profit. thank you again ... :-)

by dumphrey

instead of router mode?
EDIT: I re-read your solution. very elegant actually. The simplest soultion, make one network. Easyest way? eliminate the wan port... My hats off, I may have eventually arrived there, but more then likely would have spent days writting acls and NAT translations between sub-nets...

by michael kassner

I thought I would just mention that it is a good way to go if you do not need all of the features of an AP. Wireless routers are typically a bunch cheaper so I tell most consumers to do just what LoveDimpy did, save money, and have more available wired switch ports. Only complication is getting them to shut off the DHCP server.

by dumphrey

but besides that, when you log on to the dlink, look around and see if you have a "function" option.. to change the router from router to Access Point or Bridge Mode. This would in effect turn the wireless router in to a switch with wireless access.

Other options> Conusmer grade routers are really NAT boxes that can (sometimes) use RIP. This means that routing tables are rarely accessable. If you plug the WAN interface of the DLink in to one of the switch ports on the other router. Set the WAN interdace on the dlink to use dhcp...
Set the DHCP serevr on the dlink to use a different subnet then on the first router...

{ISP INternet} <--connection--> {WAN interface router 1 [lan interface router 1 192.168.1.1/24]} <----cat5---> (wan interface router 2 DHCP[LAN interface 192.168.2.1/24]}

Also, vyata
http://www.vyatta.com/download/index.php
make a linux based software that can run from live cd and perform full routing functions. Replacing the dlink with an old computer with 2 netcards would fix the whole issue. They have a good quick start guide and several videos available for free. The community support version is free, but relies on their wikki to resolve issues. Well worth looking into. The web interface to configure the device can be a little confusing, but it beats the command line (until you know the commands well enough).

Checked out
http://support.dlink.com/emulators/wbr1310_revA/
Seems your router can not be switched to Wireless Access Point mode =(
That leaves creating 2 networks and a bunch of rules, or set up a real router to route between them (still 2 networks though).

by cg it

with 2 routers... you add static routes into both of the router's routing table.

However, his initial question was how to get to different networks [subnets]to share resources. The easiest way is to not have 2 networks by employing an AP and a switch...which btw is what he found out himself....and configured his network to do.

With routers all one has to remember is that the router routes packets based upon its destination. those for the local get send to the host, those not destined for the local are sent to the next hop router. As long as there are routes in the routing table, he should be able to have access to resources in both networks given that he has setup both networks to give permission for users to access resources.

by dumphrey

and I have done them...but I really like his solution... simple, clean, effective.

by michael kassner

Well, I have been researching the WBR1310 and according to the user manual it is not capable of setting up route tables. I was surprised as that is typically something all routers are allowed to do. If you do not have the manual you can get it at this link.

http://www.dlink.com/products/support.asp?pid=474&pv=96&sec=0

I am not sure what version you have but you should be able to find them at this location. There is also an emulator on that site and I did not see any method to setup routing tables. That is very strange.

The only other thing I can think of and it is only a guess:

1.Chain the routers together as you did in the beginning.
2. Shut off DHCP on the WBR1310
3.Setup both interfaces of the WBR1310 to have IP addresses in the range of the DHCP server of the Huwai router.
4. Setup each client of the WBR1310 to have a static IP address in the range of the DHCP server of Huwai.
5. Setup the Default Gateway to be that of the internal interface of the WBR1310.
6. Setup the DNS servers IP addresses to be the same that is given to the clients of the Huwai router.
7. The clients of the Huwai router can still use DHCP to get their client information.

Possibly this will allow the traffic to bridge the router interfaces. I am not that familiar with the DLink device to know for sure.

I understand your predicament, but if you need more ports for computers a simple hub added to either router would give you several more ports as well. That approach will allow you to keep the network as is and it will be less complicated as well.

by lovedimpy

Thank You very Much .... And I Really mean it... Your dedication to help me and your effort was unexpected. I think world is still a better place because of your kind of guys. :)

As you told I will buy a hub if i want to expand. But out of curiosity and to know about these stuffs a bit more i have tried a few things too with the previous network configuration....

You are right about the d-link router not having an option of routing table.... Though I have found "IP Routing" tab on Huwai router.. I have done more or less exactly as you told and few more kind of things... I am telling you what I have done in details... all the routers/comp are in same dns settings.

1st Case:-

1. I shut off both routers DHCP...
2. Huwai router 192.168.1.1
3. DLINK router 192.168.1.2 (external IP) & 192.168.1.3 (internal IP)
4. all computer having same subnet IPs.....

result:- No internet connection behind DLINk....

2nd case:_

Exactly what you told....

result no internet connection behind dlink

3rd case:-

My 1st network settings...

Internet connection is fine but no sharing between networks...

4th Case:-

1. I shut off both routers DHCP...
2. Huwai router 192.168.1.1
3. DLINK router 192.168.1.2 (static external IP) & 192.168.2.1 (internal IP)
4. computers under huwai 192.168.1.x (gateway-192.168.1.1)
5. computers under dlink 192.168.2.x(gateway-192.168.2.1)

6. In The "IP ROUTING" in Huwai I set a new ip route as(other than the one with pppoe default IP route, which gets generated automatically after the huwai gets connected to internet):-

Destination IP Address- 192.168.2.0
Subnet Mask- 255.255.255.0
Gateway- 192.168.1.2
(I have no idea what i was doing in this IP routing... I though it would be logical to set it this way... correct me if i am wrong)

Result:- Internet connection for all the computers.... But same problem as initial... no computers can see other subnet computers, but ping result gets successful...

I have tried the 4th case with enabling the DHCP server in Huwai router and changed dlink's external ip as dynamic... dlinks ext IP gets the same IP in this case too... and same result as 4th case..

Q.1>> Did i make any mistakes in setting the IP route in Huwai???? because i have no idea if i have set it properly...
Q.2>> is it necessary to set IP routes in DLINK too to get the connection right???
Q.3>> If I have a 2nd router instead of d-link which is capable of routing, then how to set that routing table?? I want to know about routing table. :)

Thank you again :)

by cg it

no place to add in static routes. Was looking for the manual for the Huawei MT 841 router and was unsuccessful at finding the product manual.

by michael kassner

1st Case:-
1. I shut off both routers DHCP...
2. Huwai router 192.168.1.1
3. DLINK router 192.168.1.2 (external IP) & 192.168.1.3 (internal IP)
4. all computer having same subnet IPs.....
result:- No internet connection behind DLINk....

...On the client workstations, what did you configure the default gateway and DNS servers as? Can you access the Internet if you use a website?s IP address instead of the FQDN?

2nd case:_
Exactly what you told....
result no internet connection behind dlink

...Same questions. On the client workstations, what did you configure the default gateway and DNS servers as? Can you access the Internet if you use a website?s IP address instead of the FQDN?

4th Case:-
1. I shut off both routers DHCP...
2. Huwai router 192.168.1.1
3. DLINK router 192.168.1.2 (static external IP) & 192.168.2.1 (internal IP)
4. computers under huwai 192.168.1.x (gateway-192.168.1.1)
5. computers under dlink 192.168.2.x(gateway-192.168.2.1)

...Try the following changes:
1. Dlink internal interface: 192.168.1.3
2. Computers under DLink use gateway 192.168.1.3. Just trying to trick the DLink into accepting ARP broadcasts looking for the computers on its internal interface.

Q.1>> Did i make any mistakes in setting the IP route in Huwai???? because i have no idea if i have set it properly.

...The IP route is correct if it is applied to the internal interface. The problem is that the DLink will not respond to the traffic as it is acting as a NAT router when you have it setup to use a 2.XX subnet

Q.2>> is it necessary to set IP routes in DLINK too to get the connection right???

...Officially yes, but I was trying to fool the DLink as it it sometimes possible to accomplish that when using consumer grade routers.

Q.3>> If I have a 2nd router instead of d-link which is capable of routing, then how to set that routing table?? I want to know about routing table.

...Just as you did on the Huwai.

by lovedimpy

Answer to your questions are:-

gateway of the computers behind dlink was dlinks internal IP address..... i have tried huwai's Internal Ip and dlink's external IPs too as gateway of the computers behind dlink... :D no result :D.

I tried to put 87.248.113.14 instead of www.yahoo.com and few more in my browsers... no result....

all of the computers and router have the same DNS Server address provided by my ISP. that is 218.248.240.23...

in the 4th case i tried out your solution.... no result....

when i try different subnet addresses in the dlink and the comps behind it internet works fine (of course with NO sharing between other subnet)....

by lovedimpy

Thanks to all of you.....

I am not actually able to do it :(

I think all of you guys saw D-Link routers web interface. But you did not have a chance to see the Huawei MT841 .....

I can do one thing if it is not a problem for you. You can tell your convenient time or free time and then tell that time to me... that time I will give you the IP address of Mine for that moment and will give permission to the router access ... Then u will be able to log into my huawei router.... if you guys have time to do so then you can tell me.... if possible then please give me your yahoo/msn/skype messenger id so that i can tell u the IP adress of that moment (ISP provides Dynamic Ip. so it keeps changing)....

by cg it

I decline the offer but thanks....

Please note we are not talking about the address that your ISP provides. We are talking about being able to add an address to the routing table of the router.

This is from Linksys router help page...

LAN Setting:
This is the Router's LAN IP Address and Subnet Mask. The default value is 192.168.1.1 for IP address and 255.255.255.0 for the Subnet Mask.

Multiple Subnet: This feature allows users to take the existing address allocation and split it up into multiple networks. Click Add/Edit to add new

subnets by entering LAN IP Address and Subnet Mask and then clicking Add to list. The device support 5 groups subnets.

Static Routing
Working Mode: Gateway Router
RIP: Enabled Disabled
Receive RIP versions: None RIPv1 RIPv2 Both RIP v1 and v2
Transmit RIP versions: None RIPv1 RIPv2 - Broadcast RIPv2 - Multicast

--------------------------------------------------------------------------------

Destination IP: . . .
Subnet Mask: . . .
Default Gateway: . . .
Hop Count
(Metric, max. is 15):
interface: LAN WAN

Note: you choose if the interface is WAN/LAN LAN/LAN or LAN/WAN

this is how you add in static address mapping into the routers route table. The router will then be able to read the desination IP address and decide which route to send it to based upon the routing tables entry.

Now this is for a Linksys consumer level router.

I didn't see this on your Dlink routers manual nor on the Hauwei router.

So not sure we can setup routing between different networks that happen to be your private network. I know the Dlink router does not have the capability of adding in static address mapping therefore we can not specify traffic from DLink network to go to the huawei network.

by lovedimpy

actually i was not explaining my ISP config ....

i was talking about giving u my routers curent external IP address so that u can log into that MT 841 and see what can be done. :)

by the way, after reading Dumphrey's recent post I checked about RIP in my MT 841 and it is present in the router. will that RIP help??

it contains to options a. LAN (interface name -iplan) b. PVC-6 (interface name- pppoe)

both have
1. RIP 1 send - disabled
2. RIP 1 received - disabled
3. RIP 2 send - disabled
4. RIP 2 received - disabled
5. Send MultiCast - disabled

by lovedimpy

hmmm..... I read ur post about linksys routers config...

in dlink i dont have that option...
and in huawei i have IP Routing option but not as much as u wrote here about linksys...

in that ip routing i set it as...

Destination Address - 192.168.2.0 (currently i set dlink network in the subnet of 192.168.2.x)
Subnet Mask - 255.255.255.0
gateway- 192.168.1.2 (current dlink external static ip)

and i just enabled RIP in both. no result... of course i can access internet from both network. but cant share resources... but I am able to ping (how am i able to ping other subnet??? is it normal??)

by cg it

and see if both will find each other and share routes but RIP tends to be a chatty program meaning that it sends out router advertisments quite often. If you have low bandwidth availability, RIP isn't the program to use.

RIP isn't the same as adding in static routes into the routing table.

note the lower diagram of my post. That is a screen copy fro a linksys router where you can add in static addresses to the routing table and indicate if it's a WAN/LAN address mapping.

by cg it

the firewall usually blocks ICMP requests which is what ping is.

the reason you can't access resources on the other network is that the computer your using to access the resources is in a different subnet. That's why if you bypass the WAN port of the DLink and setup addressing the same as the huawei, you can access resources.

Consumer level routers are made for consumers who don't know anything about computer networks. They are designed to really do one thing, deny access FROM the internet and allow access TO the internet. Same as those firewall software programs one buys from Symantec, TrendMicro, AVG, etc. They operate on the assumption that if a computer on the LAN sends a request to the internet which is always allowed, then the return traffic from the web site is also allowed. Any inbound internet traffic that is not sent from the LAN is denied.

your computer on the huawei network trying to access resources on the DLink network is automatically denied access by the firewall. Turn that off, and your allowed access however, now you have different subnet problem. Computers on different subnets can't talk to each other without a router to direct the traffic or to provide a remote computer with a LAN address. That's called a DHCP relay agent. It acts as a relay between subnets that allows computers on different subnets to access shared resources.

I don't think the DLink has a DHCP relay agent available for it.

So your best bet is to just bypass the WAN port on the DLink and put everyone on the Huawei network.

by michael kassner

I agree totally and doing all of this just for the freeing up of one port is not really logical.

Your DLink will not setup proper routing tables. All the different variations I had you try were to see if there were any backdoors or if the router would allow traffic from the the same subnet to pass from the external to the internal interface of the DLink. None of those worked, you are basically in need of a simple hub/switch.

Gaining access to the Huwai is not the issue, nor is setting up RIP. The problem is NAT/PAT and the DLink is just not setup to allow routing tables. I am somewhat surprised, but not totally by any consumer grade equipment not having that ability.

If you are open to it, would you activate your ability to accept messages from other members?

by lovedimpy

Thank you guys .....

Then it will not happen... My dlink router does not have it and i get the point :d

so i discard that wan port of d-link.... :)

You are right about "doing all of this just for the freeing up of one port is not really logical".... But i am happy that, this question came to my mind... Otherwise I would not be able to know such nice & helpful persons like you guys... and as i am not a very knowledgeable person about networking and stuffs, i gained some (may be very little) knowledge about this... and i am glad to know at least this much in last few days.. :) Thank You...

and it might be illogical to go through all this kind of complex things for one port... but for the last 1 or 2 days i was not doing it for the port. I was trying to know a bit more about it in last 1 or 2 days. I think i was running for knowledge :D i hope that was not illogical :)

@Michael Kassner

"If you are open to it, would you activate your ability to accept messages from other members?" <<-- I dont understand that...

This discussion is closed to new replies.