Answers:
您应该在Vagrant文件中为此虚拟机设置专用网络。
例如:
Vagrant.configure("2") do |config|
config.vm.define "openvpn" do |openvpn|
openvpn.vm.box = "centos/7"
openvpn.vm.network "private_network", ip: "192.168.50.11"
end
config.vm.define "client" do |client|
client.vm.box = "centos/7"
client.vm.network "private_network", ip: "192.168.50.12"
end
end