我在谷歌上搜索了很多,但仍然找不到如何在 centOS 7 上创建一些持久路由的工作方法。
[root@asd network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.23.40.1 0.0.0.0 UG 1024 0 0 enp10s0f1
172.23.40.0 0.0.0.0 255.255.255.0 U 0 0 0 enp10s0f1
enp10s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::226:55ff:fed1:9123 prefixlen 64 scopeid 0x20<link>
ether 00:26:55:d1:91:23 txqueuelen 1000 (Ethernet)
RX packets 1096 bytes 291485 (284.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 2040 (1.9 KiB)
TX errors 0 dropped 0 overruns …Run Code Online (Sandbox Code Playgroud)