We present the results for the temperature and field dependence of the magnetic for ceramic materials of the composition La2−xMxNiO4, with M=Sr or Ca and 0≤x≤0.4. The onset of a strong diamagnetism has been observed at temperatures between 8 and 70 K, depending on sample composition, annealing conditions. and thermal cycling procedures. The results are similar to those obtained earlier for monocrystalline samples and are likewise interpreted as due to the onset of superconductivity in a minority phase. A comparison with the results for superconducting La1.8Sr0.2Cu0.9Ni0.1O4 ceramics is also made; this illustrates some unique features of the nickelate systems, such as the high values of the critical fields Hc1 and Hc2. The differences between monocrystalline and ceramic systems are also discussed.