If you know it's teething, you can give some pain reliever at bedtime to prevent some of the waking.
Otherwise, I'd just be careful to not change his feeding schedule (if he only feeds once a night, don't start feeding him 3x a night), and use other ways to comfort him at the extra wakings. There's not much you can do, just try to survive it without getting into any bad habits....