Skip to content

FRRouting ignores noprefixroute flag and uses the prefix as the connected route #14952

@DaniilHarun

Description

@DaniilHarun

Describe the bug
FRRouting ignore flag noprefixroute on the interface and use prefix as connected route. But there is no route in the kernel. This behavior causes routing loops when using dynamic routing.

  • Did you check if this is a duplicate issue?
  • Did you test it on the latest FRRouting/frr master branch?

To Reproduce

  1. Add an address in the interface:
    ip add add 192.168.0.1/24 dev eth1 noprefixroute
  2. Check the route in the kernel:
    ip ro list match 192.168.0.0 table all
    The command output is empty
  3. Check the route in FRRouting:
>vtysh
host# show ip route 192.168.0.0
Routing entry for 192.168.0.0/24
  Known via "connected", distance 0, metric 0, best
  Last update 00:03:32 ago
  * directly connected, eth1

Expected behavior

Zebra should not add connected routes if noprefixroute flag is set

Versions

  • OS Version:
    Debian 12
  • Kernel:
    6.1.0
  • FRR Version:
    9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions