For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid
https://list.ly/gwennongpb
For generator interconnection, a transfer switch or interlock at the panel prevents backfeeding the grid, safeguarding utility employees and devices securely.