BackToStack
Доброго времени суток! Кто в курсе, как iperf пустить через определенный интерфейс ?
Там мутно всё. Вот цитата из мана:
The -B option affects the bind() system call. This is typically used to bind to a particular IP address. Only packets destined to that IP address will be re‐
ceived while any transmitted packets will carry that IP address as their source. The bind() does not control anything about the routing of transmitted pack‐
ets. So, for example, if the IP address of eth0 is used for -B and the routing table for the destination IP address (per -c) resolves the output interface to
be eth1, then the host will send the packet out device eth1 with the source IP address of eth0. To affect the physical output interface (e.g. dual homed sys‐
tems) the host's routing table(s) need to be configured, e.g. configure policy routing per each -B source address.
Но кажется проще метриками прибить.