4-way switch wiring, you will need two 3-way switches (one at each end) and then as many 4-way switches as you want in between. 2 wire cable runs from the light to the first switch, and then 3 wire is run between all the switches.
3-Way and 4-Way Wiring
At the light, the black (hot) wire will pass right through going to the first switch. Attach it to the white wire of the wire running to the switch. The white wire from the power source will attach to the light’s white wire. The light’s black wire should be attached to the black wire running to the first switch.
At the first switch 3-way switch, the white wire coming from the light, will be connected to the dark colored screw. Color the end black with black paint or a black marker to indicate it is hot. The red and white wire of the 3-wire going to the next switch should be attached to the light colored screws. Connect the black wire of the 3 wire cable to the black coming into the switch from the light.
At each of the next switches except the last, use 4-way switches, attach the the red and white of the wire coming into the switch to the bottom of the switch’s screws. Attach the red and white of the wire leading to the next switch to the screws at the top of the switch. Attach the two blacks together. At the last switch 3-way switch attach the black wire to the dark screw and the white and red to the light colored screws.