A Rockford man is sentenced to more than eight years for trafficking fentanyl and unlawful possession of a firearm.