Can I try to ping a website through a specific adapter?
问题 I hope this isn't too basic a question. The title kind of asks it all. :-) 回答1: The ping command will allow strict source routing so you can specify the default gateway to use on the way out. (This assumes your interfaces have distinct gateways i.e. are on different networks) ping -k 192.169.1.1 microsoft.com ^ default gateway for desired interface Using WMI Win32_PingStatus you can do the same thing where you specify SourceRoute and SourceRouteType (This is essentially the same as using ping