Anelka was booed from the kick-off by Marseille's fans but the striker, who announced his retirement from international football after the ban was handed down, shrugged off the abuse by scoring a 27th-minute penalty to add to Terry's seventh-minute opener in their Champions League win.
Anelka, who joined the club from Bolton for £15million in January 2008, signed a one-year extension to his contract in the summer to keep him at Stamford Bridge until 2012.
The striker requires just one more goal to reach a half-century for the Blues and that could arrive against former club Arsenal on Sunday.
Terry, prompted by the striker's success, urged Anelka to remain at Stamford Bridge for as long as possible.
"Nico has stressed before how much he loves the club," said Terry. "The fans love him, the players love him. We would love him to stay here for years to come.
"He is a great character to have around the place. He is a nice guy and a really good professional, someone who myself and the young players look up to and learn from.
"He has found a nice home here at Chelsea. He has come out and said how much he has settled here. We have a good base of French players here as well, so that helps people settle in. People like Didier Drogba and Florent Malouda are key to keeping people happy and so it works well."