$\Delta T_b=i K_b m$
Two solutions having same molality and same van't Hoff factors will have same elevation in boiling points $\left(\Delta T_b,\right)$ and thus, have same boiling points $\left(T_b,\right)$
For $NaCl , i=2 ; MgSO _4, i=2 ; MgCl _2, i=3 ; Al _2\left( SO _4\right)_3, i=5$ and $AlCl _3, i=4$.
Thus; one molal solution of sodium chloride in water has the same boiling point as one molal solution of $MgSO _4$