Re: [vagrant-up] where is default vagrantfile to define NAT interface ssh port 2222 to guest 22

2016-10-19 Thread Hongjun Ma
Thanks Alvaro! On Wed, Oct 19, 2016 at 9:52 AM, Alvaro Miranda Aguilera wrote: > hello > > don't do that, is not needed. Thats used by Vagrant to configure the guest. > > If you explain you request like this: > > "How I can ssh from the nodes in the same network as the host to my VM" > > The ans

Re: [vagrant-up] where is default vagrantfile to define NAT interface ssh port 2222 to guest 22

2016-10-19 Thread Alvaro Miranda Aguilera
hello don't do that, is not needed. Thats used by Vagrant to configure the guest. If you explain you request like this: "How I can ssh from the nodes in the same network as the host to my VM" The answer is "add a public network" https://www.vagrantup.com/docs/networking/public_network.html A

Re: [vagrant-up] where is default vagrantfile to define NAT interface ssh port 2222 to guest 22

2016-10-19 Thread Hongjun Ma
Thank you Alvaro. I'd like to overwrite this rule to have the same port forwarding without host ip "127.0.0.1". This rule can only allow me to do vagrant ssh from the vagrant host itself but I want to remote ssh into the guest from other servers in the same network as the host. Assuming the host i

Re: [vagrant-up] where is default vagrantfile to define NAT interface ssh port 2222 to guest 22

2016-10-19 Thread Alvaro Miranda Aguilera
hello that is internally done in Vagrant by design. So the information is on vagrant source code https://github.com/mitchellh/vagrant/blob/7eb1091a7102dd4d2ebab762ee1658689a889880/plugins/kernel_v2/config/vm.rb#L436-L444 anything in particular you are after ? On Tue, Oct 18, 2016 at 8:22 PM, H

[vagrant-up] where is default vagrantfile to define NAT interface ssh port 2222 to guest 22

2016-10-18 Thread Hongjun Ma
I'm curious where the Vagrantfile is to define this default rule? Just use hashicorp/precise64 as example. I don't see it in ~/.vagrant.d directory for the default setting. Thanks Hongjun -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/com