The following figure shows the pin outs for building a straight-through cable assembly. The same pin outs are used for both ends of the cable.