I have a computer with two NICS, one eth one wlan.
- wlan is on 10.0.0.0/24
- eth is on 192.168.0.0/16
Kernel routing table is:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 100 0 0 enp4s0f0
0.0.0.0 10.0.0.1 0.0.0.0 UG 600 0 0 wlp3s0
10.0.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp4s0f0
192.168.0.0 0.0.0.0 255.255.0.0 U 100 0 0 enp4s0f0
Questions:
- Does the kernel choose which default gw use, or does it send to both?
- How does it choose if it chooses?
- What is the most efficient way to influence the choice, or to make it make one?