Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Configuring network settings on a Windows machine is an essential task for ensuring proper connectivity and network performance. This article will guide you through the process of configuring network settings using both the graphical interface and command-line tools available in Windows.
Access Network and Sharing Center:
Change Adapter Settings:
Configure TCP/IP Settings:
Save Changes:
Open Command Prompt:
Win + R
, type cmd
, and press Enter to open the Command Prompt.View Current Network Configuration:
ipconfig
to display the current network configuration.Set a Static IP Address:
netsh
command to configure a static IP address. Replace the placeholders with your actual network details:
netsh interface ip set address name="Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1
Set DNS Servers:
netsh interface ip set dns name="Ethernet" static 8.8.8.8
netsh interface ip add dns name="Ethernet" 8.8.4.4 index=2
Revert to DHCP:
netsh interface ip set address name="Ethernet" source=dhcp
netsh interface ip set dns name="Ethernet" source=dhcp
Open PowerShell:
Win + X
and select "Windows PowerShell" or "Windows PowerShell (Admin)" for elevated privileges.View Network Configuration:
Get-NetIPConfiguration
to view current settings.Set a Static IP Address:
New-NetIPAddress
cmdlet to set a static IP address:
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.1.100 -PrefixLength 24 -DefaultGateway 192.168.1.1
Set DNS Servers:
Set-DnsClientServerAddress
cmdlet:
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("8.8.8.8","8.8.4.4")
Revert to DHCP:
Remove-NetIPAddress
cmdlet to remove the static IP and revert to DHCP:
Remove-NetIPAddress -InterfaceAlias "Ethernet" -Confirm:$false
By following these steps, you can effectively manage and configure network settings on a Windows machine using both the graphical interface and command-line tools.