for permanent static IP: https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-20-04/
For Temporary:
First of all, open Terminal. Enter “ip addr show” command to see the available network adapter whom you want to change the IP address and press execute.
ip addr show