[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 631
  • Last Modified:

Modifying dialup networking route metrics

Whenever you dialup to the internet, the ISP assigns you a default route which Windows happily assigns metric 1.

I need to change this to a higher metric like 10 and need this to happen automatically.
0
billwharton
Asked:
billwharton
  • 3
  • 2
1 Solution
 
jgiordanoCommented:
One way to do it is:
1) create a batch file and use the following to change the routing table:
ROUTE: Manipulates network routing table.
ROUTE [-f] [-p] [command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]

2) if you create the dial up account through windows; right click it and select properties.
Then select security from the tabs and on the bottom of this tab you can specify a program (batch file) to run.

0
 
billwhartonAuthor Commented:
It tells me occur occured when parsing batch file. Are batch files allowed as dialup scripts? I am asking this because under Interactive logon and scripting, it gives me a browse button and then asks me to choose a .scp file

My batch file is perfect and am able to run it seperately.
0
 
jgiordanoCommented:
My Mistake; I though it would take any script, my suggestion would be to put the DUN link in the batch file:

START C:\WINDOWS\Desktop\MyISP.lnk

sleep (can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en)

then routecommand

0
 
billwhartonAuthor Commented:
I don't totally understand. You mean I should use a Dial-up script files (*.scp)?
This is the one it's asking me to browse for and I don't know how to create one.


The only part of your last post I understood was sleep.exe which I've used before
0
 
jgiordanoCommented:
No not the .scp file; kick off the DIal Up connection from within the batch file; then sleep for a while then execute the route command in the same file.

There is syntax for the scp script but it is more complicated.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now