[Bloat] speedtest-cli on multihomed gateway

Michael Richardson mcr at sandelman.ca
Fri Feb 3 07:54:44 EST 2023


Kenneth Porter via Bloat <bloat at lists.bufferbloat.net> wrote:
    > script in /etc/cron.hourly or a systemd timer unit).  speedtest-cli
    > accepts a --source option but it wants to always route through the WAN
    > link set to the default route when I specify the addresses of the other
    > two. From googling around it looks like I want to run it in a "network
    > namespace" but I haven't figured out how to make that work.

A new network namespace would certainly work, but it may be unmanageable
overkill.

What you probably need are policy-based routes, which you can establish
statically and then --source ought to work.

ip route now has a "from" option, but it doesn't always work in my
experience.  The old way is to do:

  ip rule add from A.B.C.D/32    table 123
  ip route add default via 192.0.1.2 table 123

I put these into "up" statements into my /etc/network/interfaes, but you say
you are running RHEL... I'm sure that there is a netplan way.
This also means that if you have a monitoring system elsewhere (smokeping or
something), and you ping each interface, then it will reply on that
interface.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <https://lists.bufferbloat.net/pipermail/bloat/attachments/20230203/085fae37/attachment.sig>


More information about the Bloat mailing list