Windows එකේ Network Priority එක වෙනස් කරන්නේ කොහොමද (Ethernet + Wi-Fi)
Interface metrics සහ Wi-Fi order set කරලා Windows එක කැමති connection එක කුමක්ද කියලා control කරගමු.
Overview
Connections කිහිපයක් active වෙලා තියෙද්දී, Windows එක පාවිච්චි කරන්නේ අඩුම interface "metric" එක තියෙන එක. මේ guide එකෙන් adapters (Ethernet vs Wi-Fi) වලට network priority එක set කරන්නේ කොහොමද, සහ preferred Wi-Fi networks order කරන්නේ කොහොමද කියලා පෙන්නනවා.
Windows එකේ network adapter priority එක වෙනස් කිරීම.
Key Takeaways
- Metric එක අඩු වෙන්න වෙන්න = priority එක වැඩියි.
- Metric එක set කරන්නේ adapter එකේ IPv4 advanced settings වල හෝ PowerShell හරහා.
- Wi-Fi network order එකෙන් තමයි කුමන SSID එක මුලින්ම connect වෙනවද කියලා control වෙන්නේ.
- Ethernet එකයි Wi-Fi එකයි දෙකම connect වෙලා තියෙද්දී මේක ප්රයෝජනවත්.
Adapter Priority එක වෙනස් කිරීම (Control Panel)
1. Windows + R press කරලා, ncpa.cpl type කරලා, Enter press කරන්න.
2. Adapter එක right-click කරලා > Properties > Internet Protocol Version 4 > Properties > Advanced.
3. "Automatic metric" එක untick කරන්න.
4. Preferred adapter එකට අඩු "Interface metric" එකක් දාන්න (උදා: 10) අනිත් එකට වැඩි එකක් දාන්න (උදා: 20).
5. OK click කරන්න.
Adapter Priority එක වෙනස් කිරීම (PowerShell)
1. PowerShell එක administrator විදිහට open කරන්න.
2. Adapters/metrics list කරන්න: Get-NetIPInterface
3. Metric එකක් set කරන්න: Set-NetIPInterface -InterfaceAlias "Ethernet" -InterfaceMetric 10
4. අනිත් එක වැඩියෙන් set කරන්න: Set-NetIPInterface -InterfaceAlias "Wi-Fi" -InterfaceMetric 20
Wi-Fi Network Priority එක වෙනස් කිරීම
1. Auto-connect enable කරන්න: Settings > Network & Internet > Wi-Fi > Manage known networks > network එකක් select කරලා > "Connect automatically".
2. Command line order එක: ඒවා list කරන්න netsh wlan show profiles.
3. Prioritize කරන්න: netsh wlan set profileorder name="SSID" interface="Wi-Fi" priority=1
Troubleshooting
Problem: Windows එක තාමත් වැරදි connection එක පාවිච්චි කරනවා.
Solution: "Automatic metric" එක untick කරලා තියෙනවද, preferred adapter එකට අඩු number එක තියෙනවද කියලා confirm කරන්න.
Problem: Metric එක reset වෙනවා.
Solution: ඒක explicit විදිහට set කරන්න (GUI හෝ Set-NetIPInterface); driver reinstall එකකින් ඒක reset වෙන්න පුළුවන්.
Problem: Wi-Fi එක වැරදි network එකට connect වෙනවා.
Solution: netsh wlan set profileorder එකෙන් profiles reorder කරලා preferred SSID එකේ auto-connect enable කරන්න.
Problem: Changes වලට refresh එකක් ඕන.
Solution: අලුත් metrics effect වෙන්න adapter එක disable/enable කරන්න නැත්නම් reconnect කරන්න.
Conclusion
Windows එකේ network priority එක තීරණය වෙන්නේ interface metrics වලින් — ඔබ කැමති preferred connection එකට අඩු metric එකක් set කරන්න, adapter එකේ advanced IPv4 settings හෝ Set-NetIPInterface හරහා. Wi-Fi වලට නම්, netsh එකෙන් profiles order කරලා ඔබට මුලින්ම ඕන network එකේ auto-connect enable කරන්න.















