Merubah IP address dalam mode GUI mungkin sudah biasa dan terlalu mudah untuk anda. Akan tetapi, pada kasus-kasus tertentu mungkin kita akan sangat memerlukan metode konfigurasi via command prompt ini.
Untuk melakukan konfigurasi melalui command prompt ikuti tahap2 berikut :
1. Masuklah ke dalam mode command prompt.
2. Ketikkan netsh
3. Lalu ketikkan perintah :
untuk ip address static :
interface ip set address name="[nama perangkat]" static [ip.add.res.s] [dn.s.ser.ver] [ga.te.wa.y]
lalu tekan [enter]
atau untuk ip address dynamic :
interface ip set address name="[nama perangkat]" dhcp
lalu tekan [enter]
4. selesai 😀
Contoh :
saia akan merubah untuk konfigurasi sebagai berikut :
IP Address : 55.55.55.99
DNS Server : 255.255.255.0
Gateway : 55.55.55.10
Pertama-tama saia akan coba memeriksa IP Address saia yang sebelumnya
C:\Windows\system32>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 55.55.55.55
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 55.55.55.10
Oke, kita mulai :
1. Berangkat ke command prompt dengan cara : Klik Start -> Run -> cmd -> [enter]
2. Ketik netsh
3. Lalu ketikkan perintah :
Interface ip set address name=”Local Area Connection” static 55.55.55.99 255.255.255.0 55.55.55.10
4. Selesai. Kita cek IP lagi
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 55.55.55.99
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 55.55.55.10
berhasil… mudah bukan ? Dan cara di atas bisa di persingkat dengan langsung mengetikkan perintah berikut di command prompt :
Netsh interface ip set address name=”Local Area Connection” static 55.55.55.99 255.255.255.0 55.55.55.10
netsh jg dapat digunakan untuk konfigurasi-konfigurasi network yang lain, berikut merupakan perintah-perintah yang dapat dikombinasikan dengan netsh :
netsh>help
The following commands are available:
Commands in this context:
.. - Goes up one context level.
? - Displays a list of commands.
abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
advfirewall - Changes to the `netsh advfirewall' context.
alias - Adds an alias.
branchcache - Changes to the `netsh branchcache' context.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
dhcpclient - Changes to the `netsh dhcpclient' context.
dnsclient - Changes to the `netsh dnsclient' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
http - Changes to the `netsh http' context.
interface - Changes to the `netsh interface' context.
ipsec - Changes to the `netsh ipsec' context.
lan - Changes to the `netsh lan' context.
mbn - Changes to the `netsh mbn' context.
namespace - Changes to the `netsh namespace' context.
nap - Changes to the `netsh nap' context.
netio - Changes to the `netsh netio' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
p2p - Changes to the `netsh p2p' context.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
rpc - Changes to the `netsh rpc' context.
set - Updates configuration settings.
show - Displays information.
trace - Changes to the `netsh trace' context.
unalias - Deletes an alias.
wcn - Changes to the `netsh wcn' context.
wfp - Changes to the `netsh wfp' context.
winhttp - Changes to the `netsh winhttp' context.
winsock - Changes to the `netsh winsock' context.
wlan - Changes to the `netsh wlan' context.
Semoga bermanfaat,
Tinggalkan Balasan