# Persistent renaming mlan0 to wlan0

**URL:** <https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724>\
**Category:** Troubleshooting\
**Created:** [27 November 2025 18:15 UTC](https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724 "2025-11-27T18:15:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antriksh](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@Antriksh](https://dietpi.com/forum/u/Antriksh)\
**Post date:** [27 November 2025 18:15 UTC](https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724/1 "2025-11-27T18:15:55Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- DietPi version | 9.19
- Distro version | Native PC for UEFI (Trixie)
- Kernel version | `uname --all`
- Architecture | `x86-64`
- SBC model | `Dell Wyse 3040`
- Power supply used | 5v
- SD card used | Internal EMMC

#### Additional Information (if applicable)

#### Steps to reproduce

1. Install Wireless card drivers based upon [this](https://dietpi.com/forum/t/azurewave-aw-cm389ma-support/24511/2) post.
2. dietpi-config → Network options: Adapters → Wifi: Not Found

#### Expected behaviour

- Wifi: Available

#### Actual behaviour

- The network hardware is actually working with the driver installed. However, as explained by [this](https://dietpi.com/forum/t/azurewave-aw-cm389ma-support/24511/6) post, the hardware interface presents itself as ‘mlan0’ instead of ‘wlan0’. The solution explicated in the post above is tied to a specific mac address. I have a few 3040 devices and I would like to create a standard image that I can restore to any of these devices without worrying about the change in mac address.
- Is there a way to change the interface name from ‘mlan0’ to ‘wlan0’ independent of it’s mac address. The thought came to mind is based upon it’s network interface, however, I’m not well versed with Linux, so looking forward for help here.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [27 November 2025 18:27 UTC](https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724/2 "2025-11-27T18:27:43Z")

</div>

Your can replace the MAC address condition in the udev rule with `KERNEL=="mlan0"` to make it based on the device name instead.

Give that rule a more unique name to not override default system configs, like `99-mlan0.rules` or so.

---

<div class="post-metadata">

**Author:** ![Antriksh](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@Antriksh](https://dietpi.com/forum/u/Antriksh)\
**Post date:** [28 November 2025 07:40 UTC](https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724/3 "2025-11-28T07:40:18Z")

</div>

Thanks a lot! This worked perfectly! Used the following commands to rename mlan0 to wlan0 persistently:

```auto
echo 'SUBSYSTEM=="net", ACTION=="add", KERNEL=="mlan0", NAME="wlan0"' | sudo tee /etc/udev/rules.d/70-persistent-net.rules
sudo udevadm control --reload
sudo udevadm trigger

```

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [26 February 2026 07:40 UTC](https://dietpi.com/forum/t/persistent-renaming-mlan0-to-wlan0/24724/4 "2026-02-26T07:40:52Z")

</div>

Closed on 26 February 2026 07:40 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
