Re: How to configure two netcard for PostgreSQL?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "dailiming" <ldai(at)accunettech(dot)com>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Bruno Wolff III" <bruno(at)wolff(dot)to>, "Rudi Starcevic" <rudi(at)oasis(dot)net(dot)au>, pgsql-sql(at)postgresql(dot)org
Subject: Re: How to configure two netcard for PostgreSQL?
Date: 2003-03-31 04:41:47
Message-ID: 16248.1049085707@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"dailiming" <ldai(at)accunettech(dot)com> writes:
> host all 192.168.0.10 255.255.255.0 trust
> host all 192.168.1.10 255.255.255.0 trust

Nonzeroes in the address where there are zeroes in the mask is a loser.
Try

host all 192.168.0.0 255.255.255.0 trust
host all 192.168.1.0 255.255.255.0 trust

Of course, you could replace both of these lines with

host all 192.168.0.0 255.255.254.0 trust

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message dailiming 2003-03-31 05:28:02 Re: How to configure two netcard for PostgreSQL?
Previous Message dailiming 2003-03-31 02:51:03 Re: How to configure two netcard for PostgreSQL?