Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ifconfig not saving
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
Zaphan58
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2003
Posts: 107

PostPosted: Fri Nov 07, 2003 1:43 pm    Post subject: ifconfig not saving Reply with quote

I manually configured my network settings, and once set they work like a charm. However as soon as I reboot the settings seem to be lost and I need to set it up again before it will work, any ideas?

-Zaphan
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Fri Nov 07, 2003 1:50 pm    Post subject: Reply with quote

you need to edit /etc/conf.d/net .
_________________
every step aim at glory.
Back to top
View user's profile Send private message
_Max_
Apprentice
Apprentice


Joined: 03 Mar 2003
Posts: 264
Location: London, UK

PostPosted: Fri Nov 07, 2003 1:52 pm    Post subject: Reply with quote

AFAIk, ifconfig does not "save" settings.

What you want to do is edit your /etc/conf.d/net.eth0 file (if you are configuring eth0) and then make sure that /etc/init.d/net.eth0 is added to your default runlevel: "rc-update add default net.eth0" or something.

/etc/init.d/net.eth0 is then called on startup and executes ifconfig with the settings you specify in /etc/conf.d/net.eth0.

/etc/init.d/ scripts are simple bash scripts, you could have a look at those if you want to to see how they work.

Sorry, I can't check whether the commands/ file names are 100% correct because I am not at my Gentoo box right now. Should all be in the install docs, though...?
_________________
Ceci n'est pas une sig.
Back to top
View user's profile Send private message
MrPyro
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 121
Location: Sheffield, England

PostPosted: Fri Nov 07, 2003 1:58 pm    Post subject: Reply with quote

The config file is /etc/conf.d/net. Inside you should add entries for all the network cards you are using (which is probably just the one, but if you are using more it all goes into this one file). The default file is pretty well commented and exampled as how to add the entries.
_________________
Back off man, I'm a computer scientist
Back to top
View user's profile Send private message
Zaphan58
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2003
Posts: 107

PostPosted: Fri Nov 07, 2003 2:18 pm    Post subject: Reply with quote

Thanks for the speedy response guys, I just presumed ifconfig would save the file its self but hey im still learning! :)
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