Total Pageviews


[Windows] Utilize netsh Command to configure TCP/IP

Frequently used commands are the following:

Show IP configuration
netsh interface ip show config

Configures the interface named 區域連線 with the static IP address, the subnet mask of, and a default gateway of
netsh interface ipv4 set address name="區域連線" source=static address= mask= gateway=

Configuures primary and secondary DNS:
netsh interface ipv4 add dnsserver "區域連線" address= index=1
netsh interface ipv4 add dnsserver "區域連線" address= index=2

Configures static IP address to DHPC:
netsh interface ip set address "區域連線" dhcp

Clear DNS configuration
netsh interface ip set dns "區域連線" dhcp

No comments: