making routes permanent
Subsystems (2)
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
Quoted 8 lines · Vinod
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 eth1i tried putting this in
/etc/sysconfig/static-routesbut 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.
Signature · 1 line
Glynn Clements <[email protected]>
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
Quoted 22 lines · --- Glynn Clements
Quoted 6 lines · Vinod
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 eth1i tried putting this in
/etc/sysconfig/static-routesQuoted 2 lines
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).
Quoted 8 lines
Note that specifying both "gw" and "dev" is
redundant. If you specify
a gateway, the device is automatically determined
from the gateway
address.Signature · 1 line
Glynn Clements <[email protected]>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Quoted 3 lines · Vinod
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.
Signature · 1 line
Glynn Clements <[email protected]>
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
Quoted 22 lines · --- Glynn Clements
Quoted 6 lines · Vinod
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 eth1i tried putting this in
/etc/sysconfig/static-routesQuoted 2 lines
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).
Quoted 8 lines
Note that specifying both "gw" and "dev" is
redundant. If you specify
a gateway, the device is automatically determined
from the gateway
address.Signature · 1 line
Glynn Clements <[email protected]>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Quoted 4 lines · Vinod
i tried putting
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10 in my/etc/sysconfig/static-routesbut 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.
Signature · 1 line
Glynn Clements <[email protected]>
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
Quoted 21 lines · --- Glynn Clements
Quoted 3 lines · Vinod
i tried putting
any net 10.0.3.0 255.255.255.0 gw 10.0.0.10
in my/etc/sysconfig/static-routesbut still itdidnt
Quoted 1 line
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).
Quoted 7 lines
Just running "
/etc/rc.d/init.d/networkrestart"
probably won't work
right, is it will typically interfere with
networking daemons.Signature · 1 line
Glynn Clements <[email protected]>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com