Remote Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 2 January 2011

Batch file to Switch Between WAN and Broad Band in WAN Offices

Posted on 22:49 by Unknown

In WAN Offices often we are using Broad Band in so many circumstances. For Swinth between WAN and Broad band we have to change Default gateway, and DNS server's ip each time.Here is the simple solution to switch between WAN and Broad band.

Steps:
1.Before creating batch file.IP and Subnetmask of Broad band Modem must be in WAN IP Series. For this task please refer mannual.Click here to download mannual
2.Create a new notepad(.txt document)
3.Copy and paste the following script

@ECHO OFF

color 2

Echo * Now System IP Changes to WAN Settings*

Echo ** If ready to switch to WAN ** PRESS ENTER *** or else Ctrl+ C

pause


set vargw=10.102.154.193
set vardns1=164.100.3.1
set vardns2=164.100.17.3


ECHO Setting Gateway
netsh int ip set address name = "Local Area Connection" gateway = %vargw% gwmetric = 1

ECHO Setting Primary DNS
netsh int ip set dns name = "Local Area Connection" source = static addr = %vardns1%

ECHO Setting Secondary DNS
netsh int ip add dns name = "Local Area Connection" addr = %vardns2%

Echo **** Now You are in Wide Area Network ****

pause


4.Change set vargw=Router IP of WAN or Modem IP of Broadband
set vardns1=Primary DNS of WAN or Broadband
set vardns2=Secondary DNS of WAN or Broadband
5.Save the file.
6.Rename it as WAN.bat or Broadband.bat
7.Just double click to Switch between WAN and Broadband
Note:This batch file works in Computers which are having Single Network Adapter only.


Courtesy : http://doputtur.blogspot.com/
Email ThisBlogThis!Share to XShare to Facebook
Posted in For System Administrators, Network Trouble shooting | No comments
Newer Post Older Post Home
View mobile version

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Windows Server 2008 Core Command Guide
    Windows Server 2008 Core Command Guide What Command Set DNS IP Netsh int ipv4 set dns “local area connection” stat...
  • USB Disk Security 5.4.0.12
    USB Disk Security -  Download 100% protection against any threats via USB storage USB Disk Security is a top-rated antivirus utility that pr...
  • GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY
    GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY POSTAL DIRECTORATE ISSUED ORDERS TODAY FOR IMPLEMENTING THE GDS COMMITTEE ...
  • (no title)
    POSTAL RATES INDEX Letters / Book Post Registered Articl...
  • Most Useful Websites
           The list primarily highlights the lesser-known or undiscovered websites and misses out all-time favorites like Google Docs, Wikipedia...
  • Commands in Windows Vista
    Windows Vista Command Line List and Reference The list of commands available in the command line shell for Windows Vista is similar to that ...
  • Save queries in Windows Server 2003's Active Directory Users and Computers tool
    Windows Server 2003 administrators can’t live without the Active Directory Users and Computers tool. Here’s a quick look at the saved querie...
  • PDF into Word ( Document) converter
    PDF into Word ( Document) Converter         PDF2Word(pdf to word) software enable export the text, images and other contents from pdf docume...
  • THIRUKKURAL PDF DOWNLOAD (தமிழ் )
    CLICK HERE TO DOWNLOAD THIRUKKURAL (தமிழ்)    or CLICK HERE TO DOWNLOAD THIRUKKURAL (TAMIL & ENGLISH)    or CLICK HERE TO DOWNLOAD THIR...
  • How to shutdown computer automatically at a specific time
    Trick 1: Start > Run Type ' shutdown -s -t 1800 ' without quotes Click OK A dialog will appear showing the countdown t...

Categories

  • Computer Guidelines
  • Customer Care
  • DB Tools
  • Drivers
  • Entertainments
  • FAQ
  • For System Administrators
  • FTP
  • General Informations
  • General Knowledge
  • Guidelines
  • Hardwares
  • Health Tips
  • Internet Tips
  • Latest Software Updates
  • Network Trouble shooting
  • Printer Trouble shooting
  • Printing Tips
  • Recovery Tips
  • Registry Tips
  • Registry Tools
  • Security Guidelines
  • Security Tips
  • Software Tips
  • Softwares
  • SQL
  • Technology
  • Tips and Tricks
  • Tools
  • Trouble shooting
  • Useful Softwares
  • Utilities
  • Virus Solutions
  • Websites
  • windows 7
  • Windows Server
  • Windows Tips
  • Windows Vista
  • Windows XP FAQ

Blog Archive

  • ▼  2011 (138)
    • ►  May (32)
    • ►  April (24)
    • ►  March (29)
    • ►  February (15)
    • ▼  January (38)
      • How to Create a Strong Password?
      • FTP Server Creation Procedure
      • Benefits of Honey in Ayurveda
      • Yoga and Ayurveda Keep Skin Healthy
      • SQL Error - MMC cannot open the file
      • How to Fix Generic Host For Win32 and Svchost.exe ...
      • Basic Computer Terms
      • What is Computer Virus?. How to Protect Yourself f...
      • Windows Recovery
      • How to Use System Configuration Utility
      • How to Start the Computer by Using the Last Known ...
      • What is the reason for PC Crash?
      • 62nd Republic Day on 26/01/2011
      • Useful Educational related Websites
      • Dropbox - Simple FTP Server
      • How to fix Windows activation problem
      • Block websites without any software
      • Check Your System's Warranty
      • New Virus Through Mail
      • TIPS TO KEEP YOUR LAPTOP COOL and SAFE
      • Tip for converting Text into Table
      • Charge mobile with peepal leave- Mobile Tips
      • Black And White Photo Maker
      • ‘How-to’ Series From Google
      • FixDrive - Drive for Openwith problem
      • Total Excel Converter
      • Want to Learn Programming Languages?
      • What is "autorun.inf" ?
      • Self Development Tips
      • Benefits of Meditations
      • Secure Your Windows XP Computer
      • E-Diary
      • Batch file to Switch Between WAN and Broad Band in...
      • Change or Add user Restrictions in windows
      • TIPS TO KEEP YOUR LAPTOP COOL & SAFE
      • வலைப்பூச்சரம் - Tamil Websites
      • Vivekananda's Quotes
      • How To Clean Up Your Computer Back To Its Original...
  • ►  2010 (241)
    • ►  December (55)
    • ►  November (40)
    • ►  October (21)
    • ►  September (35)
    • ►  August (39)
    • ►  July (23)
    • ►  June (5)
    • ►  May (2)
    • ►  April (12)
    • ►  March (4)
    • ►  February (2)
    • ►  January (3)
  • ►  2009 (26)
    • ►  December (5)
    • ►  November (3)
    • ►  October (4)
    • ►  September (5)
    • ►  August (3)
    • ►  July (5)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile