Друзья, в тёплой, мягкой FreeBSD было такое:
man ping
-S src_addr
Use the following IP address as the source address in outgoing
packets. On hosts with more than one IP address, this option can
be used to force the source address to be something other than
the IP address of the interface the probe packet is sent on. If
the IP address is not one of this machine's interface addresses,
an error is returned and nothing is sent.
Как бы мне такое провернуть с linux?
В linux такое:
man ping
-I interface
interface is either an address, or an interface name. If interface is an address, it sets source address to specified
interface address. If interface in an interface name, it sets source interface to specified interface. For ping6, when
doing ping to a link-local scope address, link specification (by the '%'-notation in destination, or by this option) is
required.
В linux у меня из-за этого пакетики вылетают через не правильный интерфейс... Мне бы только src ip установить.
Как бы побороть сабж? Может есть аналогичные утилиты?