@ Echo off
Echo sets IP addresses
ECHO is setting the IP address and subnet mask.
Netsh interface IP Set address name = "Local Connection" Source = static ADDR = 192.168.0.2 mask = 255.255.255.0
Echo sets Gateway
Netsh interface IP Set address name = "Local Connection" Gateway = 192.168.0.1 gwmetric = 0
Dns1 is preferred for ECHO settings
Netsh interface IP Set address name = "Local Connection" Source = static ADDR = 192.168.0.3 register = primary
Echo sets the standby dns2. If this row is not foundCodeDelete
Netsh interface IP add DNS name = "Local Connection" ADDR = 192.168.0.4
Netsh interface IP Set wins name = "Local Connection" Source = static ADDR = none
@ Echo off
Echo settings automatically get IP addresses
Netsh interface IP Set address name = "Local Connection" Source = DHCP
Netsh interface IP Set DNS name = "Local Connection" Source = DHCP