Re: C5: correct place for routing scripts?

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



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
_______________________________________________
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