[CentOS] C5: correct place for routing scripts?

Fri Apr 30 06:51:14 UTC 2010
mkn0014 <mkn0014 at gmail.com>

On 04/29/2010 03:27 PM, Kimmo Koivisto wrote:
>> 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:
>>      
> This is the only way I found to do it, and might not be the best solution:
>
> 1. create /etc/sysconfig/network-scripts/ifcfg-zscripts with contents
> DEVICE=dummy0
> ONBOOT=yes
>
> 2. create /sbin/ifup-local executable with for example:
> #!/bin/bash
> if [ "$1" == "dummy0" ]; then
>    echo "running scripts"
>   ip...
>   arp...
>
> fi
>
> It will be executed for every interface, others that dummy0 are skipped.
>
> I would like to use something else, if someone knows better way.
>
>
> Regards,
> Kimmo
>    

Check this out:
http://www.itsyourip.com/Linux/howto-add-a-persistent-static-route-in-redhat-enterprise-linux/

/Mats