Network Fix (Smart Home, 100p)

It has been an ordinary day for you, but suddenly all of the IoT devices in your home have stopped working due to your router resetting itself to default settings.
You cannot even enter your home as the smart door lock does not have connectivity.
Luckily the router is accessible from the WiFi.
You remember that you had documented down the old routing table output.
Analyze it and find out which IP address must be configured as a gateway for the devices in network 10.5.7.0/24
r2# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
B>* 0.0.0.0/0 [20/0] via 10.101.32.7, eth0, 09w4d08h
O 10.5.0.0/24 [110/10] is directly connected, eth1, 16w5d14h
C>* 10.5.0.0/24 is directly connected, eth1, 16w5d14h
O>* 10.5.1.0/24 [110/20] via 10.5.0.4, eth1, 16w5d14h
O>* 10.5.2.0/24 [110/20] via 10.5.0.4, eth1, 16w5d14h
O>* 10.5.3.0/24 [110/20] via 10.5.0.4, eth1, 16w5d14h
O>* 10.5.4.0/22 [110/20] via 10.5.0.5, eth1, 16w5d14h
O>* 10.5.18.0/24 [110/20] via 10.5.0.1, eth1, 09w4d08h
O>* 10.101.31.16/30 [110/5000] via 10.5.0.1, eth1, 09w4d08h
C>* 10.101.32.16/30 is directly connected, eth0, 16w5d14h
O>* 172.16.15.0/24 [110/20] via 10.5.0.10, eth1, 16w5d14h

solution

This task is about ip command output, routing table and particularly network CIDR.
10.5.4.0/22 expanded is 10.5.4.0-10.5.7.255 and 10.5.7.0/24 is into it, therefore, the answer is 10.5.0.5.

Flag is 10.5.0.5.


Buy Me A Coffee