2356  
查询码:00000129
centos7下,网卡配置文件下route-eth1设置路由不生效
作者: wyasw 于 2020年03月29日 发布在分类 / Linux / 填过的坑 下,并于 2020年03月29日 编辑
route

centos7下,网卡配置文件下route-eth1设置路由不生效

问题描述:route-eth1文件设置静态路由,重启服务器用route -n命令查看路由没有生效。

cat route-eth1

172.16.13.0/24 via 172.16.12.254 dev eth1

route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         172.16.23.254   0.0.0.0         UG    102    0        0 eth2

172.16.8.0      0.0.0.0         255.255.255.0   U     100    0        0 eth0

172.16.12.0     0.0.0.0         255.255.255.0   U     101    0        0 eth1

172.16.23.0     0.0.0.0         255.255.255.0   U     102    0        0 eth2

解决方案:升级系统内核,再重启系统,再查看路由就生效了

yum update --skip-broken

reboot



 推荐知识

 历史版本

修改日期 修改人 备注
2020-03-29 21:23:35[当前版本] wyasw 创建版本

  目录
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号