To manually set the IP, you must write the configuration as required
1. How to configure IP address, subnet mask and gateway
Click on Virtual Network Editor
Click on NAT Settings
Copy the gateway and subnet mask; the configured IP address must be within the network segment of the subnet IP;
2. How to configure DNS
You can enter the command nmcli dev show in the dynamic IP mode (DHCP) to view DNS