In this paper, a new method to implement the Perfect shuffle[3] with the Dammann grating[1,2] used for optical interconnection is proposed. The combination of a 2×2 Dammann grating and an imaging lens is functional as a conventional lens composed of 4 off-axis subpherical lenses. The Position of the image point is determined by the distance between the Dammann grating and the output plane. Properly chosing the position of Dammann grating, we can realize Perfect shuffle with various density and various capacity. The theory and the experimental result was presented.