Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bring up all interfaces
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
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Wed Sep 25, 2013 11:02 am    Post subject: Bring up all interfaces Reply with quote

I'm creating a generic gentoo install that I plan to run on multiple machines and VMs. The machines/VMs are quite different and therefore get different interface names for the various NICs. I'd like to setup my gentoo install to simply bring up all ethernet interfaces it finds and run dhcp on them, but I'm not really sure what the best way to achieve this is.

I'm considering writing a shell script which will automatically create the init.d symlinks and write the /etc/conf.d/net file, but I feel like I'm missing an easier solution.

I'm also wondering if something more event driven like systemd or ifplugd would be more appropriate.
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7901
Location: ~Brussels - Belgique

PostPosted: Wed Sep 25, 2013 11:07 am    Post subject: Reply with quote

Hello,

Try this : TIP: Complete network stack without net.* scripts
Use full dhcp configurations, without any headache :)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Wed Sep 25, 2013 12:47 pm    Post subject: Reply with quote

Brilliant, thanks for the pointer, that does look like it'll do what I want!
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7901
Location: ~Brussels - Belgique

PostPosted: Wed Sep 25, 2013 12:54 pm    Post subject: Reply with quote

I (ab)use it. It's 100% plug and play, even with wireless 8)
_________________
Kind regards,
Xavier Miller
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