Uname
User
Php
Hdd
Chating
:Linux p3nlhg416.shr.prod.phx3.secureserver.net 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64
:666 ( sohai_666 ) Group: 666 ( ? )
:5.2.17 Safe mode: ON [ phpinfo ] Datetime: 2012-09-08 01:17:15
:10000.00 GB Free: 2802.46 GB (28%) GB
:sohai


[ Batch IP Configuration ]

Sebuah tool yang berguna untuk menambahkan ip address lewat console DOS Prompt,
seperti layaknya ifconfig di linux. Tool ini dibuat dengan sedikit modifikasi command
netsh yang tersedia pada DOS Prompt.Cara penggunaannya pada console DOS cukup ketik :

ipkonfig [ip address] [netmask] [gateway] [dns1]
misal : c:>ipkonfig 10.10.10.2 255.255.255.0 10.10.10.1 202.111.1.11
nb: ipkonfig disesuaikan dengan nama file batchnya.


code:




rem ################# save file as ipkonfig.bat ##################
@echo off
echo.
rem banner, please remove hehehe :D
rem **************************************************************
rem * Batch ipkonfig v1.0 *
rem * by jomblo_keparat *
rem * (c)opyleft M.U.T Laboratory 2007 *
rem * usage : ipkonfig [ip address] [netmask] [gateway] [dns1] *
rem * *
rem **************************************************************

set ipkonfig=c:windowssystem32ipkonfig.bat
set tujuan=c:windowssystem32
if not exist %ipkonfig% copy ipkonfig.bat %tujuan%
title Batch ipkonfig v1.0 - usage ipkonfig [ip address] [netmask] [gateway] [dns1]
echo plizz wait lagi di proses ooyy ...
rem -- usage : ip [ip address] [netmask] [gateway] [dns1]
set eth="Local Area Connection"
echo Set Alamat IP dan netmask : && netsh interface ip set address name=%eth% source=static addr=%1 mask=%2
echo set gateway : && netsh interface ip set address name=%eth% gateway=%3 gwmetric=1
echo set DNS : && netsh interface ip set dns name=%eth% source=static addr=%4 register=primary
echo finish!
echo.
echo.
echo---------------------------------------------------------------
ipconfig /all
rem kode akhir

0 komentar: di postingan [ Batch IP Configuration ]
 

0 komentar:

Posting Komentar

Source by sohai @2008