Modify Vagrant’s IP

1. Find the Vagrantfile file locally

This file is originally located on the C drive/user/username/. There will be a Vagrantfile file below. We will find it after opening it.

  config.vm.network "private_network", ip:""

Check the VirtualBox IP before setting the IP.

2. Use the command to reload the configuration file

Open cmd and enter the command

vagrant reload

It's done now

Guess you like

Origin blog.csdn.net/qq_43802454/article/details/127951523