Solved

Modifying dialup networking route metrics

Posted on 2004-08-16
7
624 Views
Last Modified: 2012-06-27
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
Comment
Question by:billwharton
  • 3
  • 2
7 Comments
 
LVL 11

Expert Comment

by:jgiordano
ID: 11814769
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
 
LVL 11

Author Comment

by:billwharton
ID: 11814934
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
 
LVL 11

Expert Comment

by:jgiordano
ID: 11815377
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
 
LVL 11

Author Comment

by:billwharton
ID: 11816265
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
 
LVL 11

Accepted Solution

by:
jgiordano earned 250 total points
ID: 11816374
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question