Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where is latest /etc/conf.d/net? [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
vbenares
Apprentice
Apprentice


Joined: 13 Aug 2003
Posts: 205

PostPosted: Sat Jun 11, 2005 10:31 pm    Post subject: Where is latest /etc/conf.d/net? [Solved] Reply with quote

Mine (I have had gentoo installed for a couple years) is apparently so old that the installation instructions seem not to apply. Is there a form one around on my hdd or elsewhere?

Last edited by vbenares on Tue Jun 14, 2005 8:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Sat Jun 11, 2005 10:35 pm    Post subject: Reply with quote

delete your old one, look at net.example and make a new one
Back to top
View user's profile Send private message
vbenares
Apprentice
Apprentice


Joined: 13 Aug 2003
Posts: 205

PostPosted: Sat Jun 11, 2005 10:50 pm    Post subject: Reply with quote

Is there supposed to be a /etc/conf.d/net.example file on my hdd? I don't see one.
Back to top
View user's profile Send private message
pogi
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2005
Posts: 124
Location: Hungary

PostPosted: Sat Jun 11, 2005 11:02 pm    Post subject: Reply with quote

Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.2.3 broadcast 192.168.2.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.2.1"

here's mine, might help out.

regards,
pogi
_________________
Free! Tibet
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Sat Jun 11, 2005 11:05 pm    Post subject: Reply with quote

vbenares wrote:
Is there supposed to be a /etc/conf.d/net.example file on my hdd? I don't see one.

which version of baselayout are you using?
Back to top
View user's profile Send private message
vbenares
Apprentice
Apprentice


Joined: 13 Aug 2003
Posts: 205

PostPosted: Sat Jun 11, 2005 11:27 pm    Post subject: Reply with quote

baselayout-1.11.12-r4
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Sat Jun 11, 2005 11:37 pm    Post subject: Reply with quote

Code:
ansient # emerge -p baselayout

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/baselayout-1.11.12-r4
ansient # equery files baselayout | grep net.example
/etc/conf.d/net.example

If you don't have it, you can either re-emerge baselayout or try:
Code:
ebuild `equery w baselayout` unpack
$EDITOR /var/tmp/portage/baselayout*/work/rc-scripts*/etc/conf.d/net.example
Back to top
View user's profile Send private message
vbenares
Apprentice
Apprentice


Joined: 13 Aug 2003
Posts: 205

PostPosted: Sat Jun 11, 2005 11:53 pm    Post subject: Reply with quote

Thanks! It appeared after I re-emerged baselayout. (Sorry for being a dunce & thanks)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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