In an attempt to propose an animal model that reproduces in rats the phenotype of cerebral palsy, this study evaluated the effects of maternal exposure to bacterial endotoxin associated with perinatal asphyxia and sensorimotor restriction on gait pattern, brain and spinal cord morphology. Two experimental groups were used: Control Group (CTG) − offspring of rats injected with saline during pregnancy and Cerebral Palsy Group (CPG) − offspring of rats injected with lipopolysaccharide during pregnancy, submitted to perinatal asphyxia and sensorimotor restriction for 30 days. At 29 days of age, the CPG exhibited coordination between limbs, weight‐supported dorsal steps or weight‐supported plantar steps with paw rotation. At 45 days of age, CPG exhibited plantar stepping with the paw rotated in the balance phase. An increase in the number of glial cells in the primary somatosensory cortex and dorsal striatum were observed in the CPG, but the corpus callosum thickness and cross‐sectional area of lateral ventricle were similar between studied groups. No changes were found in the number of motoneurons, glial cells and soma area of the motoneurons in the ventral horn of spinal cord. The combination of insults in the pre, peri and postnatal periods produced changes in hindlimbs gait pattern of animals similar to those observed in diplegic patients, but motor impairments were attenuated over time. Besides, the greater number of glial cells observed seems to be related to the formation of a glial scar in important sensorimotor brain areas.