Make a time out place for him.
A bed, a couch, or just a corner.

Teach him to go tere on command..."Go lay down" "Time out".. whatever you chose.

It may take a while for him to catch on, but hopefully he will.
Then whenever he gets to rambunctios, give him the command. If he does it, praise him, of course.