{"id":577,"date":"2018-06-02T00:25:06","date_gmt":"2018-06-01T22:25:06","guid":{"rendered":"http:\/\/itso.dk\/?p=577"},"modified":"2018-06-02T01:14:51","modified_gmt":"2018-06-01T23:14:51","slug":"windows-10-select-primary-network-interface","status":"publish","type":"post","link":"https:\/\/blog.itso.dk\/?p=577","title":{"rendered":"Windows 10 &#8211; Select Primary network interface"},"content":{"rendered":"<p>When running Windows 10, sometimes you have more than one network connection, and you want to select which NIC is the primary.<\/p>\n<p>In my case, I wanted to segment my network away from the network in house. I am connected wireless to house router, including my own router, which is performing as with multiple services like firewall, pxe\/tftpboot server, dns and timeserver. The home router only has 54G wireless connection, and have a downlink speed to house router at around 30MBit, I prefer to set my desktop and desktop to connect directly to house router(AC standard)\u00a0 for internet, and use local ressources from own router.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-597\" src=\"http:\/\/itso.dk\/wp-content\/uploads\/Networksga2.gif\" alt=\"\" width=\"459\" height=\"407\" \/><\/p>\n<p>To list my NICs start a powershell and enter:<\/p>\n<pre>Get-NetIPInterface<\/pre>\n<p>my output is:<\/p>\n<pre>PS C:\\Windows\\system32&gt; Get-NetIPInterface\r\n\r\nifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore\r\n------- -------------- ------------- ------------ --------------- ---- --------------- -----------\r\n11 Bluetooth Network Connection IPv6 1500 65 Disabled Disconnected ActiveStore\r\n9 Local Area Connection* 11 IPv6 1500 25 Disabled Disconnected ActiveStore\r\n20 Local Area Connection* 10 IPv6 1500 25 Disabled Disconnected ActiveStore\r\n18 Wi-Fi 2 IPv6 1500 45 Enabled Connected ActiveStore\r\n21 Ethernet IPv6 1500 25 Enabled Connected ActiveStore\r\n1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore\r\n11 Bluetooth Network Connection IPv4 1500 65 Enabled Disconnected ActiveStore\r\n9 Local Area Connection* 11 IPv4 1500 25 Enabled Disconnected ActiveStore\r\n20 Local Area Connection* 10 IPv4 1500 25 Enabled Disconnected ActiveStore\r\n18 Wi-Fi 2 IPv4 1500 45 Enabled Connected ActiveStore\r\n21 Ethernet IPv4 1500 25 Enabled Connected ActiveStore\r\n1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore<\/pre>\n<p>My networks of interest are:<\/p>\n<p>18 Wi-Fi 2 with priority of 45<br \/>\n21 Ethernet with priority of 25<br \/>\n11 Bluetooth with priority of 65<\/p>\n<p>To set priority to Wifi, I need to set priority if Wifi to be a lower number than my ethernet. I do this by entering the following command:<\/p>\n<pre>Set-NetIPInterface -InterfaceIndex 18 -InterfaceMetric 5\r\nSet-NetIPInterface -InterfaceIndex 21 -InterfaceMetric 60\r\nSet-NetIPInterface -InterfaceIndex 11 -InterfaceMetric 70\r\n\r\n<\/pre>\n<p>After entering the new metrics, take a restart and enjoy.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When running Windows 10, sometimes you have more than one network connection, and you want to select which NIC is the primary. In my case, I wanted to segment my network away from the network in house. I am connected wireless to house router, including my own router, which is performing as with multiple services &#8230;<\/p>\n<p><a href=\"https:\/\/blog.itso.dk\/?p=577\" class=\"more-link\">Continue reading &lsquo;Windows 10 &#8211; Select Primary network interface&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":593,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-577","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-tip"],"_links":{"self":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=577"}],"version-history":[{"count":13,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":598,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/577\/revisions\/598"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/media\/593"}],"wp:attachment":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}