Solved

Modifying dialup networking route metrics

Posted on 2004-08-16
7
620 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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, …
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

12 Experts available now in Live!

Get 1:1 Help Now