2

I have a server with dual NICs, both of which have IP addresses in the same subnet. How would I send a ping out over a particular (chosen) NIC ?

Thanks .. KJ

KennetRunner
  • 333
  • 1
  • 3
  • 9

2 Answers2

6

If you're using Windows, the closest equivalent is "ping -S [source address]".

RainyRat
  • 3,730
  • 1
  • 24
  • 29
5

You should have specified which operating system you are using.

Under Linux, you just use ping -I $interface, as the manpage can easily tell you.

towo
  • 1,887
  • 14
  • 12