Solved

Modifying dialup networking route metrics

Posted on 2004-08-16
7
617 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now