Using routing-rules with dynamic ip address

Thomas Haller thaller at redhat.com
Mon Sep 23 06:32:25 UTC 2024


On Mon, 2024-09-23 at 09:01 +0300, Alexander Rumyantsev wrote:
> I'm already using that property and yes, all routes are now in
> separate route table
> But now I want to add rule to point all traffic from interface
> address to that table

I see (and misunderstood earlier). No, not possible.

A dispatcher script might work well enough.

Usually, even with DHCP you will have a rough idea which subnet you
will get. Maybe add `from subnet lookup table` to cover them all. Or
use "iif eth0".


Thomas


> 
> 
> пн, 23 сент. 2024 г. в 08:34, Thomas Haller <thaller at redhat.com>:
> > On Fri, 2024-09-20 at 16:06 +0300, Alexander Rumyantsev wrote:
> > > Hello!
> > > 
> > > I want to append rule "from <address of interface> lookup
> > > <table>"
> > > with dynamic ip address.
> > > Is that possible with routing-rules property or I should use
> > > dispatcher script?
> > 
> > Hi,
> > 
> > you can set `ipv4.route-table` so that routes from DHCP are put in
> > another table.
> > 
> > Thomas
> > 



More information about the Networkmanager mailing list