From owner-freebsd-questions@FreeBSD.ORG Mon Apr 17 10:58:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2E6316A401 for ; Mon, 17 Apr 2006 10:58:18 +0000 (UTC) (envelope-from dick@nagual.st) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [82.74.2.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10B0943D46 for ; Mon, 17 Apr 2006 10:58:17 +0000 (GMT) (envelope-from dick@nagual.st) Received: from arwen.nagual.st (arwen.nagual.st [192.168.11.29]) by nagual.st with esmtp; Mon, 17 Apr 2006 12:58:16 +0200 id 0003982B.444374C8.0000141A Date: Mon, 17 Apr 2006 12:58:17 +0200 From: dick hoogendijk To: fbsdq Message-Id: <20060417125817.57c63491.dick@nagual.st> Organization: de nagual X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.17; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: wrired-wireless if_bridge question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 10:58:19 -0000 The situation: A server with two wired Ethernet cards rl0 to the outside (ISP) rl1 to the local network (192.168.11.1) The server does routing NAT and DHCP; pf is enabled (quite a normal situation ;-) The NEW situation (802.11-to-ethernet bridge) I will add a wireless card to the server. This way my notebook and my (nintendo) DS will have access to the internet. As I understand it after reading articles, the handbook and man if_bridge it goes like this: NOW I have in rc.conf: defaultrouter="82.74.2.1" hostname="lothlorien.nagual.st" ifconfig_rl0="inet 82.74.2.186 netmask 255.255.254.0" ifconfig_rl1="inet 192.168.11.1 netmask 255.255.255.0" After adding the WiFi card this whould be: defaultrouter="82.74.2.1" hostname="lothlorien.nagual.st" ifconfig_rl0="inet 82.74.2.186 netmask 255.255.254.0" ifconfig_rl1="inet 192.168.11.1 netmask 255.255.255.0" ifconfig_ath0="ssid airport01 media autoselect mode 11g mediaopt \ hostap wepmode on wepkey `cat /etc/wepkey` channel 1 up" And than I bridge the two "internal" cards with: cloned_interfaces="bridge0" ifconfig_bridge0="addm ath0 addm rl1 up" Once the interfaces are bridged I should be golden (I'm told). But I still have some questions: (1) Is the above syntax OK? Did I understand it all correctly? (2) Will the IP of the wireless card be the same as the cabled (rl1) card (192.168.11.1)? So, a cabled workstation contacting 192.168.11.1 would reach rl1 and a wireless one ath0? Is this correct? I know it all sounds a bit confusing, but this reflects my feelings. It's kind of new to me and will be better in the future no doubt ;-) Hope to get some helpfull reactions from all of you for whome these things are "so easy" -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ The Power to Serve