Change default zebra routing table

Tito Sacchi tito+mailinglists at tilde.team
Fri Aug 19 06:25:49 UTC 2022


Hi everyone,

Quagga has a command called ’table’  that can be used to specify which table Zebra should install dynamic routes in.
Is there anything similar in FRR?
By default, routes are installed in table 254 (‘main’). But I have a complex PBR setup and Zebra fails to install some routes
because they are covered by a default route already present in table 254. But because of PBR, packets do not follow that default route and the subnet that comes
from OSPF and that I expect Zebra to install is not reachable:

    K>* 0.0.0.0/0 [0/1024] via 10.8.10.1, eth0, src 10.8.10.135, 06:50:14
    [...]
    O   192.168.65.0/24 [110/110] via 10.8.10.1, eth0 inactive, weight 1, 06:50:09

I think the last route is not installed (kept ‘inactive’) because it is covered by the default route at the top.

How can I tell zebra to consider another routing table? I would like to avoid enslaving all my interfaces to a VRF device.
If it cannot be done with a simple ’table’ command, should I use route maps? They support the `set table` action but according to the manual it has to do with BGP and it does not do what I want.

Thanks,
Tito

— — —
https://tilde.team/~tito/

PGP key: 0x6BED3002CF25C4D2 (4096R)
(https://keys.openpgp.org/search?q=0x6BED3002CF25C4D2)

Keybase: @tauroh
(https://keybase.io/tauroh)




More information about the frog mailing list