0

It is normal that the file /etc/sysconfig/network-scripts/route-interface not exists on my CentOS 6?

According to documentation https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-networkscripts-static-routes.html this file stores static routes.

ip route show output is correct and network is working right:

[root@ru000397 ~]# ip route show
195.225.169.0/24 dev em1  proto kernel  scope link  src 195.225.169.192
169.254.0.0/16 dev em1  scope link  metric 1002
default via 195.225.169.1 dev em1

So, where these three lines are stored? I need to apply a persistent change and I don't know what file to edit

Marco Marsala
  • 2,332
  • 5
  • 25
  • 39
  • 1
    I'm not sure why you referring to the link, its for Centos 5.2, yours is 6. Main route is configured in `/etc/sysconfig/network`, static routes files do not exist, you need to create them yourself. Example: to create a static route for `eth0` you need to create `/etc/sysconfig/network-scripts/route-eth0 – Deeh Jun 12 '15 at 15:47
  • Thank you, I understood perfectly – Marco Marsala Jun 12 '15 at 16:16

0 Answers0