Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 2010 11:58:19 +1200
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        freebsd-current@freebsd.org, brooks@freebsd.org
Subject:   bridge & dhcp
Message-ID:  <AANLkTilHWlY1Mfuv-f6sNb2nsOGLwPMlu6F6DDPrOFRi@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilHWlY1Mfuv-f6sNb2nsOGLwPMlu6F6DDPrOFRi>