From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 28 13:50:20 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEFF316A4E0 for ; Mon, 28 Aug 2006 13:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D2943D49 for ; Mon, 28 Aug 2006 13:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7SDoJET016890 for ; Mon, 28 Aug 2006 13:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7SDoJl4016888; Mon, 28 Aug 2006 13:50:19 GMT (envelope-from gnats) Resent-Date: Mon, 28 Aug 2006 13:50:19 GMT Resent-Message-Id: <200608281350.k7SDoJl4016888@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Radim Kolar Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8550A16A500 for ; Mon, 28 Aug 2006 13:46:39 +0000 (UTC) (envelope-from hsn@netmag.cz) Received: from smtp-out3.iol.cz (smtp-out3.iol.cz [194.228.2.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9586A43D49 for ; Mon, 28 Aug 2006 13:46:38 +0000 (GMT) (envelope-from hsn@netmag.cz) Received: from antivir3.iol.cz (antivir3.iplanet.iol.cz [192.168.30.206]) by smtp-out3.iol.cz (Postfix) with ESMTP id 1119621F6B7 for ; Mon, 28 Aug 2006 15:44:32 +0200 (CEST) Received: from localhost (antivir3.iol.cz [127.0.0.1]) by antivir3.iol.cz (Postfix) with ESMTP id 00A8142000C for ; Mon, 28 Aug 2006 15:44:32 +0200 (CEST) Received: from smtp-out3.iol.cz (smtp-out-3.iplanet.iol.cz [192.168.30.28]) by antivir3.iol.cz (Postfix) with ESMTP id E1CFF420006 for ; Mon, 28 Aug 2006 15:44:31 +0200 (CEST) Received: from sanatana.dharma (96.219.broadband3.iol.cz [85.70.219.96]) by smtp-out3.iol.cz (Postfix) with ESMTP id 60C6B57E81 for ; Mon, 28 Aug 2006 15:44:30 +0200 (CEST) Received: from hsn@localhost by sanatana.dharma (Exim 4.63_0 FreeBSD) id 1GHhPg-00056N-Vm ; Mon, 28 Aug 2006 15:44:29 +0200 Message-Id: Date: Mon, 28 Aug 2006 15:44:28 +0200 From: Radim Kolar To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: hsn@netmag.cz Subject: kern/102607: [if_bridge] don't generate random L2 address X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Radim Kolar List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 13:50:20 -0000 >Number: 102607 >Category: kern >Synopsis: [if_bridge] don't generate random L2 address >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 28 13:50:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Radim Kolar >Release: FreeBSD 6.1-STABLE i386 >Organization: sd >Environment: System: FreeBSD sanatana.dharma 6.1-STABLE FreeBSD 6.1-STABLE #3: Fri Aug 25 12:13:08 CEST 2006 root@sanatana.dharma:/usr/obj/usr/src/sys/UP i386 >Description: if_bridge interfaces have every boottime different L2 address. This behaviour is very different from other interfaces like network cards, they have L2 address in EPROMS. Because bridge interface is designed to look and work like other NIC cards, it should have static L2 address by default to make work of network admins easier, other BSDs complains about inet address moved and you can't use static IP in dhcpd. Because not every number can be used as L2 address for bridge, admin can make hard-to-find mistake when configuring static address by hand. >How-To-Repeat: >Fix: 1. change kernel code or to generate static IP address for bridge interface from attached member interfaces. or 2. use startup scripts to generate random number and store it somewhere in /var. or 3. Make system complain/warning if you set bridge0 to broadcast address. or 4. Document in if_bridge(4) that L2 address is random and document correct format of ethernet addresses. Problem with 1. is that address will change if you add or swap NICs in bridge, but it is still less likely to change than using random numbers now. >Release-Note: >Audit-Trail: >Unformatted: