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