[CentOS] Re: How to create static routes on startup with CentOS4?
Filipe Brandenburger
filbranden at gmail.com
Tue Apr 15 20:17:31 UTC 2008
On Tue, Apr 15, 2008 at 3:48 PM, Eric B. <ebenze at hotmail.com> wrote:
> The last question then is if there is a way to add "ip rule" rules to
> specify which routing table to use based on packet information.
> ex: ip rule add fwmark 3 table 3
>
> Are any of the network scripts able to handle this as well?
If you look at the end of the same script (ifup-routes), you'll see
that it reads rules from file
/etc/sysconfig/network-scripts/rule-eth0. For each line in that file,
it will run "/sbin/ip rule add $line". It's unfortunate that this
isn't all better documented somewhere. But on Linux you can always...
Use the source, Luke!
HTH,
Filipe
More information about the CentOS
mailing list