From owner-freebsd-net@FreeBSD.ORG Fri Sep 30 07:57:53 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D8E16A41F for ; Fri, 30 Sep 2005 07:57:53 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CF1D43D4C for ; Fri, 30 Sep 2005 07:57:53 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from 217-13-2-82.dd.nextgentel.com ([217.13.2.82] helo=marcin) by mail.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1ELFld-0006PT-Ra; Fri, 30 Sep 2005 09:57:18 +0200 Date: Fri, 30 Sep 2005 09:57:43 +0200 From: Marcin Jessa To: SAMU Message-Id: <20050930095743.402e56cd.lists@yazzy.org> In-Reply-To: <584642479.20050930101019@mail.ru> References: <20050926195807.GD95971@sandvine.com> <17208.30606.117170.36398@khavrinen.csail.mit.edu> <20050927001650.GA9994@sandvine.com> <20050927180021.GB9994@sandvine.com> <433A2882.4030003@freebsd.org> <433A2D6E.7020205@freebsd.org> <20050928152112.GC9994@sandvine.com> <2262110.20050928194326@mail.ru> <584642479.20050930101019@mail.ru> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) Cc: freebsd-net@freebsd.org Subject: Re: How connect 2 PC with ath in hostap mode ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 07:57:53 -0000 On Fri, 30 Sep 2005 10:10:19 +0400 Andrey Smagin wrote: > Hi ALL, Hi Andrey. > People please say it possible under FreeBSD ? > Any body have sucess stories about it ? > What manual I must read to do it ? :) > man ifconfig should be the place to start. Anyway, you can connect two PCs when one of them runs in hostap and the other one in ad-hoc mode. This will set up one of them as AP: ifconfig_ath0="inet 12.23.34.1 netmask 255.255.255.0 ssid Andrey mode 11g mediaopt hostap" And one in adhoc: ifconfig_ath0="inet 12.23.34.1 netmask 255.255.255.0 ssid Andrey channel 6 mode 11g mediaopt adhoc" You can also run both atheros nics in ad-hoc mode and bridge their interfaces with wired nics. And you can set up your atheros access point as apbridge which will pass packets between wireless clients directly. You cannot connect two APs in hostap mode as they will never associate to one another. Cheers Marcin.