Linear elliptic equations which are degenerate elliptic on a closed interior surface Γ which divides in two separate parts the original domain are considered. Existence and uniqueness of a viscosity solution in the whole domain and in every of the subdomains is proved under some conditions on the geometry of Γ.