Abstract The anti-impact ability of shafting affects stability and security of the ship power transmission directly. Moreover, it also cannot be ignored that the rub-impact loads have influence on the torsion vibration of ship shafting. In order to solve the problem of engineering application of reliability assessment under rub-impact loads, a test rig with rubbing generator is established. By carrying out the integrative analysis, the torsional vibration characteristics, such as vibration amplitude and orbit of axle center under the rub impact load are studied. According to the rub-impact conditions obtained through numerical simulation, the experimental verification is carried out on the test rig with rubbing generator. The results show that it is not obvious the influence of rub-impact loads upon the shafting torsion vibration except in special working conditions, that can be simulated by the rubbing generator. The maximum amplitude of torsional vibration is influenced by the radial rigidity as well as the friction coefficient of rubbing body, and the degree of influence is difference under conditions of continuous rubbing and serious rubbing. By adjusting the rigidity of stern bearing, the influence of rub-impact upon shafting can be weaken, which provides a theoretical reference for the safety evaluation of ship shafting.