From owner-freebsd-stable@FreeBSD.ORG Fri Feb 25 07:18:47 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D6AD106564A for ; Fri, 25 Feb 2011 07:18:47 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9C1D08FC13 for ; Fri, 25 Feb 2011 07:18:46 +0000 (UTC) Received: by wyb32 with SMTP id 32so1579217wyb.13 for ; Thu, 24 Feb 2011 23:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=B7oj7SppnmfxfuR/yI9rCXSJpL2nfdCa9Fpg2+Q7LAM=; b=ZT3OFkqkHEg/zdSOkj9w4f9lvWytq700ColicsxMwAlpZdZxEdhar2iUt0xlltS8BG /PEzj/Q2WqgN+BJLM9DwPuTMbxY8nKliJpQqhi3n6GpzunUMYwfJXtRZsqYUMurxa1dj wezZUkv/R8DfkjcYRekJrGzMWabmiqZ6sSzpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cawpzUoXyHks51qsGI+FbQaOW/xzwo2zhnn+suVG8JrAMXSQ0C/ddQjTWUbxYB8vIA 5Xol10UJLcBawuYtJ8uoIAr5FFvwf7S4vZ/cbCkw8rCNV+XcmtvKn//C7l+c+qCqi9NZ W4i6xcYKeFE0hzRgNkLpowh1H/SZAvQoPPA6U= MIME-Version: 1.0 Received: by 10.227.138.15 with SMTP id y15mr1709843wbt.186.1298617015742; Thu, 24 Feb 2011 22:56:55 -0800 (PST) Received: by 10.227.155.133 with HTTP; Thu, 24 Feb 2011 22:56:55 -0800 (PST) Date: Fri, 25 Feb 2011 00:56:55 -0600 Message-ID: From: Zhihao Yuan To: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset=UTF-8 Subject: How to bind a static ether address to bridge? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 07:18:47 -0000 My server is behind a DHCP-enabled router, and it has two network interfaces, wlan0 and bge0. I want to use them together, so I bind them, plus tap0 to bridge0. But bridge has a random MAC address for each time it was created, which makes me hard to reserve an IP for it (since I need to forward some ports to this server). So I set net.link.bridge.inherit_mac=1, which makes bridge0 to use bge0's MAC address, always. But this causes another problem: the packets sent to bridge0 is also sent to bge0, -- the packets are duplicated! The kernel have to drop half of them. So how can I bind a distinct MAC address to a bridge? -- Zhihao Yuan The best way to predict the future is to invent it.