For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid
https://lukasrghq937.brightpathdigest.com/posts/panel-amps-described-100a-vs.-150a-vs.-200a-electrical-panels
For generator interconnection, a transfer switch or interlock at the panel avoids backfeeding the grid, securing energy workers and equipment safely.