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.
In the window that opens, suction stop Change adapter settings to display the available network adapters of the machine .
Right-click the adapter you are about to change the IP settings and then click Properties .
Click Internet Protocol Version 4 (TCP / IPv4) and then the Properties button .
here, enable Use the follow IP address and enter the static IP addresses for the server, subnet dissemble, nonpayment gateway and DNS servers .
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 .
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, |
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 .
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 .
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 .
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
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 .