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

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Aug 2024 22:21:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280871

            Bug ID: 280871
           Summary: dhclient run from netif without taking fib into
                    account
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: xistence@0x58.com

Configuration:

ifconfig_vlan4088="DHCP vlan 4088 vlandev lagg0 mtu 1500"
ifconfig_vlan4088_ipv6="inet6 auto_linklocal"

ifconfig_vlan4087="DHCP vlan 4087 vlandev lagg0 mtu 1500 fib 1"
ifconfig_vlan4087_ipv6="inet6 auto_linklocal fib 1"

However upon bringing up the interface, dhclient is run without the appropriate
fib set.

Setting dhclient_fib=1 is not an option, since that would also force the fib to
be set to 1 for the vlan4088 interface which I want in fib 0.

There's currently no way to set the fib for the invocation of dhclient on a
particular interface.

Maybe having dhclient rc script fetch that information from ifconfig would be
useful? Or some other way of specifying the fib for the interface.

I tried dhclient_vlan4088_fib=1 but that does not work, since it seems that fib
is only available for dhclient_fib in /etc/rc.sub and the dhclient script does
not support it per interface like it does config flags per interface.

Running 

setfib 1 service dhclient start vlan4087

works as expected.

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