For one of my projects,I cretead Vm with standard Vagrantfile,by defining private IP enter image description here


hosts = {
"n1" => "",
"n2" => "",
"n3" => "",
"n4" => ""

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

How it comes that I have enp0s3 and enp0s8 interfaces?

  • 1
    Could you share the relevant parts of the vagrantfile? According to one page, this can happen if you repeat the config.vm.network definition. – Jeff Schaller May 30 at 16:10
  • It seems to me hat my loop is not repeating definition. – MikiBelavista May 30 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.