VM lose its ip at reboot

Hi!
I have installed virtual box, and downloadead a centos image … so far, so good …

I keep on the course steps … I assign an IP to the VM, but when I reboot, either it loses its IP or it says “network connection error” during boot up …

Please, help

Make a static ip configuration in your network script.
How to Set Static IP Address and Configure Network in Linux

Unfortunately didn’t work …

I guess it could be some configuration in the windows firewall of the host … perhaps there is a specific paper/configuration to check or adjust that …