In order to solve the problem of wind abandonment and light abandonment in DC microgrid, adding hydrogen production equipment in DC microgrid can effectively alleviate this problem. In the DC microgrid for hydrogen production load, a hierarchical control strategy of DC bus voltage is proposed based on the consideration of charging state, aiming at the fluctuation of DC bus voltage. The operation of the system is divided into seven modes, each of which adopts different control strategies. Finally, a model is built on the PSCAD/EMTDC simulation software and the experimental platform of new energy generation. The simulation and experimental results verify the effectiveness and feasibility of the proposed control strategy.