View previous topic :: View next topic |
Author |
Message |
r0dzilla n00b


Joined: 06 Feb 2003 Posts: 70 Location: South Carolina, USA
|
Posted: Wed Aug 03, 2005 12:45 pm Post subject: Did /etc/conf.d/net syntax change? |
|
|
I did a emerge -uDva world yesterday.
I already had my system setup for dhcp. I had to do a reboot a little later on, and when it got to /etc/init.d/net.eth0, it said I didn't have the dhcp module?
I do have a dhcp client installed, it worked fine before the upgrade. I saw there was an /etc/conf.d/net.example and took a look at it. It looks nothing like the synatx I was used to. It mentioned that it was now modular and I also found a section that mentioned installing additional modules for the system.
What dhcp module is it looking for? I've already have a dhcp client installed that WAS working before the reboot...
Thanks! |
|
Back to top |
|
 |
SinoTech Advocate

Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Wed Aug 03, 2005 1:08 pm Post subject: |
|
|
Think you've recently updated to the new baselayout. Now there're some changes ...
Code: |
1. "/etc/hostname" moves to /etc/conf.d/hostname.
2. "/etc/dnsdomainname" moves to "/etc/conf.d/domainname"
3. "/etc/nisdomainname" moves to "/etc/conf.d/nisdomainname"
|
Entries in "/etc/rc.conf" are splitted to some different config files contained in "/etc/conf.d/":
Code: |
CLOCK -> "/etc/conf.d/clock"
CONSOLEFONT, CONSOLETRANSLATION -> "/etc/conf.d/consolefont"
KEYMAP, SET_WINDOWKEYS, EXTENDED_KEYMAPS -> "/etc/conf.d/keymaps"
|
Things still contained in "/etc/rc.conf":
Code: |
EDITOR, PROTOCOLS, DISPLAYMANAGER, XSESSION, UNICODE
|
The network configuration has also been changed ("/etc/conf.d/net"). You can read it at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=0
Simple examples for the new "/etc/conf.d/net":
Use dhcp for eth0 (With parameters):
Code: |
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 10"
|
Use static IP with default gateway:
Code: |
config_eth0=( "192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" )
routes_eth0=( "default gw 192.168.0.254" )
|
All /etc/init.d/net.* are (or should be) symlinks to "/etc/init.d/net.lo" now.
Mfg
Sino |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Aug 03, 2005 1:42 pm Post subject: Re: Did /etc/conf.d/net syntax change? |
|
|
r0dzilla wrote: | I already had my system setup for dhcp. I had to do a reboot a little later on, and when it got to /etc/init.d/net.eth0, it said I didn't have the dhcp module?
I do have a dhcp client installed, it worked fine before the upgrade. |
baselayout ~ARCH currently needs dhcpcd ~ARCH or pump ~ARCH but due to portage limitations, we cannot DEPEND on any dhcp client versions. |
|
Back to top |
|
 |
SnowDeath n00b

Joined: 15 Jul 2003 Posts: 64 Location: Florida, USA
|
Posted: Wed Aug 03, 2005 5:01 pm Post subject: |
|
|
Wow, the last several minutes were a bit upsetting - I did a reboot on my production server just now (first since my last kernel upgrade) and the eth0 didn't come up. Glad someone else had already posted this. And for those not wearing their glasses like me currently, those are parenths, not brackets  |
|
Back to top |
|
 |
|