1. 程式人生 > >centos7 添加靜態路由

centos7 添加靜態路由

pan net 6.0 work bsp start ns2 rip art

查看路由表

route -n

添加路由

vim /etc/sysconfig/network-scripts/route-ens224
172.16.16.0/24 via 172.20.35.254
172.16.32.0/24 via 172.20.35.254
172.16.64.0/24 via 172.20.35.254
172.16.128.0/24 via 172.20.35.254
172.16.192.0/24 via 172.20.35.254

重啟網絡

systemctl restart network

centos7 添加靜態路由