For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid
https://jwudc.mssg.me/
For generator interconnection, a transfer switch or interlock at the panel prevents backfeeding the grid, protecting energy employees and equipment safely.