In Windows (say Windows 10), I'd like to put in an address, and then the relevant line from the routing table is shown (if any). So, pretend you are pinging an address and the computer processes the routing table and figures out which route to use. It would also be nice for the program to show which of the various network adapters/interfaces it would use. That way, if I suspect there is a routing issue, I can quickly figure out if there is a route and if so, is that the route I would expect. With modern configurations having like 80 lines in the routing table and multiple physical adapters as well as VPN adapters and such, there can be a lot to look through to figure out what's happening.
-
2You don't like tracert? ss64.com/nt/tracert.html– symcbeanCommented Jul 10, 2023 at 17:09
-
I don't understand. Tracert shows responses from endpoints as a packet actually traverses a network. I'm talking about the routing table on my machine.– RomanCommented Jul 10, 2023 at 17:11
-
3...which determines the first hop shown in tracert.– symcbeanCommented Jul 10, 2023 at 17:14
Add a comment
|
1 Answer
Powershell:
Find-NetRoute -RemoteIPAddress <destination>
or somewhat similar to the route print
output:
Find-NetRoute -RemoteIPAddress <destination> | Format-Table -Property DestinationPrefix,NextHop,InterfaceAlias