Results 1 to 4 of 4

Thread: How to change name of Wlan interface?

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Location
    Ripon, CA USA
    Beans
    90
    Distro
    Ubuntu 14.10 Utopic Unicorn

    How to change name of Wlan interface?

    Hello,

    Probably an easy fix but I haven't been able to find it. All my systems call their wireless interface wlan0 EXCEPT for one which calls it wlan2. Where is that interface name defined? It messes with my CDO to have one system different from the others for no particular reason.

    Thanks, Jon

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    23,606
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: How to change name of Wlan interface?

    which calls it wlan2

    ....

    for no particular reason.
    There is probably a reason. You either have, or have had previously, another wireless device installed. udev assigns wlanX as needed and isn't usually purged because it isn't aware that the old card is now at the landfill.

    If you have another card in the machine, I'd suggest blacklisting its driver so that wlan0 or wlan1 never gets assigned again. Then amend /etc/udev/rules.d/70-persistent-net.rules to remove unneeded listings and change the relevant listing to wlan0. If you need specific guidance, post back and we'll help.

    After amending rules, immediately reboot.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Sep 2012
    Location
    Ripon, CA USA
    Beans
    90
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: How to change name of Wlan interface?

    Bingo! That was the config file. For some reason, known only to the OS, the same interface with the same MAC address was listed 3 times, wlan0, wlan1, and wlan2. FYI, the last entry in the file is the one that is used.

    Thank you very much, saved a lot of documentation diving.

    Jon.

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    23,606
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: How to change name of Wlan interface?

    Awesome! Please use thread tools at the top to mark Solved. The searchers will appreciate it.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

Bookmarks

Posting Permissions

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