192.168.86.0 (1Gb switch)
-------------------------
/\ /\
| |
================ ===========|=========== ========|======= ================
10.0.0.80 192.168.86.80 192.168.86.86 10.0.0.86
enxa0cec8b5b0fa enp86s0 |
| Linux Server macOS client |
=======|================================== =========================|========
| |
+-------------------- Cross-over ethernet cable ----------------+
2.5Gb NFS Network
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp86s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 48:21:0b:59:33:75 brd ff:ff:ff:ff:ff:ff
inet 192.168.86.80/23 brd 192.168.87.255 scope global noprefixroute enp86s0
valid_lft forever preferred_lft forever
inet6 fe80::4a21:bff:fe59:2275/64 scope link
valid_lft forever preferred_lft forever
3: enxa0cec8b5b0fa: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether ba:3f:0c:1c:33:f7 brd ff:ff:ff:ff:ff:ff permaddr a0:ce:c8:b5:b0:fa
inet 10.0.0.80/16 brd 10.0.255.255 scope global noprefixroute enxa0cec8b5b0fa
valid_lft forever preferred_lft forever
inet6 fe80::ca9a:84e1:ffbe:6196/64 scope link noprefixroute
valid_lft forever preferred_lft forever
4: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether b0:dc:ef:33:f7:51 brd ff:ff:ff:ff:ff:ff
altname wlp0s20f3
5: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:33:01 brd ff:ff:ff:ff:ff:ff
inet 192.168.70.1/24 brd 192.168.70.255 scope global vmnet1
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fec0:1/64 scope link
valid_lft forever preferred_lft forever
6: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
link/ether 00:50:56:c0:33:08 brd ff:ff:ff:ff:ff:ff
inet 192.168.80.1/24 brd 192.168.80.255 scope global vmnet8
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fec0:8/64 scope link
valid_lft forever preferred_lft forever
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 100 0 0 enxa0cec8b5b0fa
0.0.0.0 192.168.86.1 0.0.0.0 UG 101 0 0 enp86s0
10.0.0.0 0.0.0.0 255.255.0.0 U 100 0 0 enxa0cec8b5b0fa
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enxa0cec8b5b0fa
192.168.70.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
192.168.80.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.86.0 0.0.0.0 255.255.254.0 U 101 0 0 enp86s0
# ip route show
default via 10.0.0.1 dev enxa0cec8b5b0fa proto static metric 100
default via 192.168.86.1 dev enp86s0 proto static metric 101
10.0.0.0/16 dev enxa0cec8b5b0fa proto kernel scope link src 10.0.0.80 metric 100
169.254.0.0/16 dev enxa0cec8b5b0fa scope link metric 1000
192.168.70.0/24 dev vmnet1 proto kernel scope link src 192.168.70.1
192.168.80.0/24 dev vmnet8 proto kernel scope link src 192.168.80.1
192.168.86.0/23 dev enp86s0 proto kernel scope link src 192.168.86.80 metric 101
A configuração possui duas redes, 192.168.86.0 e 10.0.0.0. O servidor Linux (Ubuntu 22.04) possui duas interfaces, enxa0cec8b5b0fa (10.0.0.80) e enp86s0 (192.168.86.80). Apenas 192.168.86.80 (Linux) e 192.168.86.86 (Mac) têm acesso direto à Internet através do switch Ethernet de 1 Gb. O cabo Ethernet cruzado é conectado a 2 dongles USB-Ethernet de 2,5 Gb, que são usados exclusivamente para NFS — já que a rede de 1 Gb em 192.168.86.0 é muito lenta para uso.
O NFS (em 10.0.0.0) em ambos os lados funciona bem; as duas redes (192.168.86.0, 10.0.0.0) podem ser acessadas simultaneamente. O problema é que uma vez ligada a rede 10.0.0.0 (NFS), a conexão com a Internet cai no servidor Linux – no Mac funciona bem, ou seja, as duas redes podem ser acessadas simultaneamente, com a Internet.
O problema é que você tem duas rotas padrão.
Se uma conexão não tiver conexão com a Internet, ela não deverá ter uma rota padrão.
Delete isso: