Professional Documents
Culture Documents
Netsh
Netsh
txt #netsh interface ip show config #netsh interface ip set address name="Local Area Connection" static 192.168.0.10 0 255.255.255.0 192.168.0.1 1 #netsh interface ip set address "Local Area Connection" dhcp #netsh interface ip set dns "Local Area Connection" static 192.168.0.200 #netsh interface ip set wins "Local Area Connection" static 192.168.0.200 #netsh interface ip set dns "Local Area Connection" dhcp #======================== # Interface configuration #======================== pushd interface reset all popd # End of interface configuration #======================== # Interface configuration #======================== pushd interface ipv6 install reset
# Port Proxy configuration #======================== pushd interface portproxy reset popd # End of Port Proxy configuration
# ---------------------------------# Interface IP Configuration # ---------------------------------pushd interface ip # Interface IP Configuration for "Local Area Connection" set address name="Local Area Connection" source=static addr=192.168.10.48 mask=2 55.255.255.0 add address name="Local Area Connection" addr=10.128.60.48 mask=255.255.255.0 add address name="Local Area Connection" addr=10.128.65.108 mask=255.255.255.0 add address name="Local Area Connection" addr=10.128.61.240 mask=255.255.255.0 add address name="Local Area Connection" addr=192.168.2.48 mask=255.255.255.0 set address name="Local Area Connection" gateway=192.168.10.1 gwmetric=0 set dns name="Local Area Connection" source=static addr=192.168.10.1 register=NO NE add dns name="Local Area Connection" addr=192.168.2.1 index=2 set wins name="Local Area Connection" source=static addr=none # Interface IP Configuration for "VirtualBox Host-Only Network" #set address name="VirtualBox Host-Only Network" source=static addr=192.168.56.1 mask=255.255.255.0 #set dns name="VirtualBox Host-Only Network" source=static addr=none register=PR IMARY #set wins name="VirtualBox Host-Only Network" source=static addr=none popd # End of interface IP configuration