locked
Selecting the interface from which to ping RRS feed

  • Question

  • Is there a option to select the interface from which to ping other computers?
    or how can it be done with out disabling the other interfaces on the pc from where im pinging.ž

    thanks!!! 
    Friday, July 3, 2009 11:14 AM

Answers

  •   Are you talking about Windows 7/Windows Server 2008 R2?

      To force IPv4 or IPv6, use -4 or -6  . To specify the source interface to use, use the -s option. (You use the interface number, not the IP address). 

      To ping 192.168.0.1 using ipv4 from interface 1, use the command  "ping  -4 192.168.0.1 -s 1"

    Bill
    • Marked as answer by ZarkoC Tuesday, January 12, 2010 1:15 PM
    Tuesday, January 12, 2010 10:27 AM

All replies

  •    Yes, you can put the source address in the ping command using the -S option.  You can also specify ip4 or ip6. Ping /? will list all the options.

    Bill
    • Marked as answer by Miles Zhang Wednesday, July 8, 2009 2:54 AM
    • Unmarked as answer by ZarkoC Tuesday, January 12, 2010 8:24 AM
    Saturday, July 4, 2009 3:07 AM
  • Im not sure if this is correct. Can you give me an example?

    Tnx
    Tuesday, January 12, 2010 8:26 AM
  •   Are you talking about Windows 7/Windows Server 2008 R2?

      To force IPv4 or IPv6, use -4 or -6  . To specify the source interface to use, use the -s option. (You use the interface number, not the IP address). 

      To ping 192.168.0.1 using ipv4 from interface 1, use the command  "ping  -4 192.168.0.1 -s 1"

    Bill
    • Marked as answer by ZarkoC Tuesday, January 12, 2010 1:15 PM
    Tuesday, January 12, 2010 10:27 AM
  • tnx!
    Tuesday, January 12, 2010 1:15 PM