RE: static-routes with RH8.0

2003-01-21 Thread Toshi Esumi
Rick,

Thanks. It finally worked.
I put 
  any net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
in the "static-routes" file under /usr/sysconfig/.

In other words, to add specific route on to a specific interface, I probably
need to put the same info in a different place, I guess, as other people
suggested. My objective has been accomplished by your suggestion. And I
don't have time to pursue the other way. But I couldn't find any description
for the other options.

By the way, if this paticular change is an official one, it should be
documented somewhere in RedHat. I found the original one in the RedHat web
search :
http://www.redhat.com/support/resources/tips/Network-Config-Tips/Network-Con
fig-Tips-4.html 
At least this description has to be changed.

Sorry, I'm writing to somebody who is responsible for this document or the
change itself.
Again I appreciate your help, Rick.


Toshi Esumi
AuBeta Networks Corp.




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: static-routes with RH8.0

2003-01-21 Thread Rick Carroll
The shell code from /etc/init.d/network

# 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

It only wants lines that begin with "any".
Apparently the file syntax has changed between your version to version 8.


Rick


 -Original Message-
From:   Toshi Esumi [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, January 17, 2003 6:46 PM
To: '[EMAIL PROTECTED]'
Subject:    static-routes with RH8.0

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 


Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
63.214.2.224*   255.255.255.240 U 0  00 eth0
127.0.0.0   *   255.0.0.0   U 0  00 lo
default 63.214.2.2250.0.0.0 UG0  00 eth0


route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
10.0.254.24863.214.2.234255.255.255.252 UG0  00 eth0
63.214.2.224*   255.255.255.240 U 0  00 eth0
127.0.0.0   *   255.0.0.0   U 0  00 lo
default 63.214.2.2250.0.0.0 UG0  00 eth0


eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234
   This didn't work when
I rebooted.


Toshi



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: static-routes with RH8.0

2003-01-20 Thread John Horne
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 
> > 
> > 
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > 63.214.2.224*   255.255.255.240 U 0  00 eth0
> > 127.0.0.0   *   255.0.0.0   U 0  00 lo
> > default 63.214.2.2250.0.0.0 UG0  00 eth0
> > 
> > 
> > route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
> > 
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > 10.0.254.24863.214.2.234255.255.255.252 UG0  00 eth0
> > 63.214.2.224*   255.255.255.240 U 0  00 eth0
> > 127.0.0.0   *   255.0.0.0   U 0  00 lo
> > default 63.214.2.2250.0.0.0 UG0  00 eth0
> > 
> > 
> > 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



Re: static-routes with RH8.0

2003-01-20 Thread Matthew Melvin
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 
> 
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 63.214.2.224*   255.255.255.240 U 0  00 eth0
> 127.0.0.0   *   255.0.0.0   U 0  00 lo
> default 63.214.2.2250.0.0.0 UG0  00 eth0
> 
> 
> route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 10.0.254.24863.214.2.234255.255.255.252 UG0  00 eth0
> 63.214.2.224*   255.255.255.240 U 0  00 eth0
> 127.0.0.0   *   255.0.0.0   U 0  00 lo
> default 63.214.2.2250.0.0.0 UG0  00 eth0
> 
> 
> 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.

M.

-- 
WebCentral Pty Ltd   Australia's #1 Internet Web Hosting Company
Level 5, 100 Wickham St.   Network Operations - Systems Engineer
PO Box 930, Fortitude Valley. phone: +61 7 3249 2552
Queensland, Australia 4006.   pgp key id: 0x900E515F



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: static-routes with RH8.0

2003-01-20 Thread Toshi Esumi
Matthew,

I put the line you suggested, which is..
 10.0.254.248/30 via 63.214.2.234
in ...
 -rw-r--r--1 root root   33 Jan 20 07:52 route-eth0
under ...
 /etc/sysconfig/network-scripts/
then, 'shutdown -r 0' to reboot it. But it still doesn't take it.


By the way, is this described in someware like a man page or in a doc?


Toshi 


-Original Message-
From: Matthew Melvin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 19, 2003 4:11 PM
To: Toshi Esumi
Cc: '[EMAIL PROTECTED]'
Subject: Re: static-routes with RH8.0


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 
> 
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 63.214.2.224*   255.255.255.240 U 0  00
eth0
> 127.0.0.0   *   255.0.0.0   U 0  00 lo
> default 63.214.2.2250.0.0.0 UG0  00
eth0
> 
> 
> route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 10.0.254.24863.214.2.234255.255.255.252 UG0  00
eth0
> 63.214.2.224*   255.255.255.240 U 0  00
eth0
> 127.0.0.0   *   255.0.0.0   U 0  00 lo
> default 63.214.2.2250.0.0.0 UG0  00
eth0
> 
> 
> 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.

M.

-- 
WebCentral Pty Ltd   Australia's #1 Internet Web Hosting Company
Level 5, 100 Wickham St.   Network Operations - Systems Engineer
PO Box 930, Fortitude Valley. phone: +61 7 3249 2552
Queensland, Australia 4006.   pgp key id: 0x900E515F



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: static-routes with RH8.0

2003-01-17 Thread Brent Canipe
Hey Toshi,
  What is your ifconfig output?

Brent


*** REPLY SEPARATOR  ***

On 1/17/03 at 3:46 PM 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 
>
>
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric RefUse
>Iface
>63.214.2.224*   255.255.255.240 U 0  00
>eth0
>127.0.0.0   *   255.0.0.0   U 0  00 lo
>default 63.214.2.2250.0.0.0 UG0  00
>eth0
>
>
>route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
>
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric RefUse
>Iface
>10.0.254.24863.214.2.234255.255.255.252 UG0  00
>eth0
>63.214.2.224*   255.255.255.240 U 0  00
>eth0
>127.0.0.0   *   255.0.0.0   U 0  00 lo
>default 63.214.2.2250.0.0.0 UG0  00
>eth0
>
>
>eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234
>   This didn't work
>when
>I rebooted.
>
>
>Toshi
>
>
>
>-- 
>redhat-list mailing list
>unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
>https://listman.redhat.com/mailman/listinfo/redhat-list






-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: static-routes with RH8.0

2003-01-17 Thread John Horne
On Sat, 2003-01-18 at 00:24, Ted Gervais wrote:
> On Friday 17 January 2003 07:46 pm, Toshi Esumi wrote:
> I seem to have the same problem.
> 
> My /etc/sysconfig/static-routes file has 4 lines of routes in it but none of 
> them show up when I run 'route -n '.
> 
> I need to enter them manually for them to 'take'  or show.
> 
> Anyone have any ideas as to why this is happening, or at least how to get the 
> routes to be installed when I reboot the machine??
> 
I have looked at adding static routes for a couple of our servers. With
RH8 it seems that 'static-routes' is looked at by /etc/init.d/network.
But it only seems to be used for non interface-specific routes. As the
code shows:

  # 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

If the line in the file begins with the word 'any' then the rest of the
line is passed to 'route add -'. From what you've said I assume this is
different from what it was in RH7.

In our case I have had to manually add the static routes - which are
interface-specific because we have multihomed servers - directly into
the /etc/init.d/network file. Not ideal but it vaguely works for now.


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



Re: static-routes with RH8.0

2003-01-17 Thread Ted Gervais
On Friday 17 January 2003 07:46 pm, Toshi Esumi wrote:


I seem to have the same problem.

My /etc/sysconfig/static-routes file has 4 lines of routes in it but none of 
them show up when I run 'route -n '.

I need to enter them manually for them to 'take'  or show.

Anyone have any ideas as to why this is happening, or at least how to get the 
routes to be installed when I reboot the machine??




> 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 
>
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 63.214.2.224*   255.255.255.240 U 0  00
> eth0 127.0.0.0   *   255.0.0.0   U 0  0   
> 0 lo default 63.214.2.2250.0.0.0 UG0  0   
> 0 eth0
>
> 
> route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252
> 
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 10.0.254.24863.214.2.234255.255.255.252 UG0  00
> 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.2250.0.0.0 UG0  0   
> 0 eth0
>
> 
> eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234
>This didn't work
> when I rebooted.
>
>
> Toshi

-- 
T.L.Gervais
Coldbrook, NS
Canada.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



static-routes with RH8.0

2003-01-17 Thread Toshi Esumi
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 


Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
63.214.2.224*   255.255.255.240 U 0  00 eth0
127.0.0.0   *   255.0.0.0   U 0  00 lo
default 63.214.2.2250.0.0.0 UG0  00 eth0


route add -net 10.0.254.248 gw 63.214.2.234 netmask 255.255.255.252

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
10.0.254.24863.214.2.234255.255.255.252 UG0  00 eth0
63.214.2.224*   255.255.255.240 U 0  00 eth0
127.0.0.0   *   255.0.0.0   U 0  00 lo
default 63.214.2.2250.0.0.0 UG0  00 eth0


eth0 net 10.0.254.248 netmask 255.255.255.252 gw 63.214.2.234
   This didn't work when
I rebooted.


Toshi



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list