I have a laptop that is connected wirelessly to 192.168.1.0/24 network using DHCP and wired to 10.10.10.0/24 network static settings with NO DEFAULT GATEWAY set up.
The goal was to access to external addresses using the default gateway on the wireless network (192.168.1.1) and the internal network (10.10.10.0/24, 10.10.20.0/24 and so on... 10.10.60.0/24) using the wired NIC. So I've added the following persistent routes:
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
10.10.60.0 255.255.255.0 10.10.10.1 1
10.10.50.0 255.255.255.0 10.10.10.1 1
10.10.40.0 255.255.255.0 10.10.10.1 1
10.10.20.0 255.255.255.0 10.10.10.1 1
10.10.30.0 255.255.255.0 10.10.10.1 11
10.10.10.0 255.255.255.0 10.10.10.1 1
===========================================================================
The routing table is the following:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.110 2
10.10.10.0 255.255.255.0 On-link 10.10.10.27 266
10.10.10.0 255.255.255.0 10.10.10.1 10.10.10.27 11
10.10.10.27 255.255.255.255 On-link 10.10.10.27 266
10.10.10.255 255.255.255.255 On-link 10.10.10.27 266
10.10.30.0 255.255.255.0 10.10.10.1 10.10.10.27 21
10.10.50.0 255.255.255.0 10.10.10.1 10.10.10.27 11
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.1.0 255.255.255.0 On-link 192.168.1.110 257
192.168.1.110 255.255.255.255 On-link 192.168.1.110 257
192.168.1.255 255.255.255.255 On-link 192.168.1.110 257
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 10.10.10.27 266
224.0.0.0 240.0.0.0 On-link 192.168.1.110 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 10.10.10.27 266
255.255.255.255 255.255.255.255 On-link 192.168.1.110 257
But, after all this the packets take the wrong way:
C:\WINDOWS\system32>tracert -d 10.10.60.1
Tracing route to 10.10.60.1 over a maximum of 30 hops
1 5 ms 3 ms 3 ms 192.168.1.1
==============================================
^C
C:\WINDOWS\system32>
Why do the packets take the 192.168.1.1 way ?
Shouldn't packets go the persistent route (10.10.10.1 )?
10.10.10.0
. You are already on that network directly, no need to try to reach it via a gateway. It most probably messes the routing table up.