In this paper, we propose and analyze the interior penalty discontinuous Galerkin method for H(div)-elliptic problem. An optimal a priori error estimate in the energy norm is proved. In addition, a residual-based a posteriori error estimator is obtained. The estimator is proved to be both reliable and efficient in the energy norm. Some numerical testes are presented to demonstrate the effectiveness of our method.