- Prison Code Breaker Diary -

=> aka: Nhật Kí Code Tù

Categories

By using the utility netsh, you may find it easily to manage your network. Yes, it's pretty much convenient.

1. Show network information:


netsh interface ip show config


2. Change setting of ip address, mask and gateway

netsh interface ip set address name="Network Name" static ip_address subnet_mask gateway 1


Sample: set Local Area Connection to static address 192.111.215.96, mask = 255.255.255.252, gateway = 192.111.215.1

netsh interface ip set address name="Local Area Connection" static 192.111.215.96 255.255.255.252 192.111.215.1 1


2. Change DNS setting
+ set DNS

netsh interface ip set dns "Network Name" static dns_address

+ add DNS

netsh interface ip add dns "Network Name" dns_address index=2


3. Export IP setting to file:

netsh -c interface dump > C:\setting.txt


4. Import IP setting from file:

netsh -f C:\setting.txt

or

netsh exec C:\setting.txt


5. Using DHCP
+ Simply add 'dhcp' at the end of your command :D

netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp



Have fun!

0 comments

Post a Comment