Learn how to setup a static IP address in Ubuntu.

1) Setup the network adapter setting in the vmware Virtual Machine setting.

2) In your vmware navigate to ths folder.
cd /etc/netplan

3) Edit the YAML file in that folder using your text editor. Note that your YAML file name might look different.
nano 00-installer-config.yaml

4) Try the newly edited YAML file.
sudo netplan try

5) If you are satisfied with your YAML file, applied it.
sudo netplan apply

6) Remot your Ubuntu
sudo reboot

7) DONE!

https://youtu.be/1SHoh_MoaGo