Take off the speedo cable from the transfer case. Remove the "keeper" from the speedo gear holder and turn it until the gears mesh (you can tell because the part that the cable goes into won't spin free). Intall the keeper in the proper slots and install cable.
*edit by pyagid uncalled for comment, and spelling