Solved

Modifying dialup networking route metrics

Posted on 2004-08-16
7
627 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

724 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