Re: Re: How to create static routes on startup with CentOS4?

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



On Tue, Apr 15, 2008 at 3:48 PM, Eric B. <ebenze@xxxxxxxxxxx> 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
_______________________________________________
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