You are not logged in.

#1 2024-09-14 15:17:19

Sheryu
Member
Registered: 2024-09-14
Posts: 2

[SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Hello,

I have 2 wifi devices on my computer, and I wan't to disable the wifi from the motherboard.

The command `ip link set wlan0 down` is working, but after a few minutes the device is UP again.

I have only the NetworkManager.service being enabled.

Anyone have an idea about this issue ?

Thanks in advance.

Last edited by Sheryu (2024-09-14 16:40:14)

Offline

#2 2024-09-14 15:46:55

Julia
Member
From: Belgium
Registered: 2024-09-14
Posts: 13

Re: [SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Good day,

You could try putting this in your NetworkManager.conf

[main]
plugins=keyfile

[keyfile]
unmanaged-devices=interface-name:wlan0

Intel Pentium 4 Northwood C 3.4 GHz | NVIDIA GeForce2 MX | ASRock P4i65GV | 1.5 GB DDR333 | 80 GB WD HDD + 150 GB Maxtor HDD

Offline

#3 2024-09-14 16:38:34

Sheryu
Member
Registered: 2024-09-14
Posts: 2

Re: [SOLVED] Wifi device don't stay down after `ip link set wlan0 down`

Thank you Julia, It's working.

After changing the file '/etc/NetworkManager/NetworkManager.conf' like you said, then a `systemctl restart NetworkManager` and `ip link set wlan0 down`.
The interface wlan0 stay down.

Offline

Board footer

Powered by FluxBB