Re: [CentOS] Persisting iproute2 routes and rules

2009-09-14 Thread Diogo Sperb Schneider
2009/9/14 Filipe Brandenburger : > Hi, > > AFAIR, the rule-ethX files (and maybe also route-ethX files) work in > CentOS 5 only. If you're doing that on CentOS 4, I believe the way for > you to load those rules during reboot is adding them to > /etc/rc.local... I see there are commands for route-e

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-14 Thread Filipe Brandenburger
Hi, On Mon, Sep 14, 2009 at 06:23, Diogo Sperb Schneider wrote: >> Sorry, but I can't see how ifup-routes will ever process rule-ethX. A >> quick search for "rule" on ifup-routes (on any file in the >> network-scripts directory) gets no results. > > Are we running the same version? Mine is CentOS

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-14 Thread Diogo Sperb Schneider
> Sorry, but I can't see how ifup-routes will ever process rule-ethX. A > quick search for "rule" on ifup-routes (on any file in the > network-scripts directory) gets no results. Are we running the same version? Mine is CentOS release 4.8 (Final). ___ Ce

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-14 Thread Diogo Sperb Schneider
> /etc/syscontfig/network-scripts/rule-ethX > Check out /etc/sysconfig/network-scripts/ifup-routes to see exactly how > things are processed. Sorry, but I can't see how ifup-routes will ever process rule-ethX. A quick search for "rule" on ifup-routes (on any file in the network-scripts directory)

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-12 Thread Barry Brimer
>>> I have defined a few routes and rules with: >>> >>> ip route add ... >>> ip rule add ... > > but how do you add > >ip rule ... /etc/syscontfig/network-scripts/rule-ethX /etc/syscontfig/network-scripts/route-ethX Check out /etc/sysconfig/network-scripts/ifup-routes to see exactly how thin

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-12 Thread John R Pierce
David Hrbáč wrote: > Diogo Sperb Schneider napsal(a): > >> I have defined a few routes and rules with: >> >> ip route add ... >> ip rule add ... >> > > --[ File: /etc/sysconfig/static-routes ]--(0644, root, root, > 122)--- > any net 192.168.36.0 netmask 255.255.255.0 gw 192.168.

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-12 Thread David Hrbáč
Diogo Sperb Schneider napsal(a): > Greetings! > > I have defined a few routes and rules with: > > ip route add ... > ip rule add ... > > And now I'd like to persist those so they're loaded when the system boots up. > > I'm doing this by means of calling a specific script from > /etc/rc.d/rc.loc

Re: [CentOS] Persisting iproute2 routes and rules

2009-09-11 Thread Justin Yao
you can add the routes to: /etc/sysconfig/network-scripts/route-eth0 /etc/sysconfig/network-scripts/route-eth1 etc. check script /etc/sysconfig/network-scripts/ifup-routes for details On Fri, Sep 11, 2009 at 2:06 PM, Diogo Sperb Schneider wrote: > Greetings! > > I have defined a few routes a

[CentOS] Persisting iproute2 routes and rules

2009-09-11 Thread Diogo Sperb Schneider
Greetings! I have defined a few routes and rules with: ip route add ... ip rule add ... And now I'd like to persist those so they're loaded when the system boots up. I'm doing this by means of calling a specific script from /etc/rc.d/rc.local but I believe there must be something cleaner than t