From owner-freebsd-questions@FreeBSD.ORG Sun Dec 25 12:45:00 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 CD7A416A420 for ; Sun, 25 Dec 2005 12:45:00 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 015E043D64 for ; Sun, 25 Dec 2005 12:44:57 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by zproxy.gmail.com with SMTP id q3so327581nzb for ; Sun, 25 Dec 2005 04:44:57 -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=MP+eNhr9LbD5UDNDwOzE+ZbUbrTstLgqSnjjPtP8XL0NJqMxjJRDBlcjcG7bz7IOlO5/vILFSBfZS70G4Cy4pum2kQ8/AYlcpidvw5RL/vg+WoBb/4LHfcsWSNZDhlBpPEkEB3GX1jBMBhrfc6mjlyNtOJK9jeYNzLWUtRvtbAQ= Received: by 10.36.46.11 with SMTP id t11mr2086774nzt; Sun, 25 Dec 2005 04:44:57 -0800 (PST) Received: from tu208204.ip.tsinghua.edu.cn ( [166.111.208.204]) by mx.gmail.com with ESMTP id j7sm1926383nzd.2005.12.25.04.44.54; Sun, 25 Dec 2005 04:44:56 -0800 (PST) From: Yuan Jue Organization: Tsinghua UNIV. To: Erik =?iso-8859-1?q?N=F8rgaard?= Date: Sun, 25 Dec 2005 20:47:35 +0800 User-Agent: KMail/1.8.3 References: <200512251530.21898.yuanjue02@gmail.com> <43AE884F.70002@locolomo.org> In-Reply-To: <43AE884F.70002@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512252047.35934.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 12:45:00 -0000 On Sunday 25 December 2005 19:53, you wrote: > Yuan Jue wrote: > > ath0: flags=8843 mtu 1500 > > inet 166.111.208.137 netmask 0xfffffe00 broadcast 166.111.209.255 > > ether 00:11:85:1b:21:79 > > media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps) > > status: associated > > ssid A314b channel 11 bssid 00:09:5b:d1:fa:c4 > > authmode OPEN privacy OFF txpowmax 30 protmode CTS bintval 100 > > > > PING 166.111.8.28 (166.111.8.28): 56 data bytes > > ping: send to: No route to host > > it means I cannot connect to the internet even when I have got the > > wireless card an IP address using DHCP. WHY? > > > > can anybody help on this? any suggestion would be much appreciated. > > Take a close look at the ip/broadcast of your nic and the ip of the host > you're trying to ping. > > Your NIC: 166.111.208.137/23 > Your DNS: 166.111.8.28 > 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 64 bytes from 166.111.8.28: icmp_seq=1 ttl=251 time=0.665 ms 64 bytes from 166.111.8.28: icmp_seq=2 ttl=251 time=0.521 ms ^C --- 166.111.8.28 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.521/0.570/0.665/0.067 ms YuanJue@~$ why does this work? it has the same netmask and broadcast address as the wireless NIC. Any more explanations? > They are not on the same network as far as I can see. > > Now, check that you have the default route set, > > # route -n get default thanks for your reply. -- Best Regards. Yuan Jue