释放并更新 IP 地址 2022

Release/Renew IP address stands for a process that can assist to resolve network connectivity problems. It can be accomplished using the Command Line on Windows or System Preferences on Mac OS. Release and Renewing IP address implies reassigning the lease of the DHCP IP address of the host device and stating a request for a new IP address. In the first place, the ipconfig /release command is applied to reassign the current IP lease and transmit the server a DHCP alert to notify the old IP address as vacant. The second command –ipconfig /renewasks for a new IP address.

The aforesaid commands assist to solve network connectivity issues that occur due to expired IP addresses or other insignificant system malfunctions. It can assist in resolving IP-related troubles and recover a fully-functioning network connection immediately.
After the Release/Renew IP commands, the Flush DNS command normally follows, which cleans the DNS cache and submits requests to apply new IP address details.

Follow the tutorial below to release and renew IP addresses on Windows 11/10/7, 苹果, and Linux devices. Ensure your network adapter is properly set to Obtain an IP address automatically. 否则, the aforesaid commands won’t function as they should.

How to Release and Renew IP Address on Windows, 苹果, Linux

视窗 11/10/8

时间o release and renew IP address on Windows 10, 8.1 或者 8, implement the milestones provided below.

  1. In Windows 11/10/8, apply Windows search to locate Command Prompt.
  2. 右键点击 Command Prompt 并选择 Run as Administrator command. Command Prompt - Run as Administrator
  3. In User Account Control 窗户, 选择 是的.
  4. In CMD, specify ipconfig /release 并击中 进入.
  5. 然后, specify ipconfig /renew 并击中 进入. ipconfig /release
  6. Take time until the DHCP server sets a new IP address for your device.

视窗 7 and Vista

Refer to these milestones to apply ipconfig /release and ipconfig/renew commands on 视窗 7 or Vista.

  1. Windows menu, afterwards specify cmd in Windows search field.
  2. 右键点击 on the Command Prompt area and select Run as Administrator in the menu. cmd Windows 7
  3. In User Account Window, 选择 是的.
  4. 在此刻, type the following command in the Command Prompt: ipconfig /release 并击中 进入.
  5. Specify ipconfig /renew 并击中 进入. ipconfig /renew

Mac OS

  1. Go to the Apple logo in the upper-left area of the screen and choose 系统偏好设置. Apple System Preferences
  2. 在此刻, 继续 Network. Apple Network
  3. In the left area, 选择 Wi-Fi 或者 Ethernet (based on which one you’re applying). Afterwards select Advanced… button on the right area of the Network menu. Apple Wi-Fi Advanced
  4. 选择 TCP/IP tab. 在此刻, you may notice that Configure IPv4 is tuned to Using DHCP. 选择 Renew DHCP Lease 按钮.
  5. Take time until you notice a change in IPv4 address. The process is fully accomplished.

Linux/Ubuntu

时间he tutorial below gives an identical example of ipconfig /release and ipconfig /renew commands on Linux. Follow these milestones to encourage DHCP Client to Renew IP Address.

  1. Use the CTRL+ALT+T hotkey to open Terminal on Linux.
  2. In Terminal, specify sudo dhclient – r 并击中 进入 to vacate the present IP.
  3. 然后, specify sudo dhclient 并击中 进入 to obtain a new IP address via DHCP server.Linux/Ubuntu sudo dhclient – r

Useful DNS Resolver Commands for Windows

Apart from the Renew and Release IP commands, you might have to or require to apply some of the commands mentioned below.

  1. ipconfig /flushdns. Such command assist in clearing the DNS Resolver cache to make sure that the new IP data is fetched immediately.
  2. ipconfig /registerdns. Such a command refreshes all available DHCP leases and registers DNS names from the beginning.
  3. ipconfig /displaydns. Indicates available contents located in DNS Resolver Cache.

Fix IPconfig release renew not working

IPConfig /Release and /Renew commands function only if your network adapter is tuned to call out the IP address automatically. To say it otherwise, you ought to have DHCP activated. You can set these parameters by means of Windows Network and Sharing Center.

  1. 继续 网络和共享中心, 之后选择 Change adapter settings.
  2. 右键点击 your network adapter and start 特性.
  3. Locate Internet Protocol Version 4 ( TCP /IPv4) 并选择 特性.
  4. 选择 Obtain IP Address automatically 并选择 好的 to apply changes.

关于作者

瓦尔迪斯·科克

安全工程师, 逆向工程和内存取证

发表评论