View previous topic :: View next topic |
Author |
Message |
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Dec 01, 2018 3:16 pm Post subject: No net.eth0, only enp6/7s0 **SOLVED** |
|
|
Hi, I'm having a little issue with my networking names. Instead of the traditional net.eth0 (or other numbers), my network devices run as net.enp6s0, and enp7s0. Now this hasn't really been an issue on my system until I started trying to get hplip working, and cupsd wants eth0.
So my question is: Is there a way to fix this? Is it some sort of kernel parameter? I just installed Gentoo and got up and running (with a TON of help from several here, thankfully). As far as the network goes, it's working great, so I'm not sure what measures I need to take.
Thanks
Todd
Last edited by todd93 on Sat Dec 01, 2018 4:24 pm; edited 3 times in total |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Dec 01, 2018 3:20 pm Post subject: |
|
|
add net.ifnames=1 to your kernel cmdline. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Dec 01, 2018 3:45 pm Post subject: |
|
|
bunder wrote: | add net.ifnames=1 to your kernel cmdline. |
Thank you! |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Dec 01, 2018 3:59 pm Post subject: |
|
|
bunder wrote: | add net.ifnames=1 to your kernel cmdline. |
Okay, something's wrong, I did that, and I'm still getting the same problem. By adding net.ifnames=1 to my kernel cmdline, I assume you mean in /etc/default/grub, correct?
Please tell me if I'm missing something
Thanks
Todd |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Dec 01, 2018 4:07 pm Post subject: |
|
|
Try doing this instead (then reboot):
Code: | true >| /etc/udev/rules.d/80-net-name-slot.rules |
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sat Dec 01, 2018 4:11 pm Post subject: |
|
|
Quote: | By adding net.ifnames=1 to my kernel cmdline, I assume you mean in /etc/default/grub, correct? |
It should be
net.ifnames=1 does the opposite. It enables interface names like enp6/7s0.
Please note: either use net.ifnames=0 OR the /etc/udev/rules.d trick - not both. |
|
Back to top |
|
|
todd93 l33t
Joined: 30 Oct 2006 Posts: 620 Location: Missouri
|
Posted: Sat Dec 01, 2018 4:24 pm Post subject: |
|
|
mike155,
Thank you, I had already used the udev trrick and it fixed the issue!
I appreciate all the help, this one is SOLVED!
Thanks again!
Todd |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Dec 01, 2018 4:32 pm Post subject: |
|
|
oh shoot i forgot about that file too.
thanks for correcting me, i guess i gotta go change it on my boxes now too, darn. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
|