Scenario: When a PC is connected to a dual NIC, how does the PC choose to route?
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/CD/wKioL1bYEpKx83FWAADiIAD_5lo438.png "title=" 1.png " alt= "Wkiol1byepkx83fwaadiiad_5lo438.png"/>
You can first enter cmd and input route print to view routing information.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7C/CE/wKiom1bYEivR5vl-AACa4RfIHd4192.png "title=" 2.png " alt= "Wkiom1byeivr5vl-aaca4rfihd4192.png"/>
Here we can see that the default route has two, one is 172.17.4.1 (Metric 25) and one is 192.168.30.254 (Metric 276).
Then let's track down the route and see.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s1.51cto.com/wyfs02/m00/7c/cd/wkiol1byerbj_chhaaairjijphs591.png "title=" 3.png "alt=" wKioL1bYErbj_ Chhaaairjijphs591.png "/>
As you can see, the PC chooses the route for 172.17.4.1, because the number of hops for that route (a route is a hop, the smaller the higher the priority. ) is relatively small, similar to a measure.
So what if you need to use 192.168.30.254 's routing link?
A: You can modify the 192.168.30.254 metric.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m01/7c/cd/wkiol1byexci_5afaadfzveoibq779.png "title=" 4.png "alt=" WKioL1bYExCi_ 5afaadfzveoibq779.png "/>
Then look at the routing information.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m00/7c/cd/wkiol1byex6tjhifaacud-n1xfm491.png "title=" 5.png "alt=" Wkiol1byex6tjhifaacud-n1xfm491.png "/>
The metric is displayed as 20.
Track down the route again and see
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m00/7c/cd/wkiol1byeyvhi3djaacabl6p2oy397.png "title=" 6.png "alt=" Wkiol1byeyvhi3djaacabl6p2oy397.png "/>
The default route has become 192.168.30.254.
It should be explained that we can still communicate with other hosts of 172.17.4.0/24, because the IP of 172.17.4.0/24 and Nic belong to the same broadcast domain, can communicate directly, do not need routing.
If there is not correct, you are welcome to point out together.!!
This article is from the "Kimcheung" blog, make sure to keep this source http://kimcheung.blog.51cto.com/10880443/1747299
about Windows dual NIC and metric research