Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No net.eth0, only enp6/7s0 **SOLVED**
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
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Dec 01, 2018 3:16 pm    Post subject: No net.eth0, only enp6/7s0 **SOLVED** Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5801

PostPosted: Sat Dec 01, 2018 3:20 pm    Post subject: Reply with quote

add net.ifnames=1 to your kernel cmdline. :wink:
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Dec 01, 2018 3:45 pm    Post subject: Reply with quote

bunder wrote:
add net.ifnames=1 to your kernel cmdline. :wink:


Thank you!
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Dec 01, 2018 3:59 pm    Post subject: Reply with quote

bunder wrote:
add net.ifnames=1 to your kernel cmdline. :wink:


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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5584

PostPosted: Sat Dec 01, 2018 4:07 pm    Post subject: Reply with quote

Try doing this instead (then reboot):
Code:
true >| /etc/udev/rules.d/80-net-name-slot.rules
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 988
Location: Frankfurt, Germany

PostPosted: Sat Dec 01, 2018 4:11 pm    Post subject: Reply with quote

Quote:
By adding net.ifnames=1 to my kernel cmdline, I assume you mean in /etc/default/grub, correct?

It should be
Code:
net.ifnames=0

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
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 524
Location: Missouri

PostPosted: Sat Dec 01, 2018 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5801

PostPosted: Sat Dec 01, 2018 4:32 pm    Post subject: Reply with quote

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.
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
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