Hi Brad, thank you for finding this source and pointing out the possibility configuring network-scripst/route-[interface-name]. However, another knowledge-base article referring to V4 and suggests that the syntax may have changed, so I post the link to it - to whom it may concern now or in the future ...
http://kbase.redhat.com/faq/FAQ_85_9670.shtm thank you all Anna ~~ Dr. Anna Fuhrmann Systemprogrammierung Mainframe MA 14-ADV * Magistrat der Stadt Wien +43 1 4000 91639 mailto:[EMAIL PROTECTED] >-----Ursprüngliche Nachricht----- >Von: Linux on 390 Port [mailto:[EMAIL PROTECTED] Im >Auftrag von Brad Hinson *EXTERN* >Gesendet: Freitag, 25. Mai 2007 17:07 >An: [email protected] >Betreff: Re: route table manipulation > >For long-term compatibility, you'll want to create route files >for each interface. For hsi0, create >/etc/sysconfig/network-scripts/route-hsi0. >For the syntax of this file, see: > >http://kbase.redhat.com/faq/FAQ_79_2561.shtm >(note: the syntax hasn't changed since RHEL 3) > >During network startup, these files are sourced for valid >routes and they're added automatically. > >-Brad > >On Fri, 2007-05-25 at 15:49 +0200, Rob van der Heij wrote: >> On 5/25/07, Fuhrmann Anna <[EMAIL PROTECTED]> wrote: >> >> > as there is no default file static-routes, I am not so happy by >> > creating one, even more so as I found this piece of documentation: >> > >> > "With the introduction of Redhat version 8 and continued >into version 9, the /etc/sysconfig/static-routes file no >longer seems to function correctly." >> >> Two different beasts, from what I can tell. The ifup-routes >appears to >> be part of activating an interface, where the static routes are for >> all interfaces. But I am looking at a slightly different level so >> things may have changed. Redhat 9 is a bit old hat (no 00D intended). >> >> My /etc/init.d/network has a snippet that says: >> # Add non interface-specific static-routes. >> if [ -f /etc/sysconfig/static-routes ]; then >> grep "^any" /etc/sysconfig/static-routes | while read >> ignore args ; do >> /sbin/route add -$args >> done >> fi >> >> [EMAIL PROTECTED] init.d]# cat /etc/sysconfig/static-routes any net 10.0.0.0 >> netmask 255.255.255.0 gw 192.168.0.220 >> >> [EMAIL PROTECTED] init.d]# route -n >> Kernel IP routing table >> Destination Gateway Genmask Flags Metric >Ref Use Iface >> 10.0.0.0 192.168.0.220 255.255.255.0 UG 0 >0 0 eth0 >> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 >0 0 eth0 >> 192.168.206.0 0.0.0.0 255.255.255.0 U 0 >0 0 tun0 >> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 >0 0 eth0 >> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 >0 0 eth0 >> >> Rob >> >> >---------------------------------------------------------------------- >> For LINUX-390 subscribe / signoff / archive access >instructions, send >> email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or >> visit http://www.marist.edu/htbin/wlvindex?LINUX-390 > >---------------------------------------------------------------------- >For LINUX-390 subscribe / signoff / archive access >instructions, send email to [EMAIL PROTECTED] with the >message: INFO LINUX-390 or visit >http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
