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.
For more options, visit https://groups.google.com/d/optout.