bridge & dhcp

From: Andrew Thompson <thompsa_at_FreeBSD.org>
Date: Thu, 3 Jun 2010 11:58:19 +1200
Hi,

> r179003 | brooks | 2008-05-15 13:06:10 +1200 (Thu, 15 May 2008) | 9 lines
>
>Change the default value of synchronous_dhclient to NO.
>
>To preserve the existing behavior of etc/rc.d/netif, add code to wait
>up to if_up_delay seconds (30 seconds by default) for a default route to
>be configured if there are any dhcp interfaces.  This should be extended
>to test that the interface is actually up.

As far as I can see this means a bridge interface no longer works when
set to dhcp on boot, as the above assumes devd will start dhclient.
Firstly it does not generate link-state events which I patched for
(same as the recent tap(4) change) but the bridge also doesn't support
the SIOCGIFMEDIA ioctl to match "ethernet" in the 2nd part of the
rule.

notify 0 {
        match "system"          "IFNET";
        match "type"            "LINK_UP";
        media-type              "ethernet";
        action "/etc/rc.d/dhclient quietstart $subsystem";
};

What is the best way to fix this?


Andrew
Received on Wed Jun 02 2010 - 21:58:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:04 UTC