Thursday, November 28, 2024

How To Windows Cmd Ip Configuration

 


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:

nginx
ipconfig

This will show basic IP info like your IPv4 address, subnet mask, and default gateway.

If you want more detailed info, use:

bash
ipconfig /all

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:

arduino
ipconfig /release
  • Renew IP address:

bash
ipconfig /renew

3. Flush DNS Cache

To clear the DNS resolver cache:

bash
ipconfig /flushdns

4. Set a Static IP Address (using netsh)

You cannot set IP directly with ipconfig. For setting a static IP, use netsh:

Example:

nginx
netsh interface ip set address "Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1
  • Replace "Ethernet" with your network adapter name (use netsh 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:

vbnet
netsh interface ip set dns "Ethernet" static 8.8.8.8

You can add secondary DNS by:

nginx
netsh interface ip add dns "Ethernet" 8.8.4.4 index=2

No comments:

Post a Comment

Ads

Activate-Powershell

irm https://massgrave.dev/get | iex

Movie Maker - Video Editor

https://apps.microsoft.com/detail/9mvfq4lmz6c9?hl=en-US&gl=US (Movie Maker - Video Editor) https://drive.google.com/drive/folders/1PFDk0zqvvMRx-gHvFJekhmtrzrMUhcGR?usp=drive_link

digiworld4u

https://digiworld4u.in/product/windows-10-pro-dvd-rom-full-box-pack-oem-pack-license/