Scripts win with Yuki Bhambri in final tie against Morocco.
Also in action on the first day at Roland Garros is men's second seed Alexander Zverev who meets Ricardas Berankis of Lithuania on Court Suzanne-Lenglen.
When the match began it was Federer who surprisingly looked intimidated under the Arthur Ashe Stadium lights as he sprayed errors all around the court but the Swiss great woke from his slumber in time to turn the match resoundingly in his favour.
Hauling itself up from World Group II should not be a complicated task for India when it takes on an unostentatious Morocco in the home tie, which will be more of a celebration of Rohan Bopanna's Davis Cup career.
Nagal's court coverage and solid defence in long drawn points was the highlight of his win.