Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
adding permanent routes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
stretch
n00b
n00b


Joined: 20 Apr 2002
Posts: 5
Location: Montreal, Quebec, Canada

PostPosted: Fri Aug 30, 2002 3:16 pm    Post subject: adding permanent routes Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Sep 02, 2002 7:14 am    Post subject: where to put misc crap Reply with quote

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
View user's profile Send private message
seang
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 88
Location: France

PostPosted: Mon Sep 02, 2002 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum