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