For generator affiliation, a transfer switch or interlock at the panel prevents backfeeding the grid
https://veloriftlabs.com/s/ETKA4j1sEMW_jbFjlf0dy
For generator interconnection, a transfer switch or interlock at the panel avoids backfeeding the grid, safeguarding energy workers and devices safely.