It looks to be a modem+router combo unit. The unit above with the grey cord isn't clear what it is. As such I need to ask you what the top unit is but I see DSL so the top unit is some DSL+modem+router.
The setup as shown should not work as the second unit is not a router.
This one tip will help you sleep better tonight
A few seconds are all you need to get a better night's rest.