View previous topic :: View next topic |
Author |
Message |
stretch n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Apr 2002 Posts: 5 Location: Montreal, Quebec, Canada
|
Posted: Fri Aug 30, 2002 3:16 pm Post subject: adding permanent routes |
|
|
I've set up some routes and I'm not sure in which file I add the route command so that they are set on bootup.
Where is the best place too add this?
Code: | route add -net 192.168.xx.xx gw 172.16.xx.xx netmask 255.255.255.0 dev eth0 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Sep 02, 2002 7:14 am Post subject: where to put misc crap |
|
|
The best place is probably going to be in
/etc/conf.d/local.start
and
/etc/conf.d/local.stop
Or you can create your own scripts and whatnot. Say
/etc/init.d/route-add
/etc/conf.d/routes.add
/etc/conf.d/routes.del
Use /etc/init.d/local as your template.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
seang Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Jetsons/cartoon_the_jetsons_elroy.gif)
Joined: 18 Jun 2002 Posts: 88 Location: France
|
Posted: Mon Sep 02, 2002 8:18 am Post subject: |
|
|
If it's just a default gw, then you can specify it as
gateway="eth0/192.168.0.1" or whatever in /etc/conf.d/net
Alternatively, you might just add them into the /etc/init.d/net.XXX script for the appropriate interface. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|