Friday, 16 July 2010

How can I configure TCP/IP settings from Command

Type the following command in a Command Prompt window :-

- view your TCP/IP settings
netsh interface ip show config

- configure your computer's IP address and other TCP/IP related settings
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

- export your current IP settings
netsh -c interface dump > c:\location1.txt

- import your IP settings
netsh -f c:\location1.txt
                                                    
- automatically obtain an IP address from a DHCP server
netsh interface ip set address "Local Area Connection" dhcp

No comments:

Post a Comment