Hi Robert,

It does sound like your host (laptop/desktop) has a Postgres running and 
therefore won't allow you to use port 5432 (on the host).

I would suggest you take it step by step.

1. Can you use psql locally on db00 host?
So vagrant ssh into the db00 host and try all the commands:

psql
psql -h 127.0.0.1 -p 5432  # loopback interface
psql -h 192.168.2.101 -p 5432 # private interface
psql -h 10.0.2.15 -p 5432   # NAT'ed interface

2. If the first step checks out (step #1 is about verifying that postgres 
is listening on port 5432 and will accept connections on all interfaces, 
i.e. 0.0.0.0)
vagrant ssh into the web00 host and run

psql -h 192.168.2.101 -p 5432

You can also try:

nmap 192.168.2.101   # in order to test that web00 can scan db00 and can 
detect a port open on 5432

3. Now, you can try from the host

psql -h 192.168.2.101 -p 5432
psql -h 10.0.2.15 -p 5432


You are probably very close and there's something we're missing. Hopefully 
performing these steps will help you flush it out.
Dennis

-- 
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/26f46993-c396-4afa-90cc-af138d9866dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to