In networking, you should't have more than one network card for a network.

Locally it may work.

so this should work:


         joomla.vm.network :private_network, ip: "192.168.5.2"
         joomla.vm.network :private_network, ip: "192.168.5.3"

but its better have separate networks

so this is better:

         joomla.vm.network :private_network, ip: "192.168.15.2"
         joomla.vm.network :private_network, ip: "192.168.25.3"





On Tue, Oct 31, 2017 at 12:01 PM, <jaguardemo...@gmail.com> wrote:

> Vagrant up - OK
> ping - OK
>
> How add 192.168.5.3?
>
> Vagrant.configure(2) do |config|
>
>     config.vm.define "joomla" do |joomla|
>          # Base temmplate for virtualbox, we use debian 8.9.0 here
>          #joomla.vm.box = "debian/jessie64"
>          joomla.vm.box = "ubuntu/trusty64"
>          # Domain on which our application will respond later on
>          joomla.vm.hostname = "joomla.dev"
>          # IP address will be used by the VM
>          joomla.vm.network :private_network, ip: "192.168.5.2"
>          #joomla.vm.network :private_network, ip: "192.168.5.3"
>
>          # Tell vagrant to run ansible as a provisioner
>          joomla.vm.provision :ansible do |ansible|
>              # where the playbook is located
>              ansible.playbook = "provisioning/playbook.yml"
>              # show the ansible-playbook command used by vagrant
>              ansible.verbose = true
>          end
>      end
>
>      # Access the shared vagrant directory via NFS, otherwise slow on mac
> and windows
>      config.vm.synced_folder ".", "/vagrant", type: "nfs"
>
>      config.vm.provider "virtualbox" do |v|
>          # tell virtualbox to give our machine 1Gb RAM and 1 Cores
>          v.memory = 1024
>          v.cpus =1
>      end
> end
>
>
>
>
> понедельник, 30 октября 2017 г., 19:40:55 UTC+3 пользователь
> jaguar...@gmail.com написал:
>>
>> How setting two or more "ip" for one interface in Vagrantfile?
>>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/c1b97402-3c28-4889-8c3a-89e488beb13b%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/c1b97402-3c28-4889-8c3a-89e488beb13b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0exHjgO4GePNZqcEh6MyB80BdBqagcdifckK%3DFZZ6HxaBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to