I started by making a frame to span the gap. You can see the dimensions I used below, but to make your own just match it to the dimensions of your router table.
Next, I screwed a piece of pegboard across the bottom, keeping items securely inside. The “door” on this little cabinet is a key-holed panel of pegboard.
The key holes allow the panel to easily slide on and off when I need something from inside, and the pegboard itself allows me some vertical storage too.
Using L-hooks with the pegboard panel allows plenty of hanging storage for items like wrenches and router table inserts too.