Oracle VB setup Demo | VM's are unable to reach internet

Above is the ss, which shows that I have created a centos VM and configured a Host-Only network and the NAT in adapter-1.
I tested ping between VMs and SSH connectivity, which worked fine. But, the VMs cannot reach the internet even though there is a NAT adapter configured!

Hello @sr584403,
What’s the output of this command ifconfig or this ip a ?

Hello @sr584403,
Try to run these commands and check again:

nmcli con delete enp0s3

nmcli con add con-name "enp0s3" ifname enp0s3 type ethernet ipv4.method manual ip4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.dns 8.8.8.8

nmcli con up enp0s3