View previous topic :: View next topic |
Author |
Message |
Zaphan58 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 27 Jul 2003 Posts: 107
|
Posted: Fri Nov 07, 2003 1:43 pm Post subject: ifconfig not saving |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
magnet Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/8825046783e80ce5b2ce6b.png)
Joined: 16 Mar 2003 Posts: 582 Location: france
|
Posted: Fri Nov 07, 2003 1:50 pm Post subject: |
|
|
you need to edit /etc/conf.d/net . _________________ every step aim at glory. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
_Max_ Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 03 Mar 2003 Posts: 264 Location: London, UK
|
Posted: Fri Nov 07, 2003 1:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
MrPyro Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 14 Aug 2003 Posts: 121 Location: Sheffield, England
|
Posted: Fri Nov 07, 2003 1:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Zaphan58 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 27 Jul 2003 Posts: 107
|
Posted: Fri Nov 07, 2003 2:18 pm Post subject: |
|
|
Thanks for the speedy response guys, I just presumed ifconfig would save the file its self but hey im still learning! ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|