Subpanels are required to be bonded to ground per code in every instance. The bond is connected directly to the same grounding rod used for the main to prevent ground loops. When this is impractical then 50 feet of separation will ensure between ground rods will prevent ground loops.