Shut off the power at the main power panel. Ensure that the subpanel is securely mounted into position. Remove one of the knockout rings in the bottom of the subpanel, using a screwdriver and hammer.
Run a ground wire from the bottom of the main power panel to the bottom of the subpanel. Strip 1/2 inch of insulation off of both ends of the ground wire. Connect the ground wire to the ground/neutral bar in the main power panel. Tighten the connection with the screwdriver.
Go to the subpanel and connect the other end of the ground wire to the subpanel's ground bar. if the subpanel does not have a ground bar, add one. Tighten the connection using the screwdriver. The subpanel is now bonded to the main power panel.