General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Kenneth Porter <shiva@sewingwitch.com>
To: bloat@lists.bufferbloat.net
Subject: Re: [Bloat] speedtest-cli on multihomed gateway
Date: Fri, 3 Feb 2023 15:20:13 -0800	[thread overview]
Message-ID: <9c72e26c-4791-fc87-de07-d422852aee39@sewingwitch.com> (raw)
In-Reply-To: <2027204.1675428884@dyas>

On 2/3/2023 4:54 AM, Michael Richardson via Bloat wrote:
> 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.

That's exactly what turned out to be the issue. I'd already planned to 
implement it to make some clients use the alternate ISP, but didn't 
realize it applies to packets with source address set to that interface. 
I'd read through a few tutorials and tested that and it worked!

> 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.

That turned out to be harder to figure out. RHEL 8 is a transition from 
traditional network scripts in /etc/sysconfig/network-scripts to 
NetworkManager connections. So the RH NM has to be able to understand 
the old files. I'm used to editing files with a text editor to make 
changes, but the RHEL docs don't expose the NM files and require one to 
use a manager program (nmcli) to make changes. I have no idea where my 
rules went when I changed them with nmcli. I do see the new 
per-interface route tables in the old scripts location. RHEL 9 moves 
over completely to NM, so I'll need to figure out how to migrate the 
config when I upgrade.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-policy-based-routing-to-define-alternative-routes_configuring-and-managing-networking

BTW, I noticed that the numeric routing table IDs are 32-bit, but the 
reserved IDs are from 0-255. Some online tutorials specify that custom 
tables need to be in the 8-bit range. I suspect that the earliest 
implementation used a single byte for the table ID and it widened in 
later kernels. The example number used in the above documentation is 
5000. So I'm using 2000 and 4000 for eno2 and eno4. (eno3 is the default 
link and eno1 is the LAN with an explicit global rule.)




      reply	other threads:[~2023-02-03 23:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-01 20:20 Kenneth Porter
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 [this message]

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=9c72e26c-4791-fc87-de07-d422852aee39@sewingwitch.com \
    --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