* making routes permanent
@ 2002-04-28 17:55 Vinod
2002-04-28 21:49 ` Glynn Clements
0 siblings, 1 reply; 11+ messages in thread
From: Vinod @ 2002-04-28 17:55 UTC (permalink / raw)
To: linux-net
how can one make route's permanent?
i wanted to make this permanent:
route add -net 10.0.3.0 netmaks 255.255.255.0 gw
10.0.0.10 dev eth1
i tried putting this in /etc/sysconfig/static-routes
but it didnt work.
i have rh7.2 installed.
Thanks in advance,
Vinod
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-28 17:55 making routes permanent Vinod
@ 2002-04-28 21:49 ` Glynn Clements
2002-04-29 2:08 ` Vinod
2002-04-29 19:41 ` Vinod
0 siblings, 2 replies; 11+ messages in thread
From: Glynn Clements @ 2002-04-28 21:49 UTC (permalink / raw)
To: Vinod; +Cc: linux-net
Vinod wrote:
> how can one make route's permanent?
> i wanted to make this permanent:
> route add -net 10.0.3.0 netmaks 255.255.255.0 gw
> 10.0.0.10 dev eth1
>
> i tried putting this in /etc/sysconfig/static-routes
> but it didnt work.
> i have rh7.2 installed.
I don't know about RH7.x, but for RH6.2 you would use the line:
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
If it's different on 7.x, you can deduce the format from the network
startup script (e.g. /etc/rc.d/init.d/network).
Note that specifying both "gw" and "dev" is redundant. If you specify
a gateway, the device is automatically determined from the gateway
address.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-28 21:49 ` Glynn Clements
@ 2002-04-29 2:08 ` Vinod
2002-04-29 3:01 ` Glynn Clements
2002-04-29 19:41 ` Vinod
1 sibling, 1 reply; 11+ messages in thread
From: Vinod @ 2002-04-29 2:08 UTC (permalink / raw)
To: linux-net
where should i put the command
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
u suggested?shdnt it be some specific place where i
put this line?i can just add the route.thats not the
problem.i want to make it permanent.it shd stay after
rebooting.
Thanks,
Vinod
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
> Vinod wrote:
>
> > how can one make route's permanent?
> > i wanted to make this permanent:
> > route add -net 10.0.3.0 netmaks 255.255.255.0 gw
> > 10.0.0.10 dev eth1
> >
> > i tried putting this in
> /etc/sysconfig/static-routes
> > but it didnt work.
> > i have rh7.2 installed.
>
> I don't know about RH7.x, but for RH6.2 you would
> use the line:
>
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
>
> If it's different on 7.x, you can deduce the format
> from the network
> startup script (e.g. /etc/rc.d/init.d/network).
>
> Note that specifying both "gw" and "dev" is
> redundant. If you specify
> a gateway, the device is automatically determined
> from the gateway
> address.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-29 2:08 ` Vinod
@ 2002-04-29 3:01 ` Glynn Clements
0 siblings, 0 replies; 11+ messages in thread
From: Glynn Clements @ 2002-04-29 3:01 UTC (permalink / raw)
To: Vinod; +Cc: linux-net
Vinod wrote:
> where should i put the command
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
> u suggested?
In /etc/sysconfig/static-routes.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-28 21:49 ` Glynn Clements
2002-04-29 2:08 ` Vinod
@ 2002-04-29 19:41 ` Vinod
2002-04-29 20:01 ` Glynn Clements
1 sibling, 1 reply; 11+ messages in thread
From: Vinod @ 2002-04-29 19:41 UTC (permalink / raw)
To: Glynn Clements; +Cc: linux-net
i tried putting
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
in my /etc/sysconfig/static-routes but still it didnt
show up as a permanent route.i looked at the
/etc/rc.d/inet.d/network script and as far as i could
interpret(am a relative newbie),this was supposed to
be the format for my RH 7.2.
can anyone using rh7.2 confirm that "any net 10.0.3.0
255.255.255.0 gw 10.0.0.10" is what needs to be put in
/etc/sysconfig/static-routes to make this entry
permanent?
Thanks,
Vinod
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
> Vinod wrote:
>
> > how can one make route's permanent?
> > i wanted to make this permanent:
> > route add -net 10.0.3.0 netmaks 255.255.255.0 gw
> > 10.0.0.10 dev eth1
> >
> > i tried putting this in
> /etc/sysconfig/static-routes
> > but it didnt work.
> > i have rh7.2 installed.
>
> I don't know about RH7.x, but for RH6.2 you would
> use the line:
>
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
>
> If it's different on 7.x, you can deduce the format
> from the network
> startup script (e.g. /etc/rc.d/init.d/network).
>
> Note that specifying both "gw" and "dev" is
> redundant. If you specify
> a gateway, the device is automatically determined
> from the gateway
> address.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-29 19:41 ` Vinod
@ 2002-04-29 20:01 ` Glynn Clements
2002-04-29 20:11 ` Vinod
0 siblings, 1 reply; 11+ messages in thread
From: Glynn Clements @ 2002-04-29 20:01 UTC (permalink / raw)
To: Vinod; +Cc: linux-net
Vinod wrote:
> i tried putting
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
> in my /etc/sysconfig/static-routes but still it didnt
> show up as a permanent route.
Did you restart the networking? That file is only read when networking
is started or a new interface is enabled.
Note: the easiest way to restart the networking is a reboot; the next
easiest is switching to single-user mode ("telinit 1") then switching
back to multi-user mode ("telinit 3", or "telinit 5" if you also want
X).
Just running "/etc/rc.d/init.d/network restart" probably won't work
right, is it will typically interfere with networking daemons.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-29 20:01 ` Glynn Clements
@ 2002-04-29 20:11 ` Vinod
0 siblings, 0 replies; 11+ messages in thread
From: Vinod @ 2002-04-29 20:11 UTC (permalink / raw)
To: Glynn Clements; +Cc: linux-net
yeah i had rebooted it before reporting that it didnt
work.so i guess its not that networking wasnt
restarted.all my static-route has is this line.just
created the file static-routes a couple of days ago.
Thanks,
Vinod
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
> Vinod wrote:
>
> > i tried putting
> > any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
> > in my /etc/sysconfig/static-routes but still it
> didnt
> > show up as a permanent route.
>
> Did you restart the networking? That file is only
> read when networking
> is started or a new interface is enabled.
>
> Note: the easiest way to restart the networking is a
> reboot; the next
> easiest is switching to single-user mode ("telinit
> 1") then switching
> back to multi-user mode ("telinit 3", or "telinit 5"
> if you also want
> X).
>
> Just running "/etc/rc.d/init.d/network restart"
> probably won't work
> right, is it will typically interfere with
> networking daemons.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
@ 2002-04-29 20:28 Nivedita Singhvi
2002-04-29 21:02 ` Vinod
0 siblings, 1 reply; 11+ messages in thread
From: Nivedita Singhvi @ 2002-04-29 20:28 UTC (permalink / raw)
To: Vinod; +Cc: Glynn Clements, linux-net
A search on RedHat for static routes shows up the following:
http://www.redhat.com/support/resources/tips/Network-Config-Tips
/Network-Config-Tips-4.html
Not sure which distribution that goes with. I couldn't find anything in
the RedHat 7.2 Reference Guide about static routes.
Note that the format suggests that you provide the interface, not the
gateway:
"Each line of the static-routes files should have the format:
device args
When a network interface is brought up, each line for that interface
is passed to route as:
route add -args device
"
thanks,
Nivedita
Vinod <geekvinod@yahoo.com>@vger.kernel.org on 04/29/2002 12:41:19 PM
Sent by: linux-net-owner@vger.kernel.org
To: Glynn Clements <glynn.clements@virgin.net>
cc: linux-net@vger.kernel.org
Subject: Re: making routes permanent
i tried putting
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
in my /etc/sysconfig/static-routes but still it didnt
show up as a permanent route.i looked at the
/etc/rc.d/inet.d/network script and as far as i could
interpret(am a relative newbie),this was supposed to
be the format for my RH 7.2.
can anyone using rh7.2 confirm that "any net 10.0.3.0
255.255.255.0 gw 10.0.0.10" is what needs to be put in
/etc/sysconfig/static-routes to make this entry
permanent?
Thanks,
Vinod
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
> Vinod wrote:
>
> > how can one make route's permanent?
> > i wanted to make this permanent:
> > route add -net 10.0.3.0 netmaks 255.255.255.0 gw
> > 10.0.0.10 dev eth1
> >
> > i tried putting this in
> /etc/sysconfig/static-routes
> > but it didnt work.
> > i have rh7.2 installed.
>
> I don't know about RH7.x, but for RH6.2 you would
> use the line:
>
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
>
> If it's different on 7.x, you can deduce the format
> from the network
> startup script (e.g. /etc/rc.d/init.d/network).
>
> Note that specifying both "gw" and "dev" is
> redundant. If you specify
> a gateway, the device is automatically determined
> from the gateway
> address.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
@ 2002-04-29 20:52 Nivedita Singhvi
0 siblings, 0 replies; 11+ messages in thread
From: Nivedita Singhvi @ 2002-04-29 20:52 UTC (permalink / raw)
To: Vinod; +Cc: Glynn Clements, linux-net
> i tried putting
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
^
|
Incidentally, you are missing the keyword netmask
> in my /etc/sysconfig/static-routes but still it didnt
> show up as a permanent route.i looked at the
> /etc/rc.d/inet.d/network script and as far as i could
> interpret(am a relative newbie),this was supposed to
> be the format for my RH 7.2.
> can anyone using rh7.2 confirm that "any net 10.0.3.0
> 255.255.255.0 gw 10.0.0.10" is what needs to be put in
> /etc/sysconfig/static-routes to make this entry
> permanent?
> Thanks,
> Vinod
thanks,
Nivedita
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: making routes permanent
2002-04-29 20:28 Nivedita Singhvi
@ 2002-04-29 21:02 ` Vinod
0 siblings, 0 replies; 11+ messages in thread
From: Vinod @ 2002-04-29 21:02 UTC (permalink / raw)
To: Nivedita Singhvi; +Cc: linux-net
i tried this too,using different combinations
possible.but still it doesnt work.and i checked out
this link and found its for rh 6.x.so dont know if
this will work for rh7.x.for me it doesn't anyway.
Anyway thanks a lot.appreciate it.
Vinod
--- Nivedita Singhvi <nivedita@us.ibm.com> wrote:
>
>
> A search on RedHat for static routes shows up the
> following:
>
>
http://www.redhat.com/support/resources/tips/Network-Config-Tips
> /Network-Config-Tips-4.html
>
> Not sure which distribution that goes with. I
> couldn't find anything in
> the RedHat 7.2 Reference Guide about static routes.
>
> Note that the format suggests that you provide the
> interface, not the
> gateway:
>
> "Each line of the static-routes files should have
> the format:
>
> device args
>
> When a network interface is brought up, each line
> for that interface
> is passed to route as:
>
> route add -args device
> "
>
> thanks,
> Nivedita
>
>
> Vinod <geekvinod@yahoo.com>@vger.kernel.org on
> 04/29/2002 12:41:19 PM
>
> Sent by: linux-net-owner@vger.kernel.org
>
>
> To: Glynn Clements <glynn.clements@virgin.net>
> cc: linux-net@vger.kernel.org
> Subject: Re: making routes permanent
>
>
>
> i tried putting
> any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
> in my /etc/sysconfig/static-routes but still it
> didnt
> show up as a permanent route.i looked at the
> /etc/rc.d/inet.d/network script and as far as i
> could
> interpret(am a relative newbie),this was supposed to
> be the format for my RH 7.2.
> can anyone using rh7.2 confirm that "any net
> 10.0.3.0
> 255.255.255.0 gw 10.0.0.10" is what needs to be put
> in
> /etc/sysconfig/static-routes to make this entry
> permanent?
> Thanks,
> Vinod
> --- Glynn Clements <glynn.clements@virgin.net>
> wrote:
> >
> > Vinod wrote:
> >
> > > how can one make route's permanent?
> > > i wanted to make this permanent:
> > > route add -net 10.0.3.0 netmaks 255.255.255.0 gw
> > > 10.0.0.10 dev eth1
> > >
> > > i tried putting this in
> > /etc/sysconfig/static-routes
> > > but it didnt work.
> > > i have rh7.2 installed.
> >
> > I don't know about RH7.x, but for RH6.2 you would
> > use the line:
> >
> > any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
> >
> > If it's different on 7.x, you can deduce the
> format
> > from the network
> > startup script (e.g. /etc/rc.d/init.d/network).
> >
> > Note that specifying both "gw" and "dev" is
> > redundant. If you specify
> > a gateway, the device is automatically determined
> > from the gateway
> > address.
> >
> > --
> > Glynn Clements <glynn.clements@virgin.net>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: making routes permanent
[not found] <A00147B07D14F240825D27196B05DD53069A10@zms.staff.zeelandnet.nl>
@ 2002-04-30 19:25 ` Vinod
0 siblings, 0 replies; 11+ messages in thread
From: Vinod @ 2002-04-30 19:25 UTC (permalink / raw)
To: Serge Maandag; +Cc: linux-net
i had tried this also.but no luck.stuck with manually
configuring the route everytime as of now.
Thanks anyway.appreciate it.
Vinod
--- Serge Maandag <serge.maandag@staff.zeelandnet.nl>
wrote:
> > device args
> >
> > When a network interface is brought up, each
> line
> > for that interface
> > is passed to route as:
> >
> > route add -args device
>
> If I read this correctly, you should try the line:
>
> -net 10.0.3.0 netmask 255.255.255.0 gw 10.0.0.10 dev
>
>
> or
>
> -net 10.0.3.0/24 gw 10.0.0.10 dev
>
> in your static-routes file. Have you tried that?
>
> Serge.
>
> b.t.w., a quick search in Google gives this page:
> http://www.physiology.wisc.edu/~cai/linux/a21p/
>
> Which uses this form:
>
> eth0-cln net 192.168.2.0 netmask 255.255.255.0 gw
> 192.168.2.99
>
> which would be in your case:
>
> eth1 net 10.0.3.0 netmask 255.255.255.0 gw 10.0.0.10
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-04-30 19:25 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-28 17:55 making routes permanent Vinod
2002-04-28 21:49 ` Glynn Clements
2002-04-29 2:08 ` Vinod
2002-04-29 3:01 ` Glynn Clements
2002-04-29 19:41 ` Vinod
2002-04-29 20:01 ` Glynn Clements
2002-04-29 20:11 ` Vinod
-- strict thread matches above, loose matches on Subject: below --
2002-04-29 20:28 Nivedita Singhvi
2002-04-29 21:02 ` Vinod
2002-04-29 20:52 Nivedita Singhvi
[not found] <A00147B07D14F240825D27196B05DD53069A10@zms.staff.zeelandnet.nl>
2002-04-30 19:25 ` Vinod
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).