ipconfig /relase
ipconfig /renew
--------------------------------------------------------------------------------------------
To check or configure IP settings using Windows Command Prompt (CMD), here are some common commands you can use:
1. View Current IP Configuration
Open Command Prompt and type:
This will show basic IP info like your IPv4 address, subnet mask, and default gateway.
If you want more detailed info, use:
This displays full details for all network adapters, including MAC addresses, DHCP status, DNS servers, etc.
2. Release and Renew IP Address (For DHCP)
If your PC gets its IP from a DHCP server and you want to refresh it, use:
-
Release current IP:
-
Renew IP address:
3. Flush DNS Cache
To clear the DNS resolver cache:
4. Set a Static IP Address (using netsh
)
You cannot set IP directly with ipconfig
. For setting a static IP, use netsh
:
Example:
-
Replace
"Ethernet"
with your network adapter name (usenetsh interface show interface
to list). -
192.168.1.100
= IP address -
255.255.255.0
= Subnet mask -
192.168.1.1
= Default gateway
To set DNS servers:
You can add secondary DNS by:
No comments:
Post a Comment