Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not recognizing network device - enp2s0 does not exist
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 9:58 pm    Post subject: not recognizing network device - enp2s0 does not exist Reply with quote

I have been experiencing some kernel panics recently. These have occurred during normal use, after the system has been up for several hours or days.

Then, this morning all networking is down. I tried the following:

> sudo /etc/init.d/net.enp2s0 start
* ERROR: interface enp2s0 does not exist
* Ensure that you have loaded the correct kernel module for your hardware.
* ERROR: net.enp2s0 failed to start

lspci -v shows that the r8139 module is loaded and the hardware is still recognized.

Am I facing a bad network controller? Or is there any other possible explanation?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 01, 2014 10:07 pm    Post subject: Reply with quote

desimo,

What interfaces does uname -a show?
_________________
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
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 10:22 pm    Post subject: Reply with quote

Uname -a
Linux dis 3,10.25-gentoo #1 SMP mon jan 27 14.57 CST 2014 x86_64 amd phenom II x4 authentic amd gnu/Linux
Back to top
View user's profile Send private message
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 10:25 pm    Post subject: Reply with quote

Ls -l /sys/class/net

Only shows lo and sit0 symlinks to ../../devices/virtual/net

Not familiar with sit0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 01, 2014 10:25 pm    Post subject: Reply with quote

desimo,

Oops ... I should have said
Code:
ifconfig -a
so we con see all the network interfaces you have.
_________________
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
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 10:31 pm    Post subject: Reply with quote

I have lo and sit0.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 01, 2014 10:58 pm    Post subject: Reply with quote

desimo,

Does
Code:
dmesg | grep eth
show anything ?
Your interface should have been called ethX before it was renamed by udev
_________________
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
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 11:03 pm    Post subject: Reply with quote

Booted into an old kernel to test:

ifconfig -a
enp2s0
lo
sit0

ifconfig enp2s0 up

ifconfig -a
enp2so<UP,...>

My net.lo is missing from /etc/init.d/ as well (I was trying to create a symlink from net.sit0 to net.lo and I must have reversed the order) Anyway, is there any way to recreate that file. At this point, I probably deserve whatever I get.

Do I need to grab a gentoo cd and reinstall baselayout off of that, or something?

Thanks
Back to top
View user's profile Send private message
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 11:07 pm    Post subject: Reply with quote

Dmesg|grep eth
No results
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 01, 2014 11:16 pm    Post subject: Reply with quote

desimo,

Is the device still listed in lspci?

Does a
Code:
shutdown -r now
fix it?
_________________
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
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Sat Feb 01, 2014 11:22 pm    Post subject: Reply with quote

lscpi still shows the device and looks just like it always did.

I have rebooted several times during this process and still nothing has changed.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13624

PostPosted: Sun Feb 02, 2014 12:28 am    Post subject: Reply with quote

OP: you say that the enp device appeared when you booted an "old" kernel to test. Which kernel was that, and what is the version where you have been getting kernel panics?
Back to top
View user's profile Send private message
desimo
n00b
n00b


Joined: 18 Jan 2007
Posts: 12
Location: St. Louis, MO

PostPosted: Mon Feb 03, 2014 9:29 pm    Post subject: Reply with quote

The old kernel was 3.10.9. I was experiencing the kernel panics with this kernel, which is the reason I decided to upgrade.

The new kernel is 3.10.25. I have also experienced kernel panics with this kernel. They look about the same. messages lists comm: swapper and comm: jbd2 as I recall. The machine ran all weekend without panicking. It wasn't being used, and the networking is down, of course.

It might be important to note that upgrading the kernel did not make my enp interface disappear. Because I was running fine for 2 days with the new kernel (I panicked once or twice during that time and rebooted, as well)

I think I ran a
Code:
make menuconfig
and then
Code:
make && make modules_install
just prior to this issue happening. I never ended up using the kernel that I compiled; I changed an unrelated option but I thought I would mention it.

As I said, when I do
Code:
lspci -vv
I can see that r8169 is loaded and the ethernet device shows just like it always did.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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