This is not neccessarily true. The DOD (Navy, MArine Corps, etc...) can deny benefits to the child of an unmarried Marine. It rarely happens, but it happens nontheless, especially if the Marine shows no intent on marrying the mother of the illegitimate child.
However, should the Marines Command sign off on and approve benefits, the child and the child ONLY would be the recipient of any benefits. Once the baby is born, the Marine will need to take a certified original copy of the Birth Certificate AND Social Security Card to his command. They will give him an endorsement letter which he will take to the base DEERS Office. They will enter the child into DEERS. Once the child is in DEERS he/she/it will have dependant benefits the same as the child of a married couple. At some point, especially if the Mother does not Marry the father or is not a military dependant herself, an ID Card will have to be issued to the baby. Even an infant. The ID Card is what will prove to the Commissary, PX, Base Hospital, etc. that the child is a military depenant and rates provilidges. The ID Card in the Mother's possession, AND WITH THE CHILD PRESENT, will allow access thru the gate and provilidges to MCCS activities.
Weeeell, no matter the case, I think you got your answer, so I'd lock this thread before it gets out of control...or leave it open for some entertainment.