Yesterday I got a new wifi usb adapter and I would like to use it as main wireless device. However, I have no idea about how to switch between wireless cards.
So, first of all, how can I shut an interface to switch to another one? Is it correct to just use the code below?
Code: Select all
$ ip link set dev [interface1] down
$ ip link set dev [interface2] up
And last question, is there a way to set a priority between network interfaces? For example when I plug an ethernet cable, the eth interface has higher priority compared to built-in wireless card interface.
I would like to replicate the same thing with usb wifi adaptor, is there a common way to do this without too many messy scripts?
EDIT: I'm using NetworkManager to manage interfaces.
Thank you in advance,
Seigma