The tool feed system main drive shaft of CNC spiral bevel gear milling machine is researched, and the vibration form of the drive shaft is confirmed.The main drive shaft is simplified using the lumped parameter method, the lumped mass model and the force model were been obtained. When bending vibrating, the natural frequency of the main drive shaft is calculated using the transfer matrix method. In order to verify the correctness of the calculations, the vibration of the main drive shaft is simulated by using ANSYS. This paper also designs the vibration control system for the main drive shaft, and analyzes influence factors which affects the vibration of the main drive shaft.