There are typically two ways built in gen sets are connected.
There may be a 30 amp outlet connected to the generator. Plug the shore power cable into the outlet.
There may be an automatic transfer switch (ATS). It automatically detects shore power and generator power and chooses one.
If yours has and ATS then it is not working.
There are many other possibilities that are less common.
12 volt Side of Life part 1
The 12volt Side of Life (Part 1)
12 volt Side of Life part 2
The 12volt Side of Life Part 2
__________________