Vagrant Can';由于没有基本MAC地址错误,无法启用端口转发

Vagrant Can';由于没有基本MAC地址错误,无法启用端口转发,vagrant,vagrantfile,Vagrant,Vagrantfile,我正在尝试启用端口转发,以便可以从本地计算机访问我的漫游箱,但每当我运行我的漫游箱时,都会出现此错误 No base MAC address was specified. This is required for the NAT networking to work properly (and hence port forwarding, SSH, etc.). Specifying this MAC address is typically up to the box and box main

我正在尝试启用端口转发,以便可以从本地计算机访问我的漫游箱,但每当我运行我的漫游箱时,都会出现此错误

No base MAC address was specified. This is required for the NAT networking
to work properly (and hence port forwarding, SSH, etc.). Specifying this
MAC address is typically up to the box and box maintainer. Please contact
the relevant person to solve this issue.
但当我重新运行
vagrant up
命令时,它运行得很好,只是我无法从主机ping它

我正在使用我的
vagrant文件中的以下行启用端口转发

   config.vm.network :forwarded_port, guest: 80, host: 4567
我正试图在我的主机上ping它,如下所示

ping 127.0.0.1:4567
有人能告诉我如何修复这个mac错误问题,以便我可以从本地机器ping和访问我的机器吗

编辑: 我已经尝试了这段代码来设置MAC地址,但它也没有做任何事情

 config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--macaddress1", "auto"]
  end