-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP rule not installed for PBR that only match a mark tag #17548
Comments
Hmm, I just retry this from a fresh install from DEB pkg (version frr 8.5.6) onto a new machine and it works fine. I then retry from a fresh install from deb.frrouting.org/frr pkg with version 10.1.1 on a new machine and it failed to create the rule, as observed previously Here is the
And the pbr map dump:
And the ip rule dump:
The same setup on frr v8 leads to
I'm also seeing (for frr v10.1.1) ip rule leftover not removed from previous configurations, sometimes, that's weird. |
Do you try to set Like: !
pbr-map MY_PBR seq 5
match mark 129175
set nexthop-group MY_PBR
exit
!
int eth0
pbr-policy MY_PBR
exit
!
nexthop-group MY_PBR
nexthop 10.1.0.254 weight 50
exit
! This works for us: example.com# sh pbr map
pbr-map alertmanager valid: yes
Seq: 5 rule: 304
Installed: yes Reason: Valid
MARK Match: 211
Nexthop-Group: alertmanager
Installed: yes Tableid: 10000 |
Hi All, I can also confirm wierd goings on with PBR in latest 10.x FRR. Im tagging with a fwmark and the pbr route shows not installed with 10.x but 8.5.6 works fine.
And yes Im using NH groups. Cheers! Jon |
Scratch that! I wasn't using nexthop groups, and it seems next hop groups do work on 10.x 👍🏻 |
Yes, using nhg instead of nh works fine, but shouldn't I be able to directly use nh ? Is that a bad practice doing so ? |
Description
When declaring
pbr-map
with a single mark as a match, let's say:A new routing table is correctly installed into the kernel consisting of a single
default via 1.2.3.4 dev enp5s0f0
However no ip rule are installed, making the PBR useless.
On the contrary, adding a
src-ip
as a supplementary match works as expected:Result in a correct rule:
prio XXX from 1.2.3.4/5 fwmark 0xc8 iif enp5s0f0 lookup YYYYY
being createdVersion
How to reproduce
Simply write a pbr-map using a single match based on mark.
Expected behavior
Would expect the rule:
prio XXX from all fwmark 0xc8 iif enp5s0f0 lookup YYYYY
being createdActual behavior
No rule are created
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: