LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-09-2017, 08:24 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Rep: Reputation: Disabled
Ugh! - AKA The dreaded "udev changed my ethernet interface" issue.


As many of you know, after ten years of using Gentoo, I switched to Slackware last December. I feel like over the past couple of months, I've grown into Slackware. I've had a few issues here and there, but overall, I've always been able to resolve them. Like when I reboot Slack and my web browser loads and reports that I have Page Not Found errors in every open tab. This is relatively easy to fix: Just run /etc/rc.d/rc.inet1 start. Granted, I still think immediately of running /etc/init.d/net.eth0 restart. Eventually that will go away. For the meantime, though, my backup machine (bought in Sept, 2005 and still mostly functional) runs Gentoo updated to April, 2016, when I bought my current workstation. Because my backup machine runs Gentoo (granted, a somewhat dated Gentoo - kernel 4.0.5 in fact (and I KNOW that that kernel is vulnerable to Dirty Cow, but at least it works when I need it,)) I have created a USB with a recent install of Gentoo on it. The problem is that when I boot the USB drive, udev loads my ethernet interface on sit0. I desperately want it to be on eth0. On my old machine, I accomplished this by putting net.ifnames=0 in my /boot/grub/grub.conf. Of course, that was grub.0.97-r16 and my USB runs grub-2.02_beta3-r1:2/2.02_beta3-r1. I am asking this because I tend to have a rather short attention span. It used to be longer, but I'm dreadfully out of practice not having used it in about twenty years. I tend to freak out and completely lose my train of thought whenever I encounter something I don't understand. I have tried and tried and tried to make sense of the Gentoo forum people who have had this exact problem. I have put dummy files in /etc/udev/rules.d/ to override files in /lib/udev/rules.d/. Right now I have

Code:
caitlyn ~ # ls /etc/udev/rules.d/
70-network.rules  80-net-name-slot.rules  80-net-setup-link.rules
I am chrooted into my Gentoo USB drive because I have no network when I boot off my USB. I know that I could simply create file called copy my /etc/conf.d/net.eth0 file over to /etc/conf.d/net.sit0 and change the config.eth0 reference to config.sit0, but then I wouldn't learn how to step beyond this issue, and I'd really REALLY like to step beyond this issue. I know that my short attention span is an excuse and that I need to develop more patience, but for the time being, will anyone answer this for me?
 
Old 02-09-2017, 08:35 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I don't think the sit0 device will work even if you did switch the configuration to it as the sit0 device is for tunneling ipv6 traffic over ipv4 and not an actual network device, I believe... but don't quote me on that. I would suspect you are probably missing the relevant driver or module required for your specific network card and so it maybe not loading at all, not too familiar with slackware to advise tho.

Last edited by r3sistance; 02-09-2017 at 08:37 PM.
 
Old 02-09-2017, 08:54 PM   #3
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
The ethernet kernel module is r8169. I ran a working Gentoo system used everyday from the end of April 2016 until December. I based my kernel config off the previous Gentoo system's config. Before I wiped Gentoo off this workstation, I copied the entire system to a 2TB external drive I have and then copied back relevant parts (/etc, /home, etc etc). I spent a lot of time in April and May of 2015 getting my running kernel just right. The Gentoo system worked until one day I discovered that the kernel version I was running was no longer in portage. I tried emerging and building the newest stable kernel, but when I rebooted with it, I encountered this exact issue. Since I knew that I would probably not be able to get much help from the Gentoo forums (those people get offended VERY easily,) and I couldn't figure it out on my own in a timely manner, it might just be time to switch. I want a Linux system that JUST WORKS. Slackware seems to do that. Granted, I freaked out a little the first time I rebooted Slackware and networking didn't start, and there was no /etc/init.d/net.eth0 to restart. Fortunately, I calmed down quickly and booted my old workstation, which still worked. But now I have the command in a text file for when I need to reference it.
 
Old 02-09-2017, 11:34 PM   #4
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
I think I've solved it for the moment. Problems like this always seem to come back. To me. I inserted

Code:
GRUB_CMDLINE_LINUX="net.ifnames=0"
into /etc/default/grub. And r3sistance was correct. It WAS a problem with the module. I copied over every kernel source I had from the external drive onto /usr/src on the Gentoo USB. My 4.7.10 kernel booted and acted as I wanted it to, but the 4.9.6-r1 kernel which is the kernel source recommended by portage wouldn't, even after I build it manually several times. For some strange reason, even though the driver was set to build a module in the 4.7.10 source and I ran make menuconfig before building the 4.9.6-r1 source, it didn't register that I wanted the r8169 module built. Like I said earlier, these things happen. To me. I'm just thankful it wasn't anything worse. My /usr/src/linux/.config files seem to disappear with some frequency. Thank you for your help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The dreaded libnss3.so "error" in libreoffice/pkg/14.0 Habitual Slackware 3 02-04-2014 12:40 PM
Dreaded "oh no! something went wrong" Message. I cant find the source of the problem KroniK Fedora 3 11-29-2013 10:05 AM
[SOLVED] Dreaded "Out of Range" error on Viewsonic VG171b w/ATI RADEON 9100 ian.macky Linux - Hardware 5 11-04-2010 12:57 PM
Removing the Enlightenment Sound Daemon (aka "esd" aka "esound") jgombos Debian 4 03-30-2010 03:33 PM
Proposed solution for "status" (aka "problem solved") indicator demerson3 LQ Suggestions & Feedback 12 04-08-2006 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration