Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout2 init.d/network vs. init.d/net.eth0 and the like
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
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 146
Location: Ohio

PostPosted: Fri Jul 08, 2011 12:37 pm    Post subject: baselayout2 init.d/network vs. init.d/net.eth0 and the like Reply with quote

The baselayout 2 guide says to symlink net.lo to net.eth0 and add net.eth0 to the boot runlevel. However I never did that, just added configuration to conf.d/network and init.d/network is bringing both my nics up just fine (one on DCHP one static, all config in conf.d/network).

I just updated another machine to baselayout2 and had to do the link to get eth0 to come up. Both machines are on on the same baselayout version. However in that case I didn't have any configuration for the nic in conf.d/network as I wanted defaults (DHCP)

My question is, what's the purpose of init.d/network if you have to create discreet init scripts (well, links to net.lo) for each nic anyway?

Both init scripts have as their description "Configure network interfaces."

Just seems very odd having two ways to configure interfaces....
_________________
Poxart
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Jul 08, 2011 1:39 pm    Post subject: Reply with quote

/etc/conf.d/network was introduced an openrc a while back as an alternative net config method, IIRC it was intended to eventually replace the standard method, however the author of openrc (a former gentoo dev) lost interest so openrc was adopted as a gentoo project, and the gentoo devs chose to maintain the older config rather than continue working on the new one.

tl;dr - the "new" /etc/conf.d/network setup is depreciated, and may break or even be removed in later versions of openrc, so sticking with the older method is recommended.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
braindead0
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 146
Location: Ohio

PostPosted: Fri Jul 08, 2011 2:21 pm    Post subject: Reply with quote

Thanks for the explanation, makes sense.

thought for a bit I was going crazy... ;-)

Should I remove network from the default runlevel as well? I'm guessing leave it for now?
_________________
Poxart
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