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

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280871

Tatsuki Makino <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Tatsuki Makino <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.