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:
[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"