5W site logo 5W - мой домашний сайт-блог с картинками, кино и плюшками.

rerun-net.txt

Windows:
ipconfig/release
ipconfig/renew
exit

Linux:
# dhclient -r
# dhclient
если после выполненной команды ip-адрес не будет получен, то можно выполнить следующее:

ifdown eth0
ifup eth0
/etc/init.d/network restart
or
/etc/init.d/networking restart
or
systemctl network restart
_______________________________________
In this example, I am renewing an IP address for my wireless interface:
sudo dhclient -v -r eth0
sudo dhclient -v eth0
_______________________________________
nmcli command (NetworkManager) to renew IP address in Linux

The NetworkManager daemon attempts to make networking configuration and operation as painless and automatic as possible by managing the primary network connection and other network interfaces, like Ethernet, WiFi, and Mobile Broadband devices command-line tool for controlling NetworkManager. The nmcli is a command-line tool for controlling NetworkManager and getting its status. To renew IP address using nmcli for connection named ‘nixcraft_5G’ (use ‘nmcli con‘ command to get list of all connections):

nmcli con
nmcli con down id 'nixcraft_5G'
nmcli con up id 'nixcraft_5G
_________________________________________
Best way most likely is to just issue these commands since your definitely on a DHCP connection:

dhcpcd -k

And then simply run it again without the -k like:

dhcpcd

This will kill your DHCP connection and then running it will query the server to pull another IP. But don't be alarmed if the server gives you the same IP, most will cache the MAC addresses and just issue the same IP over and over..