Need help adding a route - Client and gateway are not in same IP range

A

anctech

I have to add a route on a Windows XP PC to a network segment.
However, the PC and the router which is being used as the gateway,
while physically on the same network, are not in the same IP address
range.
The IP address of the PC is 10.2.a.x , the IP address of the gateway
is 192.168.x.x. I am trying to add a route to a video server with IP
address 10.2.b.x.
When I use 'route add' to add the route directly, I get the error:

'The route addition failed: Rither the interface index is wrong, or
the gateway does not lie on the same network as the interface. Check
the IP address for the machine.'

How do I ago about adding the route?

Thanks for any help.
 
J

John Wunderlich

I have to add a route on a Windows XP PC to a network segment.
However, the PC and the router which is being used as the gateway,
while physically on the same network, are not in the same IP address
range.
The IP address of the PC is 10.2.a.x , the IP address of the gateway
is 192.168.x.x. I am trying to add a route to a video server with IP
address 10.2.b.x.
When I use 'route add' to add the route directly, I get the error:

'The route addition failed: Rither the interface index is wrong, or
the gateway does not lie on the same network as the interface. Check
the IP address for the machine.'

How do I ago about adding the route?

Thanks for any help.

I assume that you are trying to use the 192.168.x.x gateway to get to
the 10.2.b.x network from your current 10.2.a.x network.
I further assume that your subnet mask for the 10.2.a.x network is
255.255.255.0 (otherwise it would appear that both 10. networks are
on the same network and a gateway isn't needed).

In windows, gateways must be on the same subnet as the computer. To
get around this, your 10.2.a.x address must be a fixed address (ie not
DHCP assigned). If you fix this address, then Windows allows you to
assign a second IP address (e.g. in a different subnet) to the same
physical network adapter. Simply enter a second [fixed 192.168.x.x]
address to the same NIC as the 10.2.a.x, then you will be allowed to
add a route to your gateway. Look for an "Add" button somewhere in the
Advanced TCP/IP Properties/settings.

HTH,
John
 
A

anctech

I have to add a route on a Windows XP PC to a network segment.
However, the PC and the router which is being used as the gateway,
while physically on the same network, are not in the same IP address
range.
The IP address of the PC is 10.2.a.x , the IP address of the gateway
is 192.168.x.x. I am trying to add a route to a video server with IP
address 10.2.b.x.
When I use 'route add' to add the route directly, I get the error:
'The route addition failed: Rither the interface index is wrong, or
the gateway does not lie on the same network as the interface. Check
the IP address for the machine.'
How do I ago about adding the route?
Thanks for any help.

I assume that you are trying to use the 192.168.x.x gateway to get to
the 10.2.b.x network from your current 10.2.a.x network.
I further assume that your subnet mask for the 10.2.a.x network is
255.255.255.0 (otherwise it would appear that both 10. networks are
on the same network and a gateway isn't needed).

In windows, gateways must be on the same subnet as the computer. To
get around this, your 10.2.a.x address must be a fixed address (ie not
DHCP assigned). If you fix this address, then Windows allows you to
assign a second IP address (e.g. in a different subnet) to the same
physical network adapter. Simply enter a second [fixed 192.168.x.x]
address to the same NIC as the 10.2.a.x, then you will be allowed to
add a route to your gateway. Look for an "Add" button somewhere in the
Advanced TCP/IP Properties/settings.

HTH,
John

I checked in the Advanced settings as you suggested, and added the
second IP address. I was able to add the route after.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top