Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
where to add these two lines...
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
corey_
n00b
n00b


Joined: 30 Nov 2002
Posts: 49

PostPosted: Thu Dec 19, 2002 2:07 am    Post subject: where to add these two lines... Reply with quote

Everytime I reboot, I must type the following two lines:

/sbin/ifconfig eth0 192.168.1.10 broadcast 192.168.1.255 netmask 255.255.255.0
/sbin/route add -net default gw netmask 0.0.0.0 metric 1

Where can I add these so I do not have to type them everytime I reboot and want to access my network?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


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

PostPosted: Thu Dec 19, 2002 2:21 am    Post subject: fixing your network config Reply with quote

Code:

vi /etc/conf.d/net
rc-update add net.eth0 default


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
SillyPants
Apprentice
Apprentice


Joined: 02 Sep 2002
Posts: 154

PostPosted: Sat Dec 21, 2002 1:28 am    Post subject: Reply with quote

ok, /etc/conf.d/net has iface_eth0 for ifconfig arguments, but how to you add route arguments?
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Sat Dec 21, 2002 2:06 am    Post subject: Reply with quote

SillyPants wrote:
ok, /etc/conf.d/net has iface_eth0 for ifconfig arguments, but how to you add route arguments?


You probably won't need to. Just set the default gateway setting
at the bottom of that file.

Code:
# For setting the default gateway
#
gateway="eth0/192.168.1.1"


--rtn
Back to top
View user's profile Send private message
SillyPants
Apprentice
Apprentice


Joined: 02 Sep 2002
Posts: 154

PostPosted: Sat Dec 21, 2002 2:34 am    Post subject: Reply with quote

D'oh! Thanks, I completely mssed that line!
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