Skip to content

Setting the IP address in Windows Server

Information

The Netsh utility program is used to configure the IP address in Windows Server OS.

How to configure DHCP

Attention

Active DHCP services on external Ethernet interfaces are forbidden by the Terms and Conditions of services and the use of the site.

Installation of automatic start type of DHCP service:

netsh interface ip set address "LOCAL_AREA_CONNECTION" dhcp

How to set up a static IP address

netsh interface ip set address "YOUR_IP_ADRESS" "SUBNET_MASK"

The default subnet mask is - 255.255.255.0.

DNS server configuration:

netsh interface ip set dns "INTERFACE_NAME" static 10.10.10.1

Applying a configuration

You should enter the following command to check if the static IP address is configured correctly:

ipconfig /all
netsh interface ip set address auto
netsh interface ip set address ""INTERFACE_NAME"" dhcp