Depends on why the gun is illegal, If you are a person that has been convicted of a felony (a serious crime) then possession of a gun is punished by 5 years in a Federal prison. No probation, no...
Impossible to answer without exact details
6 years
depends how much