Shows network mapping information on a running vagrant box. In case you forgot.
vagrant plugin install vagrant-netinfo
vagrant netinfo BOXNAME
- Clone it
- Run
bundle install
- Run
bundle exec vagrant up
- Run
bundle exec vagrant netinfo one two
Using the Vagrantfile provided in the gem, you should get following output when both machines are up (with some additional coloring):
Machine 'one' (virtualbox)
guest ip:port host ip:port protocol name
--------------------------------------------------------------
nic[1] :22 -> 127.0.0.1:2222 tcp ssh
nic[1] :80 -> 127.0.0.2:8080 tcp tcp8080
nic[1] :443 -> :8443 tcp tcp8443
nic[1] :53 -> :8053 udp udp8053
Machine 'two' (virtualbox)
guest ip:port host ip:port protocol name
--------------------------------------------------------------
nic[1] :22 -> 127.0.0.1:2201 tcp ssh
nic[1] :80 -> :2200 tcp tcp8080
- Fork it ( https://github.com/vStone/vagrant-netinfo )
- Create a new feature branch
- Commit
- Push to your remote
- Create a new Pull Request