Can I try to ping a website through a specific adapter?

后端 未结 2 512
挽巷
挽巷 2021-02-02 09:41

I hope this isn\'t too basic a question. The title kind of asks it all. :-)

2条回答
  •  不思量自难忘°
    2021-02-02 10:10

    ping also has an option in Windows:

    -S srcaddr     Source address to use.
    

    So you can do something like

    ping 10.10.10.1 -l 0 -S 192.168.1.1
    

    where 10.10.10.1 is the destination address and 192.168.1.1 is the address of the source adapter

提交回复
热议问题