Score:0

I want to disable wifi USB on boot and enable it at any time

br flag

I have configured this into /etc/network/interfaces.d/wlx2887ba49932c to disable the interface on boot:

auto wlx2887ba49932c
iface wlx2887ba49932c inet manual
    pre-up ifconfig $IFACE down
    pre-down ifconfig $IFACE down
    down ifconfig $IFACE down

because I saw it in another post.

However when I run sudo ifup wlx2887ba49932c because I want to enable the interface after boot, it says ifup: interface wlx2887ba49932c already configured and doesn't get up and get neither ip address. I want to get interface configuration via DHCP.

How can configure the /etc/network/interfaces.d/wlx2887ba49932c file to be able to enable the interface at any required time?

David avatar
cn flag
Is this a built in device or a dongle?
Cristian Yebra avatar
br flag
A dongle I guess. It is a wifi USB adapter.
David avatar
cn flag
Then way not just remove it and plug it in when you want it?
Cristian Yebra avatar
br flag
It is used in my laptop as a backup wifi interface. The laptop is a MSI laptop and its built-in wifi interface is not totally compatible with Ubuntu 22.04 because with some kernel versions and when connecting to some wifi network it fails. So I want to have this backup interface always available when needed. The wifi USB adapter is very small and it is easy to get lost, for this reason I want to have it always pluged in my laptop and only enable its interface when needed.
Cristian Yebra avatar
br flag
If I configure this line like this `iface wlx2887ba49932c inet dhcp` Ubuntu gets stuck in the boot.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.