How to change network adaptor priority

January 12, 2010 at 00:01:07
Specs: Linux i686
I have Ethernet and Wi-Fi dongle in same pc(fedora9) and both are enabled(as needed)

All internet connections always goes through Ethernet. I would like to use Wi-Fi connection rather than Ethernet. Can we change Wi-Fi priority as high. so that I can have internet with Wi-Fi connection.

Your suggestions will help me a lot.

See More: How to change network adaptor priority

January 12, 2010 at 00:44:07
You can use the command ifconfig, to set the change the value for metric.

Report •

January 12, 2010 at 22:50:58
Thanks for your response.

I have tried to change metric value using
"ifconfig <interface> metric <value>"

I got the following error message :
SIOCSIFMETRIC: Operation not supported.

then i installed and tested using ifmetric application.
It changing the metric value.
but still Ethernet has top priority.

please let me know if i am doing any thing wrong.

Report •

January 13, 2010 at 07:07:13
Have you also change the metric for your WiFi adapter ?
Let's say, metric for your ethernet adapter is set to 1 and metric for your WiFi adapter is 20.

Report •

Related Solutions

January 13, 2010 at 07:58:35
metric relates to routing. It has nothing to do with priority of an interface.

If I recall correctly the OS, when faced with multiple network interfaces, has an algorithm that tests thruput and chooses the fastest interface, which in your case will be the wired nic.

Only way I know of to do what you want is to do hardware profiles. In one profile you have the wireless enabled and the wired disabled. Just the opposite for the other profile.

Or just do what everyone does and manually disable the interface you are not going to use.

Report •

Ask Question