How can I get automatically anchors for every h2-heading?

It is not exactly what I was looking for, but Table of Contents Plus also adds anchors to my headings.