[CentOS] C5: correct place for routing scripts?

Kimmo Koivisto

koippa at gmail.com
Thu Apr 29 12:59:03 UTC 2010


2010/4/29 James Hogarth <james.hogarth at gmail.com>:
> For static routes on a Centos/Redhat box you can use
> /etc/sysconfig/network-scripts/route-ethX
>
> Example syntax for file:
>
> 10.243.248.0/24 via 10.243.251.254
> 10.243.252.0/24 via 10.243.251.254
> 172.20.220.0/24 via 10.243.251.254
>
> Can't say I've ever had to set up static arp caches/values....
>
> James

Thanks for your answer.

I am looking for a bit different thing here. Those are normal
destination based routes, I have source routing (and other routing
based on rules), for example:

ip rule add from 10.1.1.0/24 to 10.2.2.0/24 table EXAMPLE
ip route add default via 192.168.100.7 dev eth0 table EXAMPLE
ip route flush cache

etc

Regards,
Kimmo



More information about the CentOS mailing list