We study a spherically symmetric spacetime made of anisotropic fluid of which radial equation of state is given by p1 = −ρ. This provides analytic solutions and a good opportunity to study the static configuration of black hole plus matter. For a given equation-of-state parameter w2 = p2/ρ for angular directions, we find exact solutions of the Einstein's equation described by two parameters. We classify the solution into six types based on the behavior of the metric function. Depending on the parameters, the solution can have event and cosmological horizons. Out of these, one type corresponds to a generalization of the Reissiner-Nordström black hole, for which the thermodynamic properties are obtained in simple forms. The solutions are stable under radial perturbations. * Electronic address: iycho@seoultech.ac.kr † Electronic address: hckim@ut.ac.kr