Grounding a subpanel box in the same dwelling
A sub-panel connects to the main panel with 4 conductors (hot,hot,neutral,ground).  A sub panel must have separate ground and neutral bars. A sub panel does not connect directly to the ground rod.