From owner-freebsd-questions@FreeBSD.ORG Sun Dec 25 13:21:23 2005 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 9C31F16A41F for ; Sun, 25 Dec 2005 13:21:23 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F9243D46 for ; Sun, 25 Dec 2005 13:21:22 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so969257nzo for ; Sun, 25 Dec 2005 05:21:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:references:in-reply-to:cc:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=rGMK3vxXMdrivH62TzG9/1nQJg7mcNFJHCqzNU0cdyeEdrb8tIHIidSRM4fPsBdCD1gDXzvkVTisGRh48bQV3+p5ZZndsgPqYqIDVzKI6BzheEbzYDDHUjR5TgnTefDIa0hDC/YtpQ744Rvj4Q+6gHDEGRxsLGQU1xPT/InR3lQ= Received: by 10.36.145.5 with SMTP id s5mr2089025nzd; Sun, 25 Dec 2005 05:21:22 -0800 (PST) Received: from tu208241.ip.tsinghua.edu.cn ( [166.111.208.241]) by mx.gmail.com with ESMTP id 10sm3435225nzo.2005.12.25.05.21.18; Sun, 25 Dec 2005 05:21:21 -0800 (PST) From: Yuan Jue Organization: Tsinghua UNIV. To: Erik =?iso-8859-1?q?N=F8rgaard?= Date: Sun, 25 Dec 2005 21:24:01 +0800 User-Agent: KMail/1.8.3 References: <200512251530.21898.yuanjue02@gmail.com> <200512252047.35934.yuanjue02@gmail.com> <43AE95ED.9040407@locolomo.org> In-Reply-To: <43AE95ED.9040407@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512252124.01702.yuanjue02@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Wireless NIC in FreeBSD 6.0 ? 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: Sun, 25 Dec 2005 13:21:23 -0000 On Sunday 25 December 2005 20:51, you wrote: > Yuan Jue wrote: > > On Sunday 25 December 2005 19:53, you wrote: > > yes. they are not on the same LAN. > > but when I use my local NIC to connect the internet, everything is fine. > > the following is how my local NIC works: > > > > YuanJue@~$ ifconfig > > bge0: flags=8843 mtu 1500 > > options=1a > > inet 166.111.208.204 netmask 0xfffffe00 broadcast 166.111.209.255 > > ether 00:0d:9d:90:e0:68 > > media: Ethernet autoselect (100baseTX ) > > status: active > > lo0: flags=8049 mtu 16384 > > inet 127.0.0.1 netmask 0xff000000 > > YuanJue@~$ ping 166.111.8.28 > > PING 166.111.8.28 (166.111.8.28): 56 data bytes > > 64 bytes from 166.111.8.28: icmp_seq=0 ttl=251 time=0.525 ms > > > > why does this work? it has the same netmask and broadcast address > > as the wireless NIC. Any more explanations? > > OK, now, if you have two nic's configured for the same lan things get > wierd. Try > > # ifconfig bge0 down > > And, check that default route is set correctly. thank you very much. it does work now. :) you know, back to FreeBSD 5.4, things like this never happened. so I even never think about close the local NIC down to get the wireless one works. Maybe this is the FreeBSD 6.0's improvement on wireless access, right? > > I think the default route binds not only to an ip but also to the > interface that connects to that network, so maybe you have configured > both bge0 and ath0 and default route set to go out bge0. Now, when you > disconnect bge0 and try to ping, your ping is not sent on ath0 as you > might think but on bge0. thanks for your explanations. It is very appreciated. > > To check this kind of problems, use snort to sniff what's actually > leaving your interface. > > Cheers, Erik -- Best Regards. Yuan Jue