General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Kenneth Porter <shiva@sewingwitch.com>
To: Bufferbloat Mailing List <bloat@lists.bufferbloat.net>
Subject: [Bloat] speedtest-cli on multihomed gateway
Date: Wed, 01 Feb 2023 12:20:56 -0800	[thread overview]
Message-ID: <2DD7056F81C7C7313FBA93EA@[10.96.7.39]> (raw)

I'm trying to get my head around how to run speedtest-cli on a Rocky 8
box (RHEL8 respin) with LAN and three WAN connections. I want to run
speedtest-cli on all the WAN links to test each, and run the tests
from a timer to watch the speeds throughout the day (eg. a symlink to
a test 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.

I found this stackexchange answer on the namespace basics but I think
I need a few more commands to actually make an app usable in the
namespace by ifup'ing the interface, routing, and DNS.

https://unix.stackexchange.com/questions/234583/routing-on-per-application-basis

Hardware setup:

eno1: LAN, 10.96.0.64, default route for LAN
eno2: WAN1, 172.24.96.xxx, to ATT fiber gateway at 172.24.96.1
eno3: WAN2, 172.24.69.xxx, to Xfinity gateway at 172.24.69.1
eno4: WAN3, 172.24.0.xxx, to Xfinity gateway at 172.24.0.1

What I'm trying:

# ip netns add comcast-1
# ip link set eno4 netns comcast-1
# ip netns exec comcast-1 speedtest-cli
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error [Errno -2] Name or service not known>

At this point I'm not sure what I need to do to make the network
namespace usable.


             reply	other threads:[~2023-02-01 20:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-01 20:20 Kenneth Porter [this message]
2023-02-02 15:15 ` Paul Tagliamonte
2023-02-02 15:36   ` Paul Tagliamonte
2023-02-03 12:54 ` Michael Richardson
2023-02-03 23:20   ` Kenneth Porter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/bloat.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='2DD7056F81C7C7313FBA93EA@[10.96.7.39]' \
    --to=shiva@sewingwitch.com \
    --cc=bloat@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox