Sign in with
Sign up | Sign in
Your question

Route add problems

Last response: in Networking
Share
November 12, 2010 5:57:11 PM

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

More about : route add problems

November 12, 2010 6:58:44 PM

what happens if you try netmask 255.255.0.0
m
0
l
November 12, 2010 7:10:44 PM

Before and after changing the DHCP settings it says that the mask parameter is invalid (Destination & mask != ...something)
m
0
l
Related resources
November 12, 2010 7:44:48 PM

Is the other device a printer?

have you tried assign a Static IP to your Windows 7 computer

IP 192.168.2.xxx
netmask 255.255.0.0
gateway 192.168.2.1

see if you can access it now
m
0
l
November 12, 2010 10:14:48 PM

Yes i have tried with dynamic and static ips and it refuses to work. The other device is a vehicle diagnostic machine wired into the .1 router
m
0
l
November 12, 2010 11:28:11 PM

"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?

m
0
l
November 15, 2010 10:42:00 PM

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
m
0
l
November 16, 2010 10:52:17 PM

joshthegooglist said:
@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


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?
m
0
l
November 17, 2010 10:30:23 PM

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?
m
0
l
November 18, 2010 3:53:11 PM

Quote:
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.
m
0
l
November 18, 2010 4:36:20 PM

I don't think it can do any harm.

m
0
l
November 19, 2010 7:58:15 PM

OK, i finally got frustrated with this issue and bought a usb-wireless adapter. Thanks for all the help guys. =)
m
0
l
!