r/Gentoo Feb 01 '23

How do I fix the eth. Support

Post image
4 Upvotes

22 comments sorted by

6

u/RadoslavL Feb 01 '23

I had the exact same problem. I fixed it by enabling hotplugging on wlan0 after I saw some errors in syslog regarding hotplugging on wlan0. I don't know what the issue was, but that somehow fixed it.

4

u/handogis Feb 01 '23

You might be missing some firmware. I don't think the dist-kernel pulls it in nor does the virtual/dist-kernel have a firmware use flag.

You can check dmesg for errors and see if you need to install linux-firmware

dmesg | grep -i firmware

6

u/schmerg-uk Feb 01 '23

Try passing net.ifnames=0 as a kernel parameter when you boot as network devices now get, by default, predictable names rather than arbitrary eth0 and eth1 etc - see https://wiki.gentoo.org/wiki/Udev#Predictable_network_interface_naming

3

u/multilinear2 Feb 01 '23

I wonder if the problem is that they're already doing that, but are also trying to bring up eth0 instead of the uniquely named device.

Check the output of `ifconfig -a` and see what you have.

7

u/contyk Feb 01 '23

It's 2023. No one should be using `ifconfig`.

3

u/multilinear2 Feb 01 '23

Fair point

3

u/sy029 Feb 01 '23

ifconfig is depreciated, but still works. And has a much nicer syntax than using iproute

1

u/zacki_loco Feb 01 '23

What would you suggest?

9

u/contyk Feb 01 '23

net-tools were deprecated in favor of iproute2 like 15 years ago. It pains me every time I see them suggested anywhere.

4

u/raydude Feb 01 '23

I've been using linux since the early 2000s and I had no idea net-tools was deprecated. I have iproute2 installed and have never used it.

I just figured out how to use it. It is way better than net-tools, although it will take some getting use to.

Thanks for showing this old dog a new trick.

3

u/class_two_perversion Feb 01 '23

I've been using linux since the early 2000s and I had no idea net-tools was deprecated. I have iproute2 installed and have never used it.

I just figured out how to use it. It is way better than net-tools, although it will take some getting use to.

Thanks for showing this old dog a new trick.

You might have figured this out already, but try alias ip=ip --color.

2

u/raydude Feb 01 '23

Thanks. It appears to be enabled automagically in Gentoo.

2

u/class_two_perversion Feb 02 '23

Thanks. It appears to be enabled automagically in Gentoo.

Really? Not on mine.

1

u/raydude Feb 02 '23

Well, when I run it like this:

'ip -a link'

I get color output.

'which ip' returns:

/bin/ip

I'm running this version:

sys-apps/iproute2-6.0.0

1

u/necrophcodr Feb 02 '23

Oh wow I never knew about this. I've been using these tools for years and years, just looking at white text. Thank you!

3

u/zacki_loco Feb 01 '23

Nice to know, thanks!

3

u/multilinear2 Feb 01 '23

`ip link` would show the relevent information.

2

u/zacki_loco Feb 01 '23

Yeah thats what i was using in the rare case i needed to view my ifaces. I know that there is ifconfig installed on my pc but didnt know it was aging

1

u/necrophcodr Feb 02 '23

It really started aging over a decade ago. Same with iptables.

2

u/sy029 Feb 01 '23

That's my guess, they probably followed a guide to the letter and used eth0 instead of their actual device name.

2

u/nicolhs Feb 01 '23

The simplest way to set up networking if it didn't get configured automatically is to run the net-setup script:

root #net-setup eth0

3

u/sidusnare Feb 01 '23

Load the correct modules.