You are not logged in.

#1 2023-03-01 16:19:57

nandi
Member
Registered: 2021-07-16
Posts: 60

Enable wlan0 interface

I managed to disable my wlan0 interface in the past with ifdown command i did not know that command got replaced with ip command. To my understanding the ifstate got changed by using the ifdown wlan0 which got disabled no matter the ifdown command failed.
What is the proper way to enable/disable wlan0 interface in command line?

Offline

#2 2023-03-02 01:25:40

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,660

Re: Enable wlan0 interface

From the ip man page:

       ip link set x up
           Bring up interface x.

       ip link set x down
           Bring down interface x.

Last edited by PackRat (2023-03-02 01:26:08)


You must unlearn what you have learned.
    -- yoda

Offline

#3 2023-03-02 09:51:14

nandi
Member
Registered: 2021-07-16
Posts: 60

Re: Enable wlan0 interface

Thank you yes that works if i login as root, but if i put a command in autostart at openbox the network interface remain still enabled. The problem is what i got have 2 wifi because windows only works with wlan0 but linux loose connection with wlan0 i want to use wlan1 with linux. At the moment both interface is connected to the same wifi which is a problem because of wlan0. It would also solve the problem to remove the password from wlan0 have no idea how to do it.

Offline

#4 2023-03-02 17:41:04

JCN-9000
Member
From: Turin, Italy
Registered: 2016-04-22
Posts: 22

Re: Enable wlan0 interface

If using NetworkManager then
you can try adjusting settings like the Device to be used for the connection or the priority of the connection that uses wlan1.
else
sudo is your friend wink
fi

NM WiFI passwords should be in the *.nmconnection files: /etc/NetworkManager/system-connections/

Offline

#5 2023-03-03 00:20:00

nandi
Member
Registered: 2021-07-16
Posts: 60

Re: Enable wlan0 interface

Thank you very much this is the information i was looking for just removed the nmconnection file and its solved brilliant.

Offline

Board footer

Powered by FluxBB