Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

static route

97 views
Skip to first unread message

Simone F.

unread,
May 14, 2009, 5:16:07 AM5/14/09
to
hello,
I'm trying to add some route to my Windows-XP machine, where I have only
one hardware interface. I would like something like this:

route ADD 199.101.10.0 MASK 255.255.255.0 199.101.10.7 METRIC 3 IF 2
route ADD 199.101.10.0 MASK 255.255.255.0 199.101.10.6 METRIC 7 IF 2
route ADD 199.101.20.0 MASK 255.255.255.0 199.101.20.7 METRIC 20 IF 2
route ADD 199.101.20.0 MASK 255.255.255.0 199.101.20.6 METRIC 30 IF 2

but when I issue those commands I obtain the following error message:
"The route addition failed: Either the interface index is wrong or the
gateway does not lie on the same network as the interface. Check the IP
Address Table for the machine."

My XP machine currently doesn't have an IP address in those networks.
Does it mean that I have to assign an IP address in the 199.101.10.0/24
subnet to the interface 0x2?

James Egan

unread,
May 14, 2009, 12:38:18 PM5/14/09
to

On Thu, 14 May 2009 11:16:07 +0200, "Simone F." <psyc...@libero.it>
wrote:

You have to change the gateway to a device on the same subnet as your
xp machine otherwise the default gateway will be used.


Jim.

John Wunderlich

unread,
May 14, 2009, 3:35:50 PM5/14/09
to
"Simone F." <psyc...@libero.it> wrote in
news:gugnff$fet$1...@aioe.org:

Yes. You must assign an IP address on both the 199.101.10.x and
199.101.20.x subnets as well as any other subnet that you need to route
through on that physical interface. In Windows, you can assign
multiple IP addresses to a single NIC, but only if DHCP (obtain address
automatically) is not enabled.

HTH,
John

Noah Davids

unread,
May 15, 2009, 9:14:54 AM5/15/09
to
More importantly, you must be physically connected to those networks.
Just assigning an address will not work if the routers are not reachable
on a local network. Basically, all your routers must be local or another
way of thinking about it is that you have control of only the first hop,
once it reaches the router it is out of your hands. There is something
called source routing but changes are it will not be honored by the router.
0 new messages