In this paper, two types of resonator-based impacting vibration absorbers (RIVA) are established to control the vibration of both single-degree-of-freedom and multi-degree-of-freedom systems. To derive the equations of motion for these controlled dynamical systems, we adopt Newton's second law. The "signum" function is utilized to model the interaction between the absorber mass and the barrier. Nonlinear elements within the motion equations are linearized using the standard linearization method. The system's vibration control performance is enhanced through the optimization of design parameters, achieved by employing the H2 norm criterion and the Monte Carlo pattern search method. The frequency response function is established to study the dynamic characteristics of the system. The findings indicate that the installation of resonators on impacting vibration absorbers significantly enhances seismic resilience and mitigates potential structural costs during earthquakes. This enhancement in the system's robustness and stability results in a more effective reduction in the building structure's displacement response when subjected to seismic forces. To be more specific, under the influence of six different seismic waves, the average peak displacement reduction rates of the two vibration control systems in single-story buildings are still able to reach 44.82 % and 46.57 %, respectively. For multi-story buildings, the average peak displacement reduction rates of the two vibration control systems can still achieve 49.49 % and 49.25%, respectively.