From owner-freebsd-questions@FreeBSD.ORG Sun Dec 25 12:52:20 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 3A88B16A41F for ; Sun, 25 Dec 2005 12:52:20 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB54643D66 for ; Sun, 25 Dec 2005 12:52:14 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.16.2.1] (unknown [172.16.2.1]) by strange.daemonsecurity.com (Postfix) with ESMTP id 5AE7F2E047; Sun, 25 Dec 2005 13:52:00 +0100 (CET) Message-ID: <43AE95ED.9040407@locolomo.org> Date: Sun, 25 Dec 2005 13:51:57 +0100 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= Organization: Locolomo.ORG User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yuan Jue References: <200512251530.21898.yuanjue02@gmail.com> <43AE884F.70002@locolomo.org> <200512252047.35934.yuanjue02@gmail.com> In-Reply-To: <200512252047.35934.yuanjue02@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 12:52:20 -0000 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. 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. To check this kind of problems, use snort to sniff what's actually leaving your interface. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2