I used to use the following commands in order to release and renew the IP address:
dhclient -r
dhclient eth0
But dhclient is not installed on Ubuntu 24.04.
I could probably just install it, but maybe there is another command that come instead of dhclient in the new release?