kali linux renew ip address

C++
$ sudo dhclient -r
$ sudo dhclient
Source

Also in C++: