Skip to content

How to switch network device

Hey there!

I have a pci wifi card which for some reason gives me crap speeds (< 1mb).

My first instinct was to try out a USB antenna to see if the signal improves. After connecting it, I can see it listed in NetworkManager devices but I don't know how to give it preference over my pci card. Any clue on how to do this?

Anyway, sorry if my question is dumb, but I couldn't find anything in the wiki or the manual regarding connecting with different devices

3 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
pc4fl8

Author

2
posts
9
comments
0
media
View profile

10 comments

so you have 2 wifi interfaces now? just configure the "good" usb one and leave the other one unconfigured?

1 points

Yep. So I'm using nm-applet and couldn't see that option anywhere, took a look into nmcli's manual and couldn't find it either, any clues?

1 points

nmcli has the ifname argument on setting the connection up

up [id | uuid | path] ID... [ifname ifname] [ap BSSID] [passwd-file file]

Activate a connection. The connection is identified by its name, UUID or D-Bus path. If ID is ambiguous, a keyword id, uuid or path can be used. When requiring a particular device to activate the connection on, the ifname option with interface name should be given. If the ID is not given an ifname is required, and NetworkManager will activate the best available connection for the given ifname. In case of a VPN connection, the ifname option specifies the device of the base connection. The ap option specify what particular AP should be used in case of a Wi-Fi connection.

If --wait option is not specified, the default timeout will be 90 seconds.

See connection show above for the description of the ID-specifying keywords.

Available options are:

ifname

    interface that will be used for activation.

Edit: Fuck reddit code formatting: https://man.archlinux.org/man/nmcli.1

2 points

Maybe just deactivate the interface with ip link set down? If you do not use the Wifi card at all then you could write a udev rule to unload its driver.

I switched to systemd-networkd+iwd instead of NetworkManager, never looked back.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.