You can set the priority of the network card as follows, set the No. 1 network card connected to the A network to 1, and the No. 2 network card of the B network to 2. The interface is as follows:
No. 1 Network card settings
No. 2 network card settings
Or process by deleting or adding permanent routing table.
route print print the routing table to see if there is a permanent route.
If you find a permanent route of 192.xxx or 192.168.xx, use the following command Delete
route delete 192.168.0.0 mask 255.255.0.0 192.168.1.1
Or save the command as bat for processing
route delete *
route add 192.168.1.0 mask 255.0.0.0 192.168.1.1 metric 1- p
route add 0.0.0.0 mask 0.0.0.0 192.168.1.5 metric 2 -p
route add 172.24.0.0 mask 255.0.0.0 172.24.24.1 metric 2 -p
ipconfig /releaseipconfig / renew