  We propose a scheme to generate an effective interaction of arbitrary
strength between the internal degrees of freedom of two atoms placed in distant
cavities connected by an optical fiber. The strength depends on the field
intensity in the cavities. As an application of this interaction, we calculate
the amount of entanglement it generates between the internal states of the
distant atoms. The scheme effectively converts entanglement distribution
networks to networks of interacting spins.
