Are you connected to that router via ethernet or USB?
If it's ethernet, it should be fairly easy - just get networking set up & set the router as your gateway. Guides like
the LFS one explain this in depth.
If it's USB, you're on your own - USB networking is a PITA on Linux