Skip to main content

Vertica connection to IP via NAT

  • December 4, 2017
  • 7 replies
  • 30 views

sreediff
Forum|alt.badge.img

I have vertica 8.1.2 3 node cluster connecting via ado.net with native load balance turned on as round robin. The ip address for three nodes are
private 31.x.x.1 ,31.x.x.2,31.x.x.3
public 16x.x.x.1 ,16x.x.x.2 ,16x.x.x.3
However I have to connect to vertica using a different ip 50.x.x.1 . When I connect without load balance I am able to connect to 50.x.x.1 . When I try to connect with load balance turned on getting error .Failed to connect to <> on host 31.x.x.2 .Reason network error :A Connection attempt failed because the connected party did not properly respond after a period of time,or established connection failed because connected host has failed to respond 31.x.x.2:5433. How can I connect to a different/virtual ip 50.x.x.1 ins such situation.

7 replies

skeswani
Forum|alt.badge.img
  • Participating Frequently
  • December 4, 2017

I believe you need to do something to this effect in order to get it to expose the NAT ip.

https://my.vertica.com/docs/8.1.x/HTML/index.htm#Authoring/AdministratorsGuide/CopyExportData/ChangingNodeExportAddress.htm


skeswani
Forum|alt.badge.img
  • Participating Frequently
  • December 4, 2017

If you run into a problem with the address not being on the interface, since its a NAT. you will need to apply this parameter to get around it.

https://my.vertica.com/docs/9.0.x/HTML/index.htm#Authoring/UsingVerticaOnAWS/MigratingDataBetweenAWSClusters.htm


sreediff
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 4, 2017

Thanks le me try. Does this apply to Vertica 8.x on VPC?


skeswani
Forum|alt.badge.img
  • Participating Frequently
  • December 4, 2017

yes


sreediff
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 4, 2017

currently node IP and export IP is same i.e. private ip. hence guess I need to put the NAT address as export address and put the check network to 1.?


sreediff
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • December 4, 2017

also
when I try to connect from vsql usin vsql -C getting error -could not send SSL negotiation packet socket is not connected


sreeblr
Forum|alt.badge.img+2
  • Participating Frequently
  • December 14, 2017

Thanks a lot. it worked.