Connecting the internet router to an uninterruptible power supply (UPS) will maintain internet connectivity during a power outage, assuming the main fiber line is not broken.
"connecting the router to an uninterrupted power supply will keep my internet going so then I have the router and my network switch panel connected to the ups"