Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New wifi connection eeach boot

  1. #1
    Join Date
    Jun 2008
    Location
    Yorkshire
    Posts
    378

    Default New wifi connection eeach boot

    My Network Manager has recently started to create a wifi connection on every reboot. I'm currently up to wlan28 (from wlan0, of course). It means inputting the router password each time to restart wifi, which of course is doable fairly quickly but a total pain.
    I'm on framework 5.78 and plasma 5.20.5.
    It seems like a bug but I'm not sure how to handle it.
    Anyone have any ideas?
    Pete

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    27,966

    Default Re: New wifi connection eeach boot

    While this should not happen of course, I do not think that NM is to blame. The device names are given by the system (udev).
    This to avoid searching for a solution in the wrong place.
    Henk van Velden

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    5,326

    Default AW: New wifi connection eeach boot

    Read:
    https://bugs.launchpad.net/ubuntu/+s...ev/+bug/153727

    I was affected by the same bug on wlan a few years ago, I have done something, but I do not know it anymore.

    But it has to do with udev......
    Last edited by Sauerland; 19-Jan-2021 at 06:32.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    27,966

    Default Re: AW: New wifi connection eeach boot

    Quote Originally Posted by Sauerland View Post
    Read:
    https://bugs.launchpad.net/ubuntu/+s...ev/+bug/153727

    I was affected by the same bug on wlan a few years ago, I have done something, but I do not know it anymore.

    But it has to do with udev......
    A case of MAC spoofing? https://en.wikipedia.org/wiki/MAC_spoofing

    See the part about MAC Address Randomization in WiFi.
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Yorkshire
    Posts
    378

    Default Re: New wifi connection eeach boot

    I'm not much wiser but thanks for the responses. I added wifi.scan-rand-mac-address=no to Networkmanager.conf some time ago because I thought that stops it. Maybe I've got that the wrong way round.
    I'm now up to wlan32.
    Pete

  6. #6
    Join Date
    Jul 2018
    Location
    Loma Linda, Mo
    Posts
    466

    Default Re: New wifi connection eeach boot

    You can edit this file and delete all the wlan entries

    sudo vi /etc/udev/rules.d/70-persistent-net.rules
    OpenSUSE 15.2 with VirtualBox VM's (XP, 10, Ubuntu MATE 20.04, OpenSUSE 15.2)
    Pi4 with Ubuntu MATE 20.04
    Unix since 1974 (pdp-11, Interdata, AT&T, Tandy, Convergent, Sun, IBM, NCR, and HP)
    Linux since 1995 (Mandrake, Redhat, Fedora, CentOS, OpenSUSE)

  7. #7
    Join Date
    Jun 2008
    Location
    Yorkshire
    Posts
    378

    Default Re: New wifi connection eeach boot

    Quote Originally Posted by larryr View Post
    You can edit this file and delete all the wlan entries

    sudo vi /etc/udev/rules.d/70-persistent-net.rules
    Thanks. I'd already done that and started back at wlan0. This morning I'm at wlan1.
    So I'm back where I started. Maybe I'll just live with it and see if it corrects itself with future updates.
    Pete

  8. #8
    Join Date
    Jun 2008
    Location
    Yorkshire
    Posts
    378

    Default Re: AW: New wifi connection eeach boot

    Quote Originally Posted by hcvv View Post
    A case of MAC spoofing? https://en.wikipedia.org/wiki/MAC_spoofing

    See the part about MAC Address Randomization in WiFi.
    I've been looking at this further and the mac address remains the same throughout. Only the device name changes, incremented by 1 each time. Having restarted I'm now on wlan4.
    Pete

  9. #9
    Join Date
    Jul 2018
    Location
    Loma Linda, Mo
    Posts
    466

    Default Re: New wifi connection eeach boot

    The wrong way to fix it but it should work!!!

    step 1 sudo vi /etc/udev/rules.d/70-persistent-net.rules and delete all but wlan0

    step 2 sudo chmod 444 /etc/udev/rules.d/70-persistent-net.rules - make it so that it cannot be changed (it should be 644)

    now it cannot be added to any more.

    to undo just sudo chmod 644 /etc/udev/rules.d/70-persistent-net.rules

    For 45 years my job was to get Unix/Linux working - sometime the fix is just plain UGLY. Then you wait for the proper fix.
    OpenSUSE 15.2 with VirtualBox VM's (XP, 10, Ubuntu MATE 20.04, OpenSUSE 15.2)
    Pi4 with Ubuntu MATE 20.04
    Unix since 1974 (pdp-11, Interdata, AT&T, Tandy, Convergent, Sun, IBM, NCR, and HP)
    Linux since 1995 (Mandrake, Redhat, Fedora, CentOS, OpenSUSE)

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,621
    Blog Entries
    1

    Default Re: New wifi connection eeach boot

    Quote Originally Posted by larryr View Post
    The wrong way to fix it but it should work!!!

    step 1 sudo vi /etc/udev/rules.d/70-persistent-net.rules and delete all but wlan0

    step 2 sudo chmod 444 /etc/udev/rules.d/70-persistent-net.rules - make it so that it cannot be changed (it should be 644)

    now it cannot be added to any more.

    to undo just sudo chmod 644 /etc/udev/rules.d/70-persistent-net.rules

    For 45 years my job was to get Unix/Linux working - sometime the fix is just plain UGLY. Then you wait for the proper fix.
    Strange....of course it is /usr/lib/udev/rules.d/75-persistent-net-generator.rules that is triggered (eg usually a new device with unique MAC) and subsequently creates the new entries. It would have been interesting to see the multiple entries, and the associated MACs.

    Example...
    Code:
    # PCI device 0x8086:0x100e (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:74:e4:b1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    
    # PCI device 0x8086:0x100e (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:8f:eb:84", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
    openSUSE Leap 15.2; KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •