WiFi not automatically connected on startup, and no automatic switch between WiFi and ethernet when available

Asked by Miguel Espiv

I am running Ubuntu 20.04.4
It used to work fine, until 3-4 days ago I installed Cape2 to create a cuckoo sandbox, using this script : https://github.com/doomedraven/Tools/blob/master/Sandbox/cape2.sh

Afterwards, there was an error on startup ("Failed to start Anonymizing overlay network for TCP"), which has to do with tor, so I disabled services that had been installed with cape2.sh, such as tor and suricata

However, afterwards on startup the WiFi or the ethernet, if plugged in, are not managed properly I think, since even though the laptop shows that I have internet connection, I can not browse nor do anything that requires Internet such as e.g. apt update and upgrade.

The only thing that I can do now is every time run
$ sudo dhclient wlp3s0
(this is the name of the WiFi network), or
$ sudo dhclient enp0s25
(ethernet)

In summary, I would like that the connection to WiFi be automatically done on startup, instead of having to run dhclient every time, and to automatically switch to ethernet if this is connected: i.e. the default behaviour on a fresh ubuntu installation.

Thanks a lot!

INFORMATION:

Steps 2 and 3

$ sudo apt-get update; sudo apt-get install debian-security-support usbutils pciutils hwinfo grep rfkill; sudo lshw -C network; rfkill list; sudo iwlist scan | grep -Ei 'chan|ssid'; cat /etc/network/interfaces; cat /etc/lsb-release; lspci -nnk | grep -iA2 net; lsusb; nmcli g; sudo lshw -short; uname -a; sudo updatedb; dmesg | grep -E '02:00|80211|acx|at76|ath|b43|bcm|brcm|CX|eth|ipw|ireless|irmware|isl|lbtf|orinoco|ndiswrapper|NPE|ound|p54|prism|rror|rtl|RTL|rt2|RT2|rt3|RT3|rt5|RT5|rt6|RT6|rt7|RT7|usb|witch|wl';sudo dmidecode|grep -E 'anufact|roduct|erial|elease'; iwconfig; grep -E '80211|acx|at76|ath|b43|bcm|brcm|CX|eth|ipw|irmware|isl|lbtf|orinoco|ndiswrapper|NPE|p54|prism|rtl|rt2|rt3|rt6|rt7|wmi|witch|wl' /etc/modprobe.d/*; sudo cat /var/lib/NetworkManager/NetworkManager.state; sudo hwinfo --netcard ; ps -aux|grep -E 'wpa|icd|etwork'; netstat -rn ; cat /etc/resolv.conf; ls -lia /boot; grep tmpfs /etc/fstab; ubuntu-security-status; check-support-status ; sudo update-pciids; sudo lsmod
Hit:1 http://ftp.debian.org/debian buster InRelease
Hit:2 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu focal InRelease
Hit:3 http://ftp.debian.org/debian buster-updates InRelease
Hit:4 http://es.archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://archive.canonical.com/ubuntu focal InRelease
Get:6 http://es.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:8 http://es.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:9 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:10 http://es.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:11 http://es.archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
Fetched 578 kB in 2s (315 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
grep is already the newest version (3.4-1).
usbutils is already the newest version (1:012-2).
debian-security-support is already the newest version (2020.02.25).
hwinfo is already the newest version (21.68-1).
pciutils is already the newest version (1:3.6.4-1ubuntu0.20.04.1).
rfkill is already the newest version (2.34-0.1ubuntu9.3).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
  *-network
       description: Ethernet interface
       product: 82579LM Gigabit Network Connection (Lewisville)
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25
       version: 04
       serial: 28:d2:44:08:f5:27
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-3 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:25 memory:f1500000-f151ffff memory:f153b000-f153bfff ioport:5080(size=32)
  *-network
       description: Wireless interface
       product: Centrino Advanced-N 6205 [Taylor Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 34
       serial: 6c:88:14:34:7c:8c
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.4.0-100-generic firmware=18.168.6.1 ip=192.168.0.130 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:29 memory:f0c00000-f0c01fff
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
                    Channel:1
                    Frequency:5.2 GHz (Channel 1)
                    ESSID:"net1"
lo Interface doesn't support scanning.

enp0s25 Interface doesn't support scanning.

                    Channel:112
                    Frequency:5.56 GHz (Channel 112)
                    ESSID:"sercommBB1414"
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) [8086:1502] (rev 04)
 Subsystem: Lenovo 82579LM Gigabit Network Connection (Lewisville) [17aa:21f3]
 Kernel driver in use: e1000e
 Kernel modules: e1000e
--
03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)
 Subsystem: Intel Corporation Centrino Advanced-N 6205 (802.11a/b/g/n) [8086:1311]
 Kernel driver in use: iwlwifi
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b2da Chicony Electronics Co., Ltd thinkpad t430s camera
Bus 001 Device 003: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
H/W path Device Class Description
======================================================
                            system 2349JNU (LENOVO_MT_2349)
/0 bus 2349JNU
/0/1 processor Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
/0/1/3 memory 32KiB L1 cache
/0/1/4 memory 256KiB L2 cache
/0/1/5 memory 3MiB L3 cache
/0/2 memory 32KiB L1 cache
/0/7 memory 12GiB System Memory
/0/7/0 memory 4GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/7/1 memory 8GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/c memory 128KiB BIOS
/0/100 bridge 3rd Gen Core processor DRAM Controller
/0/100/2 display 3rd Gen Core processor Graphics Controller
/0/100/14 bus 7 Series/C210 Series Chipset Family USB xHCI Host Controller
/0/100/14/0 usb3 bus xHCI Host Controller
/0/100/14/1 usb4 bus xHCI Host Controller
/0/100/16 communication 7 Series/C216 Chipset Family MEI Controller #1
/0/100/16.3 communication 7 Series/C210 Series Chipset Family KT Controller
/0/100/19 enp0s25 network 82579LM Gigabit Network Connection (Lewisville)
/0/100/1a bus 7 Series/C216 Chipset Family USB Enhanced Host Controller #2
/0/100/1a/1 usb1 bus EHCI Host Controller
/0/100/1a/1/1 bus Integrated Rate Matching Hub
/0/100/1a/1/1/3 generic Biometric Coprocessor
/0/100/1a/1/1/6 multimedia Integrated Camera
/0/100/1b multimedia 7 Series/C216 Chipset Family High Definition Audio Controller
/0/100/1c bridge 7 Series/C216 Chipset Family PCI Express Root Port 1
/0/100/1c/0 generic MMC/SD Host Controller
/0/100/1c.1 bridge 7 Series/C210 Series Chipset Family PCI Express Root Port 2
/0/100/1c.1/0 wlp3s0 network Centrino Advanced-N 6205 [Taylor Peak]
/0/100/1d bus 7 Series/C216 Chipset Family USB Enhanced Host Controller #1
/0/100/1d/1 usb2 bus EHCI Host Controller
/0/100/1d/1/1 bus Integrated Rate Matching Hub
/0/100/1f bridge QM77 Express Chipset LPC Controller
/0/100/1f.2 storage 7 Series Chipset Family 6-port SATA Controller [AHCI mode]
/0/100/1f.3 bus 7 Series/C216 Chipset Family SMBus Controller
/0/0 system PnP device PNP0c01
/0/3 system PnP device PNP0c02
/0/4 system PnP device PNP0b00
/0/5 input PnP device PNP0303
/0/6 generic PnP device LEN0015
/0/8 scsi0 storage
/0/8/0.0.0 /dev/sda disk 250GB Samsung SSD 860
/0/8/0.0.0/1 /dev/sda1 volume 228GiB EXT4 volume
/0/8/0.0.0/2 /dev/sda2 volume 4000MiB Linux swap volume
/0/9 scsi1 storage
/0/9/0.0.0 /dev/sdb disk 320GB ST320LT007-9ZV14
/0/9/0.0.0/1 /dev/sdb1 volume 298GiB EXT4 volume
Linux user-ThinkPad-T430 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[ 0.002842] found SMP MP-table at [mem 0x000f0100-0x000f010f]
[ 0.003512] No NUMA configuration found
[ 0.104934] APIC: Switch to symmetric I/O mode setup
[ 0.125406] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.125406] Spectre V2 : Enabling Restricted Speculation for firmware calls
[ 0.138107] core: PMU erratum BJ122, BV98, HSD29 worked around, HT is on
[ 0.159024] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 0.179521] pci 0000:02:00.0: [1180:e822] type 00 class 0x088001
[ 0.179550] pci 0000:02:00.0: MMC controller base frequency changed to 50Mhz.
[ 0.179588] pci 0000:02:00.0: reg 0x10: [mem 0xf0d00000-0xf0d000ff]
[ 0.179826] pci 0000:02:00.0: supports D1 D2
[ 0.179827] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.183182] usbcore: registered new interface driver usbfs
[ 0.183182] usbcore: registered new interface driver hub
[ 0.183182] usbcore: registered new device driver usb
[ 0.189984] clocksource: Switched to clocksource tsc-early
[ 0.202870] pnp 00:01: [Firmware Bug]: PNP resource [mem 0xfed10000-0xfed13fff] covers only part of 0000:00:00.0 Intel MCH; extending to [mem 0xfed10000-0xfed17fff]
[ 0.203635] pnp: PnP ACPI: found 5 devices
[ 0.430805] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[ 0.430841] ACPI: Lid Switch [LID]
[ 0.621121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.621123] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.621124] usb usb1: Product: EHCI Host Controller
[ 0.621126] usb usb1: Manufacturer: Linux 5.4.0-100-generic ehci_hcd
[ 0.621126] usb usb1: SerialNumber: 0000:00:1a.0
[ 0.621405] hub 1-0:1.0: USB hub found
[ 0.641115] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.641117] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.641118] usb usb2: Product: EHCI Host Controller
[ 0.641120] usb usb2: Manufacturer: Linux 5.4.0-100-generic ehci_hcd
[ 0.641121] usb usb2: SerialNumber: 0000:00:1d.0
[ 0.641377] hub 2-0:1.0: USB hub found
[ 0.643109] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.643111] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.643112] usb usb3: Product: xHCI Host Controller
[ 0.643113] usb usb3: Manufacturer: Linux 5.4.0-100-generic xhci-hcd
[ 0.643114] usb usb3: SerialNumber: 0000:00:14.0
[ 0.643285] hub 3-0:1.0: USB hub found
[ 0.643876] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 0.643877] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.643878] usb usb4: Product: xHCI Host Controller
[ 0.643879] usb usb4: Manufacturer: Linux 5.4.0-100-generic xhci-hcd
[ 0.643880] usb usb4: SerialNumber: 0000:00:14.0
[ 0.644056] hub 4-0:1.0: USB hub found
[ 0.653825] RAS: Correctable Errors collector initialized.
[ 0.663322] ima: No TPM chip found, activating TPM-bypass!
[ 0.663337] ima: No architecture policies found
[ 0.734319] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 0.742455] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 0.842737] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 0.861607] sdhci-pci 0000:02:00.0: SDHCI controller found [1180:e822] (rev 7)
[ 0.864669] mmc0: SDHCI controller on PCI [0000:02:00.0] using DMA
[ 0.878346] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 0.896961] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 0.909243] fb0: switching to inteldrmfb from VESA VGA
[ 1.031384] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) 28:d2:44:08:f5:27
[ 1.031386] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
[ 1.031425] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: 1000FF-0FF
[ 1.032405] e1000e 0000:00:19.0 enp0s25: renamed from eth0
[ 1.037754] usb 1-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[ 1.037756] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.038229] hub 1-1:1.0: USB hub found
[ 1.053644] usb 2-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[ 1.053648] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.054072] hub 2-1:1.0: USB hub found
[ 1.186713] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 1.187670] ata2.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 1.191126] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 1.193803] ata2.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
[ 1.324981] usb 1-1.3: new full-speed USB device number 3 using ehci-pci
[ 1.445082] clocksource: Switched to clocksource tsc
[ 1.482727] usb 1-1.3: New USB device found, idVendor=147e, idProduct=2020, bcdDevice= 0.01
[ 1.482729] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.482730] usb 1-1.3: Product: Biometric Coprocessor
[ 1.482731] usb 1-1.3: Manufacturer: Auth
[ 1.561016] usb 1-1.6: new high-speed USB device number 4 using ehci-pci
[ 1.678118] usb 1-1.6: New USB device found, idVendor=04f2, idProduct=b2da, bcdDevice= 5.20
[ 1.678120] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.678121] usb 1-1.6: Product: Integrated Camera
[ 1.678121] usb 1-1.6: Manufacturer: Chicony Electronics Co., Ltd.
[ 1.802113] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 2.203704] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 2.210976] lp: driver loaded but no devices found
[ 2.243263] vboxdrv: Found 4 processor cores
[ 2.316570] psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
[ 2.363688] audit: type=1400 audit(1645480640.193:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ippusbxd" pid=399 comm="apparmor_parser"
[ 3.283880] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.301397] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.314501] thinkpad_acpi: radio switch found; radios are enabled
[ 3.329817] Intel(R) Wireless WiFi driver for Linux
[ 3.330107] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 3.341366] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[ 3.381135] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 3.381138] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[ 3.381140] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 3.381142] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Advanced-N 6205 AGN, REV=0xB0
[ 3.417123] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 3.671374] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 3.780585] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 3.780668] input: HDA Intel PCH Dock Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 3.780739] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 3.780831] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 3.780924] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 3.781087] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 3.781171] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[ 6.314878] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[ 6.451239] intel_rapl_common: Found RAPL domain package
[ 6.451241] intel_rapl_common: Found RAPL domain core
[ 6.451242] intel_rapl_common: Found RAPL domain uncore
[ 7.013082] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[ 7.311883] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[ 9.101659] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b2da)
[ 9.109768] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/input/input16
[ 9.110090] usbcore: registered new interface driver uvcvideo
[ 10.579335] wlp3s0: authenticate with 40:3f:8c:a6:b9:64
[ 10.582482] wlp3s0: send auth to 40:3f:8c:a6:b9:64 (try 1/3)
[ 10.643079] wlp3s0: authenticated
[ 10.643263] wlp3s0: waiting for beacon from 40:3f:8c:a6:b9:64
[ 10.744907] wlp3s0: associate with 40:3f:8c:a6:b9:64 (try 1/3)
[ 10.852902] wlp3s0: associate with 40:3f:8c:a6:b9:64 (try 2/3)
[ 10.883076] wlp3s0: RX AssocResp from 40:3f:8c:a6:b9:64 (capab=0x1411 status=0 aid=2)
[ 10.901264] wlp3s0: associated
[ 10.932511] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
 Manufacturer: Intel(R) Corporation
 Serial Number: None
 Manufacturer: Hynix/Hyundai
 Serial Number: 0C2B9C47
 Manufacturer: 8502
 Serial Number: 00000000
 Release Date: 06/05/2018
  Serial services are supported (int 14h)
 Manufacturer: LENOVO
 Product Name: 2349JNU
 Serial Number: PB6KFF3
 Manufacturer: LENOVO
 Product Name: 2349JNU
 Serial Number: 1ZSKM33W8UX
 Manufacturer: LENOVO
 Serial Number: PB6KFF3
 Release Date: 03/04/2014
wlp3s0 IEEE 802.11 ESSID:"net1"
          Mode:Managed Frequency:5.2 GHz Access Point: 40:3F:8C:A6:B9:64
          Bit Rate=135 Mb/s Tx-Power=15 dBm
          Retry short limit:7 RTS thr:off Fragment thr:off
          Power Management:on
          Link Quality=70/70 Signal level=-24 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:18 Missed beacon:0

lo no wireless extensions.

enp0s25 no wireless extensions.

/etc/modprobe.d/alsa-base.conf:install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
/etc/modprobe.d/blacklist-ath_pci.conf:# which ath5k cannot recover. To prevent this condition, stop
/etc/modprobe.d/blacklist-ath_pci.conf:blacklist ath_pci
/etc/modprobe.d/blacklist.conf:blacklist eth1394
/etc/modprobe.d/blacklist.conf:# replaced by p54pci
/etc/modprobe.d/blacklist.conf:blacklist prism54
/etc/modprobe.d/blacklist.conf:# replaced by b43 and ssb.
/etc/modprobe.d/blacklist.conf:blacklist bcm43xx
/etc/modprobe.d/blacklist-oss.conf:blacklist uart6850
/etc/modprobe.d/iwlwifi.conf:# /etc/modprobe.d/iwlwifi.conf
/etc/modprobe.d/iwlwifi.conf:# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
/etc/modprobe.d/iwlwifi.conf:# microcode file installed on the system. When removing iwlwifi, first
/etc/modprobe.d/iwlwifi.conf:# remove the iwl?vm module and then iwlwifi.
/etc/modprobe.d/iwlwifi.conf:remove iwlwifi \
/etc/modprobe.d/iwlwifi.conf:(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
/etc/modprobe.d/iwlwifi.conf:&& /sbin/modprobe -r mac80211
state
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
07: PCI 300.0: 0282 WLAN controller
  [Created at pci.386]
  Unique ID: hAO_.fNsjQBRm576
  Parent ID: qTvu.DSJ0doO1rw2
  SysFS ID: /devices/pci0000:00/0000:00:1c.1/0000:03:00.0
  SysFS BusID: 0000:03:00.0
  Hardware Class: network
  Model: "Intel Centrino Advanced-N 6205 (802.11a/b/g/n)"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x0085 "Centrino Advanced-N 6205 [Taylor Peak]"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x1311 "Centrino Advanced-N 6205 (802.11a/b/g/n)"
  Revision: 0x34
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlp3s0
  Features: WLAN
  Memory Range: 0xf0c00000-0xf0c01fff (rw,non-prefetchable)
  IRQ: 29 (14425 events)
  HW Address: 6c:88:14:34:7c:8c
  Permanent HW Address: 6c:88:14:34:7c:8c
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68 5.7
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d00000085sv00008086sd00001311bc02sc80i00"
  Driver Info #0:
    Driver Status: iwlwifi is active
    Driver Activation Cmd: "modprobe iwlwifi"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #17 (PCI bridge)

14: PCI 19.0: 0200 Ethernet controller
  [Created at pci.386]
  Unique ID: ID95.41x4AT4gee2
  SysFS ID: /devices/pci0000:00/0000:00:19.0
  SysFS BusID: 0000:00:19.0
  Hardware Class: network
  Model: "Intel 82579LM Gigabit Network Connection (Lewisville)"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x1502 "82579LM Gigabit Network Connection (Lewisville)"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x21f3
  Revision: 0x04
  Driver: "e1000e"
  Driver Modules: "e1000e"
  Device File: enp0s25
  Memory Range: 0xf1500000-0xf151ffff (rw,non-prefetchable)
  Memory Range: 0xf153b000-0xf153bfff (rw,non-prefetchable)
  I/O Ports: 0x5080-0x509f (rw)
  IRQ: 25 (161 events)
  HW Address: 28:d2:44:08:f5:27
  Permanent HW Address: 28:d2:44:08:f5:27
  Link detected: no
  Module Alias: "pci:v00008086d00001502sv000017AAsd000021F3bc02sc00i00"
  Driver Info #0:
    Driver Status: e1000e is active
    Driver Activation Cmd: "modprobe e1000e"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
root 603 0.1 0.1 887768 20940 ? Ssl 22:57 0:00 /usr/sbin/NetworkManager --no-daemon
root 614 0.0 0.1 42472 20608 ? Ss 22:57 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root 640 0.0 0.0 14072 9232 ? Ss 22:57 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
user 5209 0.0 0.0 11564 2612 pts/0 S+ 23:02 0:00 grep --color=auto -E wpa|icd|etwork
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlp3s0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlp3s0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp3s0
nameserver 192.168.0.1
total 202260
7602177 drwxr-xr-x 3 root root 4096 Feb 18 10:35 .
      2 drwxr-xr-x 31 root root 4096 Feb 19 14:34 ..
7605259 -rw-r--r-- 1 root root 237942 Feb 3 19:16 config-5.4.0-100-generic
7609235 -rw-r--r-- 1 root root 237940 Jan 28 10:54 config-5.4.0-98-generic
7602178 drwxr-xr-x 5 root root 4096 Feb 20 00:58 grub
7605257 lrwxrwxrwx 1 root root 28 Feb 9 19:23 initrd.img -> initrd.img-5.4.0-100-generic
7602182 -rw-r--r-- 1 root root 84588080 Feb 18 10:35 initrd.img-5.4.0-100-generic
7602179 -rw-r--r-- 1 root root 84610914 Feb 4 09:48 initrd.img-5.4.0-98-generic
7609238 lrwxrwxrwx 1 root root 27 Feb 9 19:23 initrd.img.old -> initrd.img-5.4.0-98-generic
7607492 -rw-r--r-- 1 root root 182704 Aug 18 2020 memtest86+.bin
7607493 -rw-r--r-- 1 root root 184380 Aug 18 2020 memtest86+.elf
7607498 -rw-r--r-- 1 root root 184884 Aug 18 2020 memtest86+_multiboot.bin
7602185 -rw------- 1 root root 4758018 Feb 3 19:16 System.map-5.4.0-100-generic
7609234 -rw------- 1 root root 4758018 Jan 28 10:54 System.map-5.4.0-98-generic
7609239 lrwxrwxrwx 1 root root 25 Feb 9 19:23 vmlinuz -> vmlinuz-5.4.0-100-generic
7609327 -rw------- 1 root root 13664512 Feb 4 18:04 vmlinuz-5.4.0-100-generic
7609236 -rw------- 1 root root 13664512 Jan 28 12:42 vmlinuz-5.4.0-98-generic
7609686 lrwxrwxrwx 1 root root 24 Feb 9 19:23 vmlinuz.old -> vmlinuz-5.4.0-98-generic
3578 packages installed, of which:
2309 receive package updates with LTS until 4/2025
  18 packages are from third parties
  79 packages are no longer available for download

Packages from third parties are not provided by the official Ubuntu
archive, for example packages from Personal Package Archives in
Launchpad.
For more information on the packages, run 'ubuntu-security-status
--thirdparty'.

Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.
For more information on the packages, run 'ubuntu-security-status
--unavailable'.

This machine is not attached to an Ubuntu Advantage subscription.
See https://ubuntu.com/advantage
Limited security support for one or more packages
Unfortunately, it has been necessary to limit security support for some
packages.
The following packages found on this system are affected by this:

* Source:binutils
  Details: Only suitable for trusted content; see https://<email address hidden>
  Affected binary packages:
  - binutils (installed version: 2.34-6ubuntu1.3)
  - binutils-common:amd64 (installed version: 2.34-6ubuntu1.3)
  - binutils-dev (installed version: 2.34-6ubuntu1.3)
  - binutils-x86-64-linux-gnu (installed version: 2.34-6ubuntu1.3)
  - libbinutils:amd64 (installed version: 2.34-6ubuntu1.3)
  - libctf-nobfd0:amd64 (installed version: 2.34-6ubuntu1.3)
  - libctf0:amd64 (installed version: 2.34-6ubuntu1.3)

* Source:mozjs52
  Details: Not covered by security support, only suitable for trusted content
  Affected binary package:
  - libmozjs-52-0:amd64 (installed version: 52.9.1-1ubuntu3)

* Source:qtwebkit-opensource-src
  Details: No security support upstream and backports not feasible, only for use on trusted content
  Affected binary package:
  - libqt5webkit5:amd64 (installed version: 5.212.0~alpha4-1ubuntu2.1)

  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 275k 100 275k 0 0 509k 0 --:--:-- --:--:-- --:--:-- 508k
Done.
Module Size Used by
ccm 20480 3
uvcvideo 98304 0
videobuf2_vmalloc 20480 1 uvcvideo
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_common 57344 2 videobuf2_v4l2,uvcvideo
videodev 225280 3 videobuf2_v4l2,uvcvideo,videobuf2_common
mc 53248 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
intel_rapl_msr 20480 0
mei_hdcp 24576 0
nf_tables 139264 0
nfnetlink 16384 1 nf_tables
iptable_nat 16384 1
xt_REDIRECT 20480 4
nf_nat 45056 2 iptable_nat,xt_REDIRECT
nf_conntrack 139264 2 nf_nat,xt_REDIRECT
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
libcrc32c 16384 2 nf_conntrack,nf_nat
xt_tcpudp 20480 4
bpfilter 32768 0
snd_hda_codec_hdmi 61440 1
snd_hda_codec_realtek 131072 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
snd_hda_intel 53248 3
snd_intel_dspcfg 28672 1 snd_hda_intel
snd_hda_codec 135168 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 90112 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 106496 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
intel_rapl_common 24576 1 intel_rapl_msr
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
coretemp 20480 0
kvm_intel 282624 0
kvm 663552 1 kvm_intel
rapl 20480 0
snd_seq_midi 20480 0
snd_seq_midi_event 16384 1 snd_seq_midi
intel_cstate 20480 0
joydev 24576 0
input_leds 16384 0
snd_rawmidi 36864 1 snd_seq_midi
iwldvm 237568 0
snd_seq 69632 2 snd_seq_midi,snd_seq_midi_event
mac80211 847872 1 iwldvm
serio_raw 20480 0
wmi_bmof 16384 0
libarc4 16384 1 mac80211
iwlwifi 331776 1 iwldvm
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
thinkpad_acpi 110592 0
nvram 16384 1 thinkpad_acpi
ledtrig_audio 16384 3 snd_hda_codec_generic,snd_hda_codec_realtek,thinkpad_acpi
snd_timer 36864 2 snd_seq,snd_pcm
cfg80211 708608 3 iwldvm,iwlwifi,mac80211
snd 90112 18 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidi
mei_me 40960 1
mei 106496 3 mei_hdcp,mei_me
soundcore 16384 1 snd
mac_hid 16384 0
binfmt_misc 24576 1
sch_fq_codel 20480 6
vboxdrv 499712 0
msr 16384 0
parport_pc 40960 0
nfsd 405504 13
ppdev 24576 0
auth_rpcgss 94208 1 nfsd
nfs_acl 16384 1 nfsd
lockd 102400 1 nfsd
lp 20480 0
grace 16384 2 nfsd,lockd
parport 53248 3 parport_pc,lp,ppdev
sunrpc 393216 18 nfsd,auth_rpcgss,lockd,nfs_acl
ip_tables 32768 1 iptable_nat
x_tables 40960 3 xt_tcpudp,ip_tables,xt_REDIRECT
autofs4 45056 2
crct10dif_pclmul 16384 1
i915 1994752 18
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
i2c_algo_bit 16384 1 i915
aesni_intel 372736 2
drm_kms_helper 184320 1 i915
crypto_simd 16384 1 aesni_intel
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
syscopyarea 16384 1 drm_kms_helper
glue_helper 16384 1 aesni_intel
psmouse 155648 0
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
sdhci_pci 53248 0
ahci 40960 2
lpc_ich 24576 0
i2c_i801 32768 0
libahci 32768 1 ahci
drm 491520 10 drm_kms_helper,i915
cqhci 28672 1 sdhci_pci
e1000e 258048 0
sdhci 65536 1 sdhci_pci
wmi 32768 1 wmi_bmof
video 49152 2 thinkpad_acpi,i915

Step 4
Lenovo Thinkpad T430
I'm trying that the connection to the wireless "wlp3s0" be automatically done on startup, instead of every time having to run
$ sudo dhclient wlp3s0
Also, that if the ethernet cable "enp0s25" is plugged in, that the connection switches to it, instead of having to run
$ sudo dhclient enp0s25

Step 5
Ubuntu is installed and running from a harddisk

Step6
$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
00:16.3 Serial controller [0700]: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller [8086:1e3d] (rev 04)
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) [8086:1502] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)
00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation QM77 Express Chipset LPC Controller [8086:1e55] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04)
02:00.0 System peripheral [0880]: Ricoh Co Ltd MMC/SD Host Controller [1180:e822] (rev 07)
03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Miguel Espiv
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you edit /etc/rc.local and add:

dhclient wlp3s0
dhclient enp0s25

above the "exit 0" line then it will run at boot.

If the file is empty then also run:

sudo chmod +x /etc/rc.local

This will run as root each bootup. Does it help?

Revision history for this message
Miguel Espiv (miguelespiv) said :
#2

Thanks, if I do all that, so that it looks like this:

#!/bin/sh

#rfkill block bluetooth
dhclient wlp3s0
dhclient enp0s25
#exit 0

when I reboot, it does not complete the bootup and says "unknown wlp3s0 device".

Any idea of why this could not work?

I also have these other similar-name directories:

$ ls /etc/rc*
rc0.d/ rc2.d/ rc4.d/ rc6.d/ rcS.d/ rc1.d/ rc3.d/ rc5.d/ rc.local

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

rc.local is the last to run.

Do you have the latest BIOS?
Have you tried rebooting your router recently?

Revision history for this message
Miguel Espiv (miguelespiv) said :
#4

The BIOS was updated in 2018, and I think the latest BIOS is from 2019, so IDK if updating would help

https://pcsupport.lenovo.com/es/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t430s/downloads/ds029724

I rebooted the router and still same

Revision history for this message
Miguel Espiv (miguelespiv) said (last edit ):
#5

Hi, in the end I enabled and started some services that had to do with networking and that apparently I had disabled, and now it seems to be working properly:

sudo systemctl enable networking.service
sudo systemctl start networking.service

sudo systemctl enable systemd-networkd.service
sudo systemctl start systemd-networkd.service

sudo systemctl enable systemd-networkd.socket
sudo systemctl start systemd-networkd.socket

sudo systemctl enable systemd-network-generator.service
sudo systemctl start systemd-network-generator.service

sudo systemctl enable NetworkManager-dispatcher.service
sudo systemctl start NetworkManager-dispatcher.service

sudo systemctl enable systemd-resolved.service
sudo systemctl enable systemd-logind.service

In case it helps anyone, the services I have enabled on bootup are:

nfs-server.service
dev-sda1.device
fwupd.service
upower.service
systemd-tmpfiles-setup.service
networkd-dispatcher.service
accounts-daemon.service
smartmontools.service
switcheroo-control.service
udisks2.service
NetworkManager.service
systemd-journal-flush.service
uwsgi.service
kerneloops.service
user@1000.service
systemd-udev-trigger.service
thermald.service
grub-common.service
systemd-udevd.service
wpa_supplicant.service
systemd-logind.service
keyboard-setup.service
systemd-resolved.service
sysfsutils.service
hddtemp.service
lm-sensors.service
rsyslog.service
networking.service
systemd-modules-load.service
gdm.service
systemd-journald.service
ntp.service
apparmor.service
polkit.service
systemd-networkd.service
proc-fs-nfsd.mount
colord.service
plymouth-quit-wait.service
nfs-mountd.service
binfmt-support.service
systemd-sysctl.service
dns-clean.service
sysstat.service
dev-disk-by\x2duuid-2859f250\x2d85ca\x2d44f0\x2dbd16\x2d645e80eeb002.swap
run-rpc_pipefs.mount
systemd-sysusers.service
proc-sys-fs-binfmt_misc.mount
user-runtime-dir@1000.service
systemd-tmpfiles-setup-dev.service
systemd-tmpfiles-clean.service
alsa-restore.service
plymouth-read-write.service
systemd-random-seed.service
rc-local.service
dev-hugepages.mount
systemd-user-sessions.service
rpcbind.service
dev-mqueue.mount
grub-initrd-fallback.service
nfs-idmapd.service
systemd-remount-fs.service
console-setup.service
sys-kernel-debug.mount
sys-kernel-tracing.mount
systemd-fsck-root.service
systemd-networkd-wait-online.service
kmod-static-nodes.service
systemd-update-utmp.service
systemd-update-utmp-runlevel.service
systemd-backlight@backlight:intel_backlight.service
systemd-backlight@backlight:acpi_video0.service
rtkit-daemon.service
ufw.service
nfs-blkmap.service
nfs-config.service
setvtrgb.service
ifupdown-pre.service
sys-fs-fuse-connections.mount
sys-kernel-config.mount

Thanks a lot!