我正在运行 Ubuntu 和网络管理器。我有两个不同的接口,eth0和eth1. 网络管理员已(据我所知)正确添加了此手动路由:
~$ ip route
default via 172.16.0.2 dev eth1 proto static
10.0.0.0/8 via 172.16.0.2 dev eth1 proto static
130.35.0.0/16 via 172.16.0.2 dev eth1 proto static
...
172.16.0.0/12 dev eth1 proto kernel scope link src 172.16.0.15 metric 1
192.135.82.0/24 via 172.16.0.2 dev eth1 proto static
Run Code Online (Sandbox Code Playgroud)
eth0出现了,但在我看来这是一个单独的问题。即使给出了上述路由,IP 堆栈似乎更喜欢eth0:
~$ ping 130.35.249.52
PING 130.35.249.52 (130.35.249.52) 56(84) bytes of data.
^C
--- 130.35.249.52 ping statistics ---
18 packets transmitted, 0 received, 100% packet …Run Code Online (Sandbox Code Playgroud)