Saturday, July 7, 2007

NETSH - Configure TCP/IP from the command line

Show TCP/IP setting

netsh interface ip show config

Configure static IP

netsh interface ip set address name="Local Area Connection" static 10.21.11.81 255.0.0.0 10.21.11.254 1

Configure DHCP client

netsh interface ip set address "Local Area Connection" dhcp

Configure DNS setting

netsh interface ip set dns "Local Area Connection" static 202.188.0.133

Configure DNS setting 2

netsh interface ip add dns "Local Area Connection" 202.188.1.5 index=2

Configure DNS by DHCP

netsh interface ip set dns "Local Area Connection" dhcp

Configure WINS setting

netsh interface ip set wins "Local Area Connection" static 192.168.0.200

http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/04/04/Using-Netsh-to-Manage-Network-Interfaces-Part-2.aspx

http://cwashington.netreach.net/depo/view.asp?Index=1155&ScriptType=command


No comments:

LinkWithin

Related Posts with Thumbnails