joshthegooglist

Distinguished
Oct 1, 2010
14
0
18,510
I have a network with a few subnets running via routers. the main network has the address 206.89.213.65/127. My subnets are 192.168.1.__ and 192.168.2.__I am trying to get a computer on the .2 network running win 7 pro x64 to communicate with a device on the .1 network. On the windows 7 machine this was the add statement i ran
route add 192.168.1.0 mask 255.255.255.0 206.89.213.95(routers WAN ip). Cmd said ok! i went to the other one and entered route add 192.168.2.0 mask 255.255.255.0 206.89.213.125 and the message i got was: "The route addition failed. Either the interface index is wrong or the gateway does not lie on the same netwok as the interface. Check the ip address table for the machine."

I've tried several combinations of ip addresses that may be or should be used but to no avail. I also tried running this same command from another computer on the .1 network and it said "OK!" but when i tried to ping the win 7 machine on the .2 network, it said destination host unreachable.

Im at my wits end. please help..

-JP
 

Plumble

Distinguished
Oct 11, 2010
402
0
18,810
"route add 192.168.1.0 mask 255.255.255.0 206.89.213.95"

route add destination mask subnetmask gateway

so you set the gateway to 206.89.213.95 to access the second subnet?

Surely you'd want the gatway out from subnet 1 to subnet 2 to be the internal address of the first router?

Also, do you router include a firewall? If so, have you allowed appropriate traffic through?

 

joshthegooglist

Distinguished
Oct 1, 2010
14
0
18,510
206.89.213.95 is the WAN ip of the router of subnet .2
206.89.213.125 is the WAN ip of the router on subnet .1
These are addressed this way so that the computers on these subnets can have software loaded on them by a software install agent via the supernet

@Plumble- I dont understand what you mean by,
"Surely you'd want the gatway out from subnet 1 to subnet 2 to be the internal address of the first router?"
I will check on the firewall as well
 

Plumble

Distinguished
Oct 11, 2010
402
0
18,810


Sorry about that, It was half past one in the morning and I was a little tired.

what I was trying to say was that my understanding was that the gateway specified in the route add command should be the internal address of the connected router. therby giving it a "route".

So it would be
route add 192.168.1.0 mask 255.255.255.0 192.168.2.1 (or whatever the internal address of that router is) The addresses between the routers is on thier own routing tables.

I haven't used it for a while and I can't duplicate that setup righ now, otherwise I'd try it for you.

However are you able to set static routs with your routers?
 

joshthegooglist

Distinguished
Oct 1, 2010
14
0
18,510
I have enabled static routing from the machine that needs to be accessed to the .1 subnet. and also, i tried the route add you suggested but it gives me this error again:

"The route addition failed. Either the interface index is wrong or the gateway does not lie on the same netwok as the interface. Check the ip address table for the machine."


Should i use port forwarding on both routers?
How can i go about doing so?
 

Plumble

Distinguished
Oct 11, 2010
402
0
18,810
255.255.255.0 - 192.168.1.0 ?

255.255.255.0 - 192.168.2.0 ?

can you see the mistake?

255.255.255.0 - 1pc.1pc.1pc.254 possible pcs

192.168.?.0 theres the first problem. first 3 must stay the same the last will diffrenciate from one another. That whats the subnet is saying. Still post your ipcong /all please

The netmask indicates that to get to the other subnet, it much go through the gatway. Therfore it is correct.
 

TRENDING THREADS