Hi@akhtar,
You need to change your network adapter setting. You can follow the below steps.
- Open the configuration file.
$ vim /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=8ab587da-e9b8-4a16-864a-8502f4a041a3
DEVICE=enp0s3
ONBOOT=no
You need to change ONBOOT no to yes. Now you will get your IP automatically when you start your VM. After that, restart your VM. It will work.