Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XP routing vs Win7 routing

Status
Not open for further replies.

DTracy

Programmer
Feb 20, 2002
844
US
On my WinXP workstations I have -

Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 10.84.29.20 1
10.0.0.0 10.0.0.0 10.84.29.1 1

I use this to change between using the .1 gateway and the .20 redundant gateway for internet connection. The .1 is fiber thru a proxy and the .20 is a satellite uplink no proxy. By just disabling/enabling the proxy on the connection tab of IE my users can switch between fiber and satellite.

I am upgrading to Win7 workstations. I tried using this on a Win7 workstation and it won't accept the second routing instruction.
example:
"route add -p 0.0.0.0 mask 0.0.0.0 10.84.29.20"
OK
"route add -p 10.0.0.0 mask 10.0.0.0 10.84.29.1"
Route addition failed, parameter is incorrect.

If I just use the .1 or the .20 as the fixed gateway in the network setup the connection is fine, but I have to manually change the instructions. My users can't handle this.

Using IPV4, IPV6 is disabled.

Any suggestions would be greatly appreciated.

Thanks and regards,
David
 
According to your statement, "route add -p 10.0.0.0 mask 10.0.0.0 10.84.29.1," the mask value 10.0.0.0 is not valid for what you are trying to do. Not knowing how your network is subnetted, but if you are using a default class A mask try specifying 255.0.0.0 for the mask value.

Joey
CCNA, MCSA 2003, MCP, A+, Network+, CWTS
 
Morning guys,

That is the way the system was setup--third party did the install about four years ago. They did the satellite uplink, and the firewall-a CISCO dude.

My workstation is:

IP: 10.84.29.83
SN: 255.255.255.0
GW: 10.84.29.1

I am not a router person, I do repairs, installs, virus removal, etc.

This thing works ok on XP but not Win7.

Thanks,
David.
 
According to the network information you provided from your workstation, try changing the mask value in your command statement to 255.255.255.0. So the command would look like:

route add -p 10.0.0.0 mask 255.255.255.0 10.84.29.1

Joey
CCNA, MCSA 2003, MCP, A+, Network+, CWTS
 
Thanks for the help, it is greatly appreciated. Like I said, I'm not a router person.

Joey, that allowed the route to be added to the table without errors. However, the behaviour is different with Win7 unlike XP. When the proxy is enabled/disabled in XP the connection switches between fiber GW and satellite GW without instance. Using Win7 the procedure does not switch the GW. It just enables/disables the proxy connection.

The two gateways show up when I do an ipconfig/all in a command window. But the only way I can switch between the two gateways is by reconfiguring the network connection.

I'll keep at it for a while, at least I'm learning something I didn't know before. But we'll still probably end up calling the CISCO dude, that's what he does after all.

Thanks again for the help.
David.
 
maybe playing around with the metric parameter could get you to the solution:
You can extend the command with the METRIC and IF parameters. Doing so would look something like this:

ROUTE ADD 147.0.0.0 255.0.0.0 148.100.100.100 METRIC 1 IF 1

The metric parameter is optional, but it specifies the metric or number of hops for the route. The IF parameter tells Windows which NIC to use. In this particular case, Windows would use the NIC that’s bound to Windows as interface 1. If you don’t use the IF parameter then Windows will automatically search for the best interface to use.
source:
or take a look at the following which may point you in the right direction:

How To Change Network Interface Card (NIC) Settings Programmatically

Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
Thanks Ben, I do still write some code so maybe that might be the way to handle this. In any event, I appreciate the help very much from all.

Regards,
David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top