View Single Post
Old 06-14-2011, 02:44 PM   #1
aauajhg842
 
Posts: n/a
Default Windows 7 Starter windows batch custom IP, subnet

Reinstall the windows method, also lazy to bear in mind the definition of neighborhood connection in the configuration specifics. But how you can obtain lazy to revive the network configuration of the key to it, Listed here are several approaches:
Method One:

one. To back up what current configuration facts:

netsh interface ip dump> d: ip.txt

2. restore:

on the command line Kind the following command:

netsh-fd: ip.txt

towards the D drive following ip.txt file restore the network configuration inside the backup.
Method Two:

batch alterations straight by means of the windows network connection IP,Microsoft Office 2010 Pro, subnet mask, gateway,Windows 7 Pro, dns.
1. Set a static IP address assigned the following batch:

@ title network settings batch

@ coloring 0B

@ echo off

set NIC =
set IP = ; set GW = >
set DNS2 =

netsh interface ip set address% NIC% static% IP%% MASK%% GW%% GM%

@ echo is Set the favored DNS server

netsh interface ip set dns% NIC% static% DNS1% main

@ echo Creating alternate DNS server

netsh interface ip add dns% NIC%% DNS2%

echo ------------ --------------------

echo% NIC% with the set happens to be completed, the configuration is as follows:

echo IP Address:% IP%

echo the default gateway:percent GW%

echo subnet mask:% MASK%

echo Preferred DNS Server:% DNS1%

echo Alternate DNS server:percent DNS2 %

echo --------------------------------
pause

please modify the configurations corresponding towards the red component for the previously mentioned, a new text file,Office 2007 Standard, preserve as. bat batch file suffix, If IP.bat, paste the previously mentioned code,Windows 7 Starter, help save. Double-click the file to execute.
Description:

NIC: network connection identify, often

IP: ip tackle inside the network card

MASK: mask

GW: default gateway

DNS1 and DNS2 are the desired and alternate DNS server.

GM: gwmetric default gateway metric. Should the gateway is set to 'none', you must not set this discipline. Commonly 1.
two. Is set to dynamically assign IP addresses (ie IP tackle instantly,Microsoft Office 2007 Standard, acquire DNS server handle instantly) on the batch:

; @ echo off

@ echo set the NIC to instantly obtain IP address ...

netsh interface ip set handle name = Nearby Region Connection title =
  Reply With Quote

Sponsored Links