
ubuntu更改网络优先级

Windows automatically connects you to wireless networks you’ve connected to in the past. If you’re near multiple networks you’ve previously connected to, Windows uses a priority system to choose a Wi-Fi network.
Windows会自动将您连接到过去连接的无线网络。 如果您之前连接过多个网络,则Windows将使用优先级系统来选择Wi-Fi网络。
Windows 7 included a graphical tool to manage your wireless network priority. On Windows 8 and 10, though, you can only manage this from the Command Prompt.
Windows 7包含一个图形工具来管理您的无线网络优先级。 但是,在Windows 8和10上,您只能从命令提示符处进行管理。
如何查看您的无线网络的优先级 (How to See the Priority of Your Wireless Networks)
Windows 10 shows the priority of your wireless networks in the Settings window. To view the list, head to Settings > Network & Internet > Wi-Fi > Manage Known Networks.
Windows 10在“设置”窗口中显示无线网络的优先级。 要查看列表,请转到设置>网络和Internet> Wi-Fi>管理已知网络。
This list shows you your saved wireless networks in the order they’re prioritized. Windows will connect to the wireless network at the top first, if available, and then go down the list. If you could drag and drop wireless networks here, you’d be able to re-order the list. But Windows doesn’t let you.
此列表按优先顺序显示已保存的无线网络。 Windows将首先连接到顶部的无线网络(如果有),然后在列表中向下移动。 如果您可以在此处拖放无线网络,则可以重新排序列表。 但是Windows不允许您这样做。

If you don’t want Windows to connect you to a wireless network in the future, you can click it here and select “Forget”. Windows won’t automatically connect you to that network unless you choose to connect to it.
如果您不希望Windows将来将您连接到无线网络,则可以在此处单击它并选择“忘记”。 Windows不会自动将您连接到该网络,除非您选择连接到该网络。

如何更改无线网络的优先级 (How to Change the Priority of Your Wireless Networks)
To change the priority manually, you’ll need to use an Administrator Command Prompt. To open one, right-click the Start button and select “Command Prompt (Admin)”.
要手动更改优先级,您需要使用管理员命令提示符。 要打开一个,右键单击“开始”按钮,然后选择“命令提示符(管理员)”。

Run the following command to see a list of your saved Wi-Fi networks in the order of their priority. This will show you the same list you can see in the Settings screen:
运行以下命令以按优先级顺序查看已保存的Wi-Fi网络的列表。 这将显示与在“设置”屏幕中可以看到的相同列表:
netsh wlan show profiles
You’ll need to note two things here: The name of the interface and the name of the wireless network you want to prioritize.
您需要在此处注意两件事:接口名称和您要确定优先级的无线网络的名称。
For example, the interface name here is “Wi-Fi” and the network we’ve chosen to prioritize is “Remora”.
例如,这里的接口名称是“ Wi-Fi”,而我们选择优先的网络是“ Remora”。

To prioritize a wireless network, run the following command, replacing “wifi-name” with the name of the Wi-Fi network, “interface-name” with the name of the Wi-Fi interface, and “#” with the priority number you want to place the Wi-Fi network at.
要确定无线网络的优先级,请运行以下命令,将“ wifi-name”替换为Wi-Fi网络的名称,将“ interface-name”替换为Wi-Fi接口的名称,并将“#”替换为优先级数字您要在其中放置Wi-Fi网络。
netsh wlan set profileorder name="wifi-name" interface="interface-name" priority=#
For example, to take the network Remora on interface Wi-Fi and make it priority number one in the list, we’d run the following command:
例如,要在接口Wi-Fi上使用网络Remora并将其设置为列表中的第一优先级,我们可以运行以下命令:
netsh wlan set profileorder name="Remora" interface="Wi-Fi" priority=1

You can run the netsh wlan show profiles
command again and you’ll see the network you’ve chosen to prioritize appears first in the list. The order in the Settings app will also change.
您可以再次运行netsh wlan show profiles
命令,您将看到选择优先级的网络出现在列表的第一位。 “设置”应用中的顺序也会更改。

翻译自: https://www.howtogeek.com/131640/how-to-change-the-priority-of-wireless-networks-in-windows-8/
ubuntu更改网络优先级