[Bug 280871] dhclient run from netif without taking fib into account

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 20 Aug 2024 09:46:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280871

Tatsuki Makino <tatsuki_makino@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tatsuki_makino@hotmail.com

--- Comment #1 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
For the past few days, I've been experimenting with settings in similar areas
:)

Since the default gate obtained from DHCP is not set in the fib, I think the
workaround is as follows.

Write the following chunk to /etc/dhclient-enter-hooks

route()
{
        case "${interface}" in
        vlan4087)
                command route ${1:+"$@" -fib 1}
                ;;
        *)
                command route ${1:+"$@"}
        esac
}

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