如何使用CentOS 6永久删除/删除路线中的线路

前端之家收集整理的这篇文章主要介绍了如何使用CentOS 6永久删除/删除路线中的线路前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. root@new [~]# route -n
  2. Kernel IP routing table
  3. Destination Gateway Genmask Flags Metric Ref Use Iface
  4. 178.18.23.200 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
  5. 178.18.23.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  6. 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
  7. 176.0.0.0 0.0.0.0 248.0.0.0 U 0 0 0 eth0
  8. 0.0.0.0 178.18.23.253 0.0.0.0 UG 0 0 0 eth0

我可以删除176.0.0.0条目

  1. route delete -net 176.0.0.0/5

这有效,但重新启动后这一行回来了.知道如何永久删除它吗?

检查/ etc / sysconfig / network-scripts / route-eth0,

对于包含该路由的文件,grep在/ etc中递归176.0.0.0

#grep -r“176.0.0.0”/等

猜你在找的CentOS相关文章