Pages

Wednesday, 18 November 2015

Set up IP Address Windows via Command prompt

Sometime you need to entry your IP address via command prompt, easy sample when you as IT support, and the client want to set up manual an IP Address depends your condition, you can use this script:

For interface name depends of your LAN name, below I set up on network with LAN name “Local Area Connection”,

  • Set up an IP Address static

For IP Address :
netsh interface ip set address name=”Local Area Connection” static 192.168.1.101 255.255.255.224 192.168.1.100

For Primary DNS:
netsh interface ip set dns name=”Local Area Connection” static 10.10.8.5

For Secondary DNS :
netsh interface ip add dns name="Local Area Connection" 10.10.8.2 index=2

  •          Set up an IP Address DHCP

For IP Address :
netsh interface ip set address “Local Area Connection” dhcp

For DNS :
netsh interface ip set dns name=”Local Area Connection” source=dhcp


Before you running script an IP Address DHCP, ensure the LAN cable or WiFi already connected.
run the script on your Command Prompt,

1 comment:

GPT Protective Partition pada Hard disk

  Terkadang, setelah menyambungkan hard disk internal atau eksternal ke sistem Anda, Disk Management Windows memberi tahu bahwa hard disk te...