The invention relates to core/sheath glass with good compatibility for a rigid optical fiber, which comprises core glass and sheath glass. The core glass is optical glass with the refractive index (nd) of 1.850-1.865, the content of BaO is 20-45 percent, the content of La2O3 is 18-27 percent, the content of B2O3 is 12-20 percent, the content of Nb2O5, Y2O3 and Ta2O5 is 5-20 percent, the content of ZrO2 is 3-10 percent, the content of Al2O3 is 0-6 percent, the content of CaO is 0-5 percent, the content of K2O is 1-1.5 percent, and the content of Na2O is 0.5-0.8 percent. The sheath glass is optical glass with the refractive index (nd) of 1.495-1.515, the content of SiO2 is 63-69 percent, the content of B2O3 is 16-21 percent, the content of Na2O is 0.5-1 percent, the content of K2O is 7-12 percent, the content of Al2O3 is 0-6 percent, the content of CaO is 0-2.5 percent, the content of BaO is 0.2-1.8 percent, and the content of MgO is 0.5-1.5 percent. The invention has the beneficial effects that: the core glass and the sheath glass have good compatibility and are optical glass with matching thermal properties and compatible chemical properties. No neutralization reaction or harmful ion diffusion can be caused on interfaces after hot melting of the two kinds of glass.