為什麼我的虛擬機器上有兩個介面?

為什麼我的虛擬機器上有兩個介面?

對於我的一個項目,我透過定義私有 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 介面?

相關內容