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



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

ifdown eth0
ifup eth0
/etc/init.d/network restart
/etc/init.d/networking restart
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:


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..