On Mon, 2003-01-20 at 00:11, Matthew Melvin wrote: > On Fri, 17 Jan 2003 at 3:46pm (-0800), Toshi Esumi wrote: > > > Does someone have the same experience with RH8.0? I put a static router > > statement in /etc/sysconfig/static-routes file as I did with RH7.0. But it > > doesn't seem to work when I reboot the PC. It takes the same static route > > when I put it manualy using "route" command when it's running. The route I > > wanted to put is .... > > > > <routing table:before> > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref Use > > Iface > > 63.214.2.224 * 255.255.255.240 U 0 0 0 eth0 > > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > > default 63.214.2.225 0.0.0.0 UG 0 0 0 eth0 > > > > <adding a route:manually> > > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252 > > <after> > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref Use > > Iface > > 10.0.254.248 63.214.2.234 255.255.255.252 UG 0 0 0 eth0 > > 63.214.2.224 * 255.255.255.240 U 0 0 0 eth0 > > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > > default 63.214.2.225 0.0.0.0 UG 0 0 0 eth0 > > > > </etc/sysconfig/static-routes> > > eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234 > > ....This didn't work when > > I rebooted. > > > > RH8.0 doens't use /etc/sysconfig/static-routes any more but instead has a > routes file for each interface... try adding... > > 10.0.254.248/30 via 63.214.2.234 > > ... to /etc/sysconfig/network-scripts/route-eth0 instead. > Looking at /etc/sysconfig/network/ifup-routes seems to show that that was the 'old way'. It seems they now expect a file such as '/etc/sysconfig/networking/devices/$1.route' where $1 is the device name and the file contains environment variable statements (just like ifcfg-eth0).
(I'm at home at the mo, but I'll try this tomorrow at work.) John. -- ------------------------------------------------------------------------ John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914 E-mail: [EMAIL PROTECTED] PGP key available from public key servers -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list