Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2005 20:47:35 +0800
From:      Yuan Jue <yuanjue02@gmail.com>
To:        Erik =?iso-8859-1?q?N=F8rgaard?= <norgaard@locolomo.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Wireless NIC in FreeBSD 6.0 ?
Message-ID:  <200512252047.35934.yuanjue02@gmail.com>
In-Reply-To: <43AE884F.70002@locolomo.org>
References:  <200512251530.21898.yuanjue02@gmail.com> <43AE884F.70002@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 25 December 2005 19:53, you wrote:
> Yuan Jue wrote:
> > ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
        inet 166.111.208.204 netmask 0xfffffe00 broadcast 166.111.209.255
        ether 00:0d:9d:90:e0:68
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512252047.35934.yuanjue02>