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:
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: