In this paper, we show the followings: (i) If a volume preserving diffeomorphism f belongs to the C-interior of the set of all volume preserving diffeomorphims having the ergodic shadowing property then it is transitive Anosov. Moreover, (ii) if a C-generic volume-preserving diffeomorphism f has the ergodic shadowing property then it is transitive Anosov. M.S.C. 2010: 37C50, 37D20.