Not able to assign the ip address & not able to ping

IP address is not getting assigned automatically to the host only network type in the oracle virtual box.

Also I am not able to ping the NAT IP address from the host(my laptop)

Hello @seeraeswar,

This post may help: NAT or Host Only adapter not getting IP addresses assigned! - virtualbox.org

Thanks,
Trung.

the provided solution doesn’t work. Can someone please help on how to assign an IP address in the host only method

Try

sudo pkill dhclient 
sudo dhclient

Hi @seeraeswar,
Can you please share the error screenshot? We are here to assist you.

Regards,

I’m also running into this issue. Tried moving forward with the course material and it did not help. Here is a screenshot of the ip addr show.

This solved my issue.

1 Like

Hi @kodekloud121 ,

Glad to hear that your issue is addressed.

Happy learning,
Trung.