Skip to main content

Posts

Showing posts from February, 2009

Batch in Windows

Ok next step ....

if we want to switc between 2 IP configuration, we can make 2 batch file to make us easy

first make a batch file with this script :

netsh interface ip set address name="name of connection" static IP Netmask gateway

so we get for example like

netsh interface ip set address name="Local Network" static 192.168.0.10 255.255.255.0 192.168.0.1

then save in extention *.bat

next make script like this

netsh interface ip set address name="Local Network" dhcp

this script mean that we use DHCP configuration

se.. yaa...

just explore your self

other reference see on google.com

cayoooo...

Set IP Address in Command Windows

sHow current configuration IP address :

Dump current configuration for back up

C:\> netsh interface ip dump > file

example

C:\>netsh interface ip set address name=”Local Area Connection” static 192.168.1.5 255.255.255.0 192.168.1.1 0

other find on google.com

cayoo...