How to set IP segment and connection string with IPv6?
3
votes
1
answer
2291
views
For this PostgreSQL configuration example:
https://repmgr.org/docs/4.4/quickstart-authentication.html
local replication repmgr trust
host replication repmgr 127.0.0.1/32 trust
host replication repmgr 192.168.1.0/24 trust
local repmgr repmgr trust
host repmgr repmgr 127.0.0.1/32 trust
host repmgr repmgr 192.168.1.0/24 trust
I have two questions.
# Question 1
This is how a netmask looks for IPv4: 192.168.1.0/24
.
How to do with an IPv6 IP address like 230b:c010:103:5858:a6a3:3:0:1
?
# Question 2
If use JDBC to connect to a PostgreSQL server, I can use a connection URL containing 192.168.1.11:5432
. How to do it with IPv6? Is it like 230b:c010:103:5858:a6a3:3:0:1:5432
?
Asked by rawmain
(359 rep)
Dec 18, 2019, 06:17 AM
Last activity: Dec 18, 2019, 09:52 AM
Last activity: Dec 18, 2019, 09:52 AM