A smack on the butt and an assertive, "No." It's not the pain that hurts him it's the disapproval. The smack on the butt is just to get his attention.
Other than that, 2 yo's gonna 2 yo. Jumping on people is a problem, though. And it's kinda like a puppy dog, you gotta catch him in the...