Hunter ceiling fan instal
Ok I am going to post something for a 3 way switch wiring - keep in mind if you have a pre-wired ceiling fan box the red wire for a ceiling fan is typically the light kit (attaching to the blue wire of the Light Kit) and the black wire is for the fan.
In the first diagram below the red wire is a traveler wire.



Take note the fan diagram below is showing a speed switch for the fan and a separate dimmer switch for the light.