[root@70_test_dc ~]# cat /etc/sysconfig/network-scripts/route-ens37
172.28.30.0/24 via 10.12.1.6
10.1.0.0/16 via 10.12.1.6
查看路由
[root@test_dc_rpdns_com ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 ens33
10.1.1.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-115d52745e5d
windows
route add -p 172.28.30.0 mask 255.255.255.0 10.12.1.6
查看路由
route print