Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] eth0 and wlan0 are gone

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

[SOLVED] eth0 and wlan0 are gone

  • Quote

Post by ONEEYEMAN » Tue Jun 07, 2022 8:56 pm

Hi, ALL,
I updated my kernel and rebooted.

I didn't get any exceptions, however I lost my network interfaces and my kernel modules failed to load.

In order to fix problem 1 I tried to create a file 80-net-name-slot.rules and rebooted, but that didn't fix it. I still don't have
those interfaces.

In the past I was modifying the grub menu by adding a parameter to keep those names. Maybe I should try this?
However with GRUB2 autogenerating the configuration file it will be hard to maintain.

For the second I tried to re-run "make modules_install", and then reboot, but the modules, namely VirtualBox ones, still are not loaded.

Any help would be great.

Thank you.
Last edited by ONEEYEMAN on Thu Jun 09, 2022 1:17 pm, edited 1 time in total.
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Tue Jun 07, 2022 9:09 pm


eth0 and wlan0
Are they maybe renamed to their original enxxx wlxxxxx names?

What does

Code: Select all

ip a
show?

Code: Select all

net.ifnames=0
is the kernel parameter that will bring them back.
but the modules, namely VirtualBox ones, still are not loaded
These are out of tree modules.
Plz use

Code: Select all

emerge @module-rebuild
to rebuild them
Plz make sure your /usr/src/linux symlink points to the new kernel,the initramfs--if any-- is rebuilt, and grub is updated.
:)
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Tue Jun 07, 2022 9:53 pm

alamahant wrote:

eth0 and wlan0
Are they maybe renamed to their original enxxx wlxxxxx names?
Probably.
However, running "ifconfig", I can only see "lo" interface.
alamahant wrote: What does

Code: Select all

ip a
show?

Code: Select all

net.ifnames=0
is the kernel parameter that will bring them back.
but the modules, namely VirtualBox ones, still are not loaded
These are out of tree modules.
Plz use

Code: Select all

emerge @module-rebuild
to rebuild them
OK, will do that.
alamahant wrote: Plz make sure your /usr/src/linux symlink points to the new kernel,the initramfs--if any-- is rebuilt, and grub is updated.
I will answer the rest when I get home.

Thank you.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Tue Jun 07, 2022 10:21 pm

Code: Select all

ifconfig -a

Code: Select all

-a     display all interfaces which are currently available, even if down
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Tue Jun 07, 2022 10:28 pm

However, running "ifconfig", I can only see "lo" interface.
This is bad news.
Is it a kernel issue?
Did you change your .config?
:)
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Tue Jun 07, 2022 10:51 pm

However, running "ifconfig", I can only see "lo" interface.
This is bad news.
Is it a kernel issue?
No, that's expected. 'ifconfig' doesn't show interfaces that are down. 'ifconfig -a' is the required command.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 12:09 am

mike155 wrote:

Code: Select all

ifconfig -a

Code: Select all

-a     display all interfaces which are currently available, even if down
OK, this does show the ugly named interfaces.

Now all I need is to make them to e eth0/wlan0. ;-)

Thank you.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

Re: eth0 and wlan0 are gone

  • Quote

Post by mike155 » Wed Jun 08, 2022 12:44 am

ONEEYEMAN wrote:In the past I was modifying the grub menu by adding a parameter to keep those names. Maybe I should try this?
However with GRUB2 autogenerating the configuration file it will be hard to maintain.
Do you run grub-mkconfig to generate the GRUB config file?

There's a file /etc/default/grub. You can define default parameters in that file. On one of my machines, I have:

Code: Select all

GRUB_CMDLINE_LINUX="net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax"
Another approach is to ditch grub-mkconfig - and to maintain a short, handwritten /boot/grub/grub.cfg:

Code: Select all

timeout=5
default=0
menu_color_normal=white/blue

menuentry 'Linux' {
   set root='hd0,msdos1'
   linux /vmlinuz root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}

menuentry 'Linux Old' {
   set root='hd0,msdos1'
   linux /vmlinuz.old root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}

menuentry 'Linux Backup' {
   set root='hd0,msdos1'
   linux /vmlinuz-Backup root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 12:53 am

Hi,
OK, just tried to rebuild modules.

Got following messages:

Code: Select all

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing
Run make oldconfig && make prepare on kernel src to fix it
/bin/false)
warning: The compiler differs from the one used to build the kernel
However, the build continued until it errored out with:

Code: Select all

ccache: error: Failed to create temporary file /var/cache/ccache/......: Permission denied
I presume I shuold set up the permission to the ccache directory, but the ccache page here says it has security implications.

Thank you.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

Re: eth0 and wlan0 are gone

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 12:56 am

mike155 wrote:
ONEEYEMAN wrote:In the past I was modifying the grub menu by adding a parameter to keep those names. Maybe I should try this?
However with GRUB2 autogenerating the configuration file it will be hard to maintain.
Do you run grub-mkconfig to generate the GRUB config file?
Yes, I did.
mike155 wrote: There's a file /etc/default/grub. You can define default parameters in that file. On one of my machines, I have:

Code: Select all

GRUB_CMDLINE_LINUX="net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax"
OK, thx, I will try to do that.

But I'm curious why creating that file I put in the OP didn't help....
mike155 wrote: Another approach is to ditch grub-mkconfig - and to maintain a short, handwritten /boot/grub/grub.cfg:

Code: Select all

timeout=5
default=0
menu_color_normal=white/blue

menuentry 'Linux' {
   set root='hd0,msdos1'
   linux /vmlinuz root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}

menuentry 'Linux Old' {
   set root='hd0,msdos1'
   linux /vmlinuz.old root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}

menuentry 'Linux Backup' {
   set root='hd0,msdos1'
   linux /vmlinuz-Backup root=/dev/nvme0n1p2 ro net.ifnames=0 ipv6.disable=1 init=/usr/lib/systemd/systemd acpi_enforce_resources=lax
}
Last edited by ONEEYEMAN on Wed Jun 08, 2022 1:31 am, edited 2 times in total.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 1:16 am

mike155,
Yes, adding that fixed the issue.

Now I guess wpa_supplicant changed something because it now fails to parse the config file:

Code: Select all

line 8: Invalid cipher: CCMP TKIP
line 8: failed to parse pairwise 'CCMP TKIP'
which according to this is deprecated.

So, I'm going to fix the configuration file now and reboot again. ;-)

Thank you.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 4:00 am

Hi,
Please see here.

Thank you.
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jun 08, 2022 2:51 pm

Please post text, not images. Imgur in particular is bad, as all it can show is:

Code: Select all

 If you're seeing this message, that means JavaScript has been disabled on your browser, please enable JS to make Imgur work.
As for the interfaces, you were specifically asked to use ip a because it is known not to have the ifconfig behavior of hiding down interfaces.

Yes, TKIP is deprecated. Sadly, many wireless access points seem to still be configured to require it. We had quite a few threads here over the last few months from people who updated and found their wireless broken because of this. Most of them ignored the advice to fix their AP, and instead reactivated the deprecated and insecure TKIP support.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Wed Jun 08, 2022 3:59 pm

Hu,
I will check with Comcast if they drop TKIP support and if so - remove it from configuration file.

Worst case scenario - I will ask for a new router without TKIP support.

And if they don't have it - I will have no choice but recompile with the option, right?

Thank you.

P.S.: Just talk to Comcast. I will be exchanging my current modem/router with the one that don't
have TKIP.

Then all I will need is to fix the configuration.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Thu Jun 09, 2022 12:34 am

Hu,
Right now my wpa_supplicant.conf file look like this:

Code: Select all

ctrl_interface=/var/run/wpa_supplcant
ctrl_interface_group=0
ap_scan=1
network={
      ssid="IgorNetwork"
      proto=RSN
      key-mgmt=WPA-PSK
#    pairwise=CCMP TKIP
       pairwise=CCMP
#     group=CCMP TKIP WEP104 WEP40
        group=CCMP WEP104 WEP40
        psk=<my_secret_passphrase>
        priority=5
}
Trying to start wpa_supplicant, I get:

Code: Select all

* Starting WPA Supplicant Daemon
Successfully nitialized wpa_supplicant
Line 11: Invalid cipher 'CCMP WEP104 WEP40'
Line 11: failed to parse group 'CCMP WEP104 WEP40'
Line 14: failed to parse network block
Failed to read or parse configuration '/etc/wpa_spplicant/wpa_supplicant.conf'
: CTRL-EVENT-DSCP-POLICY clear_all
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant`
* Failed to start WPA Supplicant Daemon
* ERROR: wpa_supplicant failed to start
What else I should remove?

Also I'm using the default set of USE flagsL

Code: Select all

USE="crda dbus fils bs2-0 mesh readline -ap -broadcom-sta -eap-sim -eapol-test -fasteap -macsec -p2p -privsep (-ps3) -qt5 (-selinx) -smartcard -tdls -tkip -uncommon-eap-types -wep (-wimax) -wps
Now I have another Gentoo machine that I recently built and t has 0.9-r3 version, which parses just fine.

This machine has 0.10-r1 and fails to parse.

So the change was introduced very recently.

Thank you.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Thu Jun 09, 2022 3:29 am

Why not the up-to-date 2.10-r1?

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
	ssid="<my_ssid>"
	psk="<my_psk>"
	proto=RSN
	key_mgmt=WPA-PSK
	pairwise=CCMP
	auth_alg=OPEN
}
This works. It was set up through the wpa_gui.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Thu Jun 09, 2022 3:58 am

H,
Yes, that works.

The other machine is not yet updated.

Thank you.
Top
Post Reply

17 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic