Hello Can you share the following please:
- Vagrantfile you are using - Lan ip segment, ie 192.168.10.x - It does dhcp or will be using fixed ip - Whats the gateway there, if you don't now, can you see on your host computer - How you will know what VM have what ip? how you will know how to connect to the one you want to connect? With that, I can help you :) Alvaro. On Sat, Feb 27, 2016 at 2:32 PM, Evanilson Abril <[email protected] > wrote: > > Hello, > > I have being struggling with this problem for 3 days now and I > Can figure out the solution, please help me!! > > I want to setup a development environment for my company using > vagrant. Each developer has an machine on the LAN network but I want to be > able to make these machines available on the public network, what I mean by > that is be able to ping these machines from a different network (for > example ping this machines from another country). > > I used the setup on the vagrantup.com documents but its not > working, I am using the following setup > > > > config.vm.network "public_network", ip: "192.168.0.17" > # default router > config.vm.provision "shell", > run: "always", > inline: "route add default gw 192.168.0.1" > > # default router ipv6 > config.vm.provision "shell", > run: "always", > inline: "route -A inet6 add default gw fc00::1 eth1" > > # delete default gw on eth0 > config.vm.provision "shell", > run: "always", inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && > $2 != \"0.0.0.0\") print \"route del default gw \" $2; }'`" > > > But I am not able to access this machine. By the way I am able to access > them from the host machine, but not from a different network > Please can someone help me ? > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/e9cead21-d77d-41d0-ad50-679682324851%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/e9cead21-d77d-41d0-ad50-679682324851%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ey5BXef1LzsD7O7cvB3CYShS2XJvBeCfQ3EZo4Einvtsw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
