Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC will not to start net.enp0s3 interface on boot
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
microugly
n00b
n00b


Joined: 22 Dec 2013
Posts: 31

PostPosted: Sun Mar 20, 2016 4:11 am    Post subject: OpenRC will not to start net.enp0s3 interface on boot Reply with quote

I'm installing Gentoo on VirtualBox. Specifically I'm creating a new Vagrant base box using Veewee (https://github.com/jedi4ever/veewee) which I have done many times.

However it seems something has changed within the last few months and the process for bringing up the network interface no longer works. This is the script that does the work - https://github.com/jedi4ever/veewee/blob/master/templates/gentoo-latest/base.sh

It uses the old eth0 interface name, which I don't think is going to work any more. So I have been trying with enp0s3 instead.

enp0s3 works, but despite adding it to rc, the service is not being started when the system boots.

After freshly starting the server, this is what the status says, and confimation that the interface is already installed in rc.
Code:
$ rc-service net.enp03s status
 * status: stopped
$ rc-update add net.enp0s3 default
 * rc-update: net.enp0s3 already installed in runlevel 'default'; skipping


I can manually start the service and everything work perfectly.

I have grepped dmesg and there is not mention of of enp0s3 to explain why it is not starting on boot... perhaps that's the wrong place to look?
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Sun Mar 20, 2016 6:34 am    Post subject: Reply with quote

How about /etc/conf.d/net?
_________________
// valid again: I forgot about the git access. Now 1.2GB big. Start: 2015-06-25
git daily portage tree
Web: https://github.com/schorsch1976/portage
git clone https://github.com/schorsch1976/portage
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54209
Location: 56N 3W

PostPosted: Sun Mar 20, 2016 8:33 am    Post subject: Reply with quote

microugly,

The interface is created as eth0 then renamed by [e]udev.
Check dmesg to see what its called when its started.

You can tell [e]udev net to rename your interfaces if you prefer the kernel names.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
microugly
n00b
n00b


Joined: 22 Dec 2013
Posts: 31

PostPosted: Mon Mar 21, 2016 10:30 am    Post subject: Reply with quote

Thanks for responding guys.

I swear that when I posted those commands above, that was immediately after a reboot and I tried nothing else and shutdown the machine. I had rebooted many time prior to prompt it to start.

When I started it up again to look at these suggestions, it was all working.

So whilst it puzzles me and I would like to know what was happening, now it's working it becomes hard to figure out what the problem was :) Perhaps I did something and just forgot.

Thanks again for assisting -- sorry for wasting your time.
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