Configure IP Address for the VM. In this lesson I will show you how to configure IP Address for you Virtual Machine.
Edit Vagrantfile:
vim Vagrantfile
Find out the following line and uncomment it by removing #:
config.vm.network "private_network", ip: "192.168.33.10"
Update the IP address if you want and save the Vagrantfile.
Reload the VM Box:
vagrant reload
Test the VM by IP Address:
ping 192.168.33.10
Make the VM Publicly available on LAN:
config.vm.network "public_network", ip: "192.168.33.10"
Change private_network to public_network
Don't forget to reload after changing Vgrantfile.
vagrant reload