[Bug 263202] "route already in table" - even though it's not, and can't be deleted

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Apr 2022 17:55:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263202

            Bug ID: 263202
           Summary: "route already in table" - even though it's not, and
                    can't be deleted
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pat@patmaddox.com

FreeBSD 13 claims to not be able to add a route because it's already in the
table. It doesn't appear to be, and attempting to delete it claims that it's
not:

    # route add 100.120.128.187 -interface lo0
    add host 100.120.128.187: gateway lo0 fib 0: route already in table

    # route delete 100.120.128.187 -interface lo0
    route: route has not been found
    delete host 100.120.128.187: gateway lo0 fib 0: not in table

The route that does exist for that host goes over a different interface (and
it's showing the hostname rather than IP):

    # netstat -r4
    ...
    gcp-freebsd-12-3.p link#3             UHS    tailscal

I can delete the route for that host, and then add a lo0 route:

    # route delete 100.120.128.187
    delete host 100.120.128.187

    # route add 100.120.128.187 -interface lo0
    add host 100.120.128.187: gateway lo0

-- 
You are receiving this mail because:
You are the assignee for the bug.