I'm using 64-bit ArchLinux and dhcpcd. How to retrieve new IP using dhcpcd
? I've tried to restart the daemon, the IP address i got still the same
$ ifconfig
enp3s0: flags ...
inet xxx ...
$ sudo dhcpcd@enp3s0
$ ifconfig
enp3s0: flags ...
inet xxx ... ==> not changed
I've tried using sudo dhclient -v -r
but the IP still the same.
I've found a way, but it still requires clicking on the system tray (disconnect, reconnect):
$ sudo rm /var/lib/dhcpcd/dhcpcd-enp3s0.lease
$ sudo systemctl restart dhcpcd@enp3s0
# right click on the network icon on system tray, disconnect, reconnect