为什么我的虚拟机上有两个接口?

为什么我的虚拟机上有两个接口?

对于我的一个项目,我通过定义私有 IP 使用标准 Vagrantfile 创建虚拟机 在此输入图像描述

流浪文件

hosts = {
"n1" => "192.168.77.10",
"n2" => "192.168.77.11",
"n3" => "192.168.77.12",
"n4" => "192.168.77.13"
}

Vagrant.configure("2") do |config|
# always use Vagrants insecure key
    config.ssh.insert_key = false
# forward ssh agent to easily ssh into the different machines
    config.ssh.forward_agent = true
    check_guest_additions = false
    functional_vboxsf = false
    config.vm.box = "ubuntu/bionic64"

    hosts.each do |name, ip|
     config.vm.define name do |machine|
      machine.vm.network :private_network, ip: ip
      machine.vm.provider "virtualbox" do |v|
       v.name = name
      end
     end
    end
end

我怎么会有 enp0s3 和 enp0s8 接口?

相关内容