I used NetRouteView to change the route and badaboom! It worked on the first try! Thanks a lot, Raymond! You put all the information I was looking for I either found partial in pieces or did not find at all. Actually, there are two metrics: adapter metric and interface metric.
The adapter metric is changed by route command as described in method 2, and interface metric is changed as described in metric 3. The metric shown by route print command is the sum of these two.
Thanks a lot. Especially for marking that changing metric does not replace the value but adds it to current. I will not use both. Thanks fir the tip :. Wah…very nice…no need to use route anymore…too cumbersome to write and check for missing params..
Zenong 1 year ago. ELM 1 year ago. Pavel Zvezdin 2 years ago. Hany 3 years ago. Subhani 3 years ago. Alexandr Zarubkin 5 years ago. Grr 12 years ago. Rohit 12 years ago. Dharmender Singh 12 years ago. Marshall 12 years ago. When used with the print command, the list of persistent routes is displayed.
This parameter is ignored for all other commands. Specifies the command you want to run. The valid commands include: add - Adds a route. Specifies the network destination of the route. The destination can be an IP network address where the host bits of the network address are set to 0 , an IP address for a host route, or 0.
Specifies the forwarding or next hop IP address over which the set of addresses defined by the network destination and subnet mask are reachable. For locally attached subnet routes, the gateway address is the IP address assigned to the interface that is attached to the subnet. For remote routes, available across one or more routers, the gateway address is a directly reachable IP address that is assigned to a neighboring router. Specifies an integer cost metric ranging from 1 to for the route, which is used when choosing among multiple routes in the routing table that most closely match the destination address of a packet being forwarded.
The route with the lowest metric is chosen. The metric can reflect the number of hops, the speed of the path, path reliability, path throughput, or administrative properties. Specifies the interface index for the interface over which the destination is reachable.
For a list of interfaces and their corresponding interface indexes, use the display of the route print command. You can use either decimal or hexadecimal values for the interface index. What I want is for all internet traffic to go through nic 2 None of this seems to work.
It always routes my local traffic to the second NIC Your configuration won't work since route table is dynamic which is on the basic of the router. If you want to use two adapters on the same network, please refer to:. Or use two adapters on the different networks. Niki Han. TechNet Community Support. Just an update, I still need to know the answer to this but I at least found a temporary solution.
I threw more hardware at it lol.. Set up a second router running on the 2nd nic on my main computer and on the 2nd nic on my nas with a different subnet. So if I map to my nas through that subnet it forces it to go through the nic that I want it to. Set my primary nic with a metric of 2, and the 2nd nic with a metric of 50 to make sure my internet doesn't try to go through the second router I connected it to the net as well just for redundancy and in case I decide to connect any other machines to that router.
0コメント