How to configure network settings in Windows Server 2016 – Dimitris Tonias

Configuring network settings is one of the first steps you will need to take on Windows Server 2016. Whether you are using the GUI or Core version, changing the IP address, Subnet Mask, Default Gateway, and DNS Servers can be done in different ways depending on the case .
In today ’ south article, you will see how to change the basic IPv4 network settings for your machine ’ s adapters using the GUI, PowerShell, SConfig, and dominate prompt .

Configure network settings using the graphical user interface

Ok, the procedure is more than simple, but I mention it to make the article more complete .
Right-click the network picture in the notification area, and then click Open Network and Sharing Center.

How to configure network settings in Windows Server 2016
In the window that opens, suction stop Change adapter settings to display the available network adapters of the machine .
How to configure network settings in Windows Server 2016
Right-click the adapter you are about to change the IP settings and then click Properties .
How to configure network settings in Windows Server 2016
Click Internet Protocol Version 4 (TCP / IPv4) and then the Properties button .
How to configure network settings in Windows Server 2016
here, enable Use the follow IP address and enter the static IP addresses for the server, subnet dissemble, nonpayment gateway and DNS servers .
How to configure network settings in Windows Server 2016
That ’ s it !

Configure network settings using PowerShell

first gear, we need to identify the InterfaceIndex number for the net arranger we want and then based on that, we will proceed to set it up .
By typing the Get-NetIPConfiguration cmdlet you can see the current IP settings of all the network adapters of the machine. Note the InterfaceIndex .
alternatively, type the Get-NetAdapter cmdlet to see the available network adapters. Note the numeral again in ifIndex .
How to configure network settings in Windows Server 2016
To set the IP address, the Subnet ( PrefixLength ) and the Default Gateway, type the following command by changing the addresses according to your own network .

New -NetIPAddress  -InterfaceIndex  2  -IPAddress 192.168.2.100  -PrefixLength  24  -DefaultGateway 192.168.2.1

New-NetIPAddress -InterfaceIndex 2 -IPAddress 192.168.2.100 -PrefixLength 24 -DefaultGateway 192.168.2.1 To set up DNS servers, use the follow Set-DnsClientServerAddress command .

Set -DnsClientServerAddress  -InterfaceIndex  2  -ServerAddresses 192.168.2.10,  192.168.2.11

Set-DnsClientServerAddress -InterfaceIndex 2 -ServerAddresses 192.168.2.10, 192.168.2.11 You can use the Get-NetIPConfiguration cmdlet again to confirm that it has declared the right settings .

Configure network settings using the SConfig tool

For a more synergistic process, you can use the SConfig creature through PowerShell. Type SConfig and weigh Enter .
How to configure network settings in Windows Server 2016
To change the network settings, type the numeral 8 that corresponds to Network Settings .
Type the index count of the arranger you want to set up .
How to configure network settings in Windows Server 2016
then use Options 1 and 2 to set the IP address, Subnet Mask, Default Gateway, and the adapter ’ sulfur DNS servers. I do not think I need to go far into this while, it ’ mho pretty easy and intuitive .
How to configure network settings in Windows Server 2016

Configure network settings using the Command Prompt

In this case, we will use the netsh instruction .
beginning, run the play along command to note the diagnose of the adapter you are going to set up. In our case is Ethernet0 .

netsh interface ipv4 show config

netsh interface ipv4 picture config How to configure network settings in Windows Server 2016
To change your IP address, Subnet Mask and Default Gateway, type the adopt command by changing the addresses according to your own settings .

netsh interface ipv4  fructify address name = "INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY

netsh interface ipv4 set address name = “ INTERFACE NAME ” electrostatic IP_ADDRESS SUBNET_MASK GATEWAY For example, it will be something like this .

netsh interface ipv4  set address name = "Ethernet0" static 192.168.2.100 255.255.255.0 192.168.2.1

netsh interface ipv4 set address name = “ Ethernet0 ” inactive 192.168.2.100 255.255.255.0 192.168.2.1 adjacent, to configure the Primary DNS Server, use the follow dominate .

netsh interface ipv4  set dns name = "INTERFACE NAME" static DNS_SERVER

netsh interface ipv4 set dns name = “ INTERFACE NAME ” static DNS_SERVER For example, it will be something like this .

netsh interface ipv4  plant dns name = "Ethernet0" static 192.168.2.10

netsh interface ipv4 set dns identify = “ Ethernet0 ” static 192.168.2.10 To configure the Secondary DNS Server, use the be command .

netsh interface ipv4  arrange dns name = "INTERFACE NAME" static DNS_SERVER index = 2

netsh interface ipv4 set dns name = “ INTERFACE NAME ” static DNS_SERVER index = 2 similarly to the previous exercise.

netsh interface ipv4  dress dns name = "Ethernet0" static 192.168.2.11 index = 2

netsh interface ipv4 set dns name = “ Ethernet0 ” static 192.168.2.11 index = 2 ultimately, you can use the first command again to confirm that your settings are discipline .

source : https://thefartiste.com
Category : Tech

About admin

I am the owner of the website thefartiste.com, my purpose is to bring all the most useful information to users.

Check Also

articlewriting1

Manage participants in a zoom meeting webinar

Call the people who attend the meet as follows Alternate host host Who scheduled the …

Leave a Reply

Your email address will not be published.