Statistical route to CentOS



  • Every time it is manual to add the route after reloading

    route add -net 10.0.0.0/8 gw 10.143.124.1
    

    Probed. в /etc/sysconfig/network-scripts/route-eth1 add

    10.0.0.0/8 via 10.143.124.1
    

    But there was no effect.



  • according https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-networkscripts-static-routes.html additional routes may be listed in the files /etc/sysconfig/network-scripts/route-интерфейс in any of the two formats:

    • programme arguments ip
    • format переменная=значение

    I tried. /etc/sysconfig/network-scripts/route-eth1 add
    10.0.0.0/8 via 10.143.124.1

    You clearly tried to add a route to the programme arguments. ip (in fact, ip with parameters add route: ip route addIn this case, you have a mistake-- you need to further indicate the interface so that the team generally sounds like (1):

    ip route add ip-адрес/маска via ip-шлюза dev интерфейс
    

    The interface, I understand, in your case, is eth1. Therefore, the line should be:

    10.0.0.0/8 via 10.143.124.1 dev eth1
    

    (1) by the way, use of the programme ip for the management of network parameters - preferably moral and " physical " obsolete programmes ifconfigroutearpI'd like to see what I've written once. http://unixforum.org/index.php?showtopic=129712




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2