Re: C5: correct place for routing scripts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2010/4/29 James Hogarth <james.hogarth@xxxxxxxxx>:
> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux