LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1836|回复: 8

[求助]电脑-->路由器--拨号-->ADSL Modem上网难题…以及无线USB网卡

[复制链接]
发表于 2008-8-2 17:57:16 | 显示全部楼层 |阅读模式
无论是有线还是无线连接到路由器
无论是DHCP自动分配ip到路由器还是指定ip到路由器
路由器端发出拨号

ping DNS可以通
ping 任何有效网址也可以通
并且均无丢包现象
也就是说DNS正常

但是就是无法连接到任何网址
比如浏览器输入www.g.cn  始终显示正在连接……
irc连接irc.freenode.net始终显示connecting.....

但EVAQ应该是直接ip连接的 却可以正常使用

用LIVECD2008启动后也是同样的结果

在win下以这样的方式上网一切正常

实在找不出问题如何解决
发帖求助各位前辈
谢谢帮助

电脑ADSL直接拨号   该方式一切正常
  1. Kernel IP routing table
  2. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  3. 1.144.212.222.b *               255.255.255.255 UH    0      0        0 ppp0
  4. loopback        localhost       255.0.0.0       UG    0      0        0 lo
  5. default         1.144.212.222.b 0.0.0.0         UG    0      0        0 ppp0
  6. Kernel IP routing table
  7. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  8. 222.212.144.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
  9. 127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
  10. 0.0.0.0         222.212.144.1   0.0.0.0         UG    0      0        0 ppp0
  11. eth0      Link encap:Ethernet  HWaddr 00:1a:4d:82:3f:9d  
  12.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  13.           RX packets:62902 errors:0 dropped:0 overruns:0 frame:0
  14.           TX packets:73879 errors:0 dropped:0 overruns:0 carrier:0
  15.           collisions:0 txqueuelen:1000
  16.           RX bytes:37442730 (35.7 MiB)  TX bytes:56256366 (53.6 MiB)
  17.           Interrupt:16
  18. lo        Link encap:Local Loopback  
  19.           inet addr:127.0.0.1  Mask:255.0.0.0
  20.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  21.           RX packets:2791 errors:0 dropped:0 overruns:0 frame:0
  22.           TX packets:2791 errors:0 dropped:0 overruns:0 carrier:0
  23.           collisions:0 txqueuelen:0
  24.           RX bytes:1615104 (1.5 MiB)  TX bytes:1615104 (1.5 MiB)
  25. ppp0      Link encap:Point-to-Point Protocol  
  26.           inet addr:222.212.157.225  P-t-P:222.212.144.1  Mask:255.255.255.255
  27.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  28.           RX packets:1346 errors:0 dropped:0 overruns:0 frame:0
  29.           TX packets:1376 errors:0 dropped:0 overruns:0 carrier:0
  30.           collisions:0 txqueuelen:3
  31.           RX bytes:153413 (149.8 KiB)  TX bytes:83271 (81.3 KiB)
复制代码

无线连接到路由器
  1. leeh@GraySky ~ $ more wireless
  2. leeh@GraySky ~ $ sudo /etc/init.d/net.wlan0 start
  3. * Caching service dependencies ...                                                                                             
  4. [ ok ]
  5. * Bringing up interface wlan0
  6. *   Configuring wireless network for wlan0
  7. *   Scanning for access points
  8. *     Found "LeeH" at 00:19:E0:B2:82:0E, managed, encrypted
  9. *   Connecting to "LeeH" in managed mode (WEP enabled) ...                                                                     
  10. [ ok ]
  11. *     wlan0 connected to SSID "LeeH" at 00:19:E0:B2:82:0E
  12. *     in managed mode (WEP enabled)
  13. *   dhcp ...
  14. *     Running dhcpcd ...
  15. wlan0: dhcpcd 4.0.0-rc4 starting
  16. wlan0: hardware address = 00:1c:f0:cc:9b:24
  17. wlan0: broadcasting for a lease
  18. wlan0: offered 192.168.1.100 from 192.168.1.100 `�'
  19. wlan0: acknowledged 192.168.1.100 from 192.168.1.100 `�'
  20. wlan0: checking 192.168.1.100 is available on attached networks
  21. wlan0: leased 192.168.1.100 for 7200 seconds
  22. wlan0: no renewal time supplied, assuming 3600 seconds
  23. wlan0: no rebind time supplied, assuming 6300 seconds                                                                           
  24. [ ok ]
  25. *     received address 192.168.1.100/24                           
  26. Kernel IP routing table
  27. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  28. 192.168.1.0     *               255.255.255.0   U     2005   0        0 wlan0
  29. loopback        localhost       255.0.0.0       UG    0      0        0 lo
  30. default         192.168.1.1     0.0.0.0         UG    2005   0        0 wlan0
  31. Kernel IP routing table
  32. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  33. 192.168.1.0     0.0.0.0         255.255.255.0   U     2005   0        0 wlan0
  34. 127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
  35. 0.0.0.0         192.168.1.1     0.0.0.0         UG    2005   0        0 wlan0
  36. lo        Link encap:Local Loopback  
  37.           inet addr:127.0.0.1  Mask:255.0.0.0
  38.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  39.           RX packets:2791 errors:0 dropped:0 overruns:0 frame:0
  40.           TX packets:2791 errors:0 dropped:0 overruns:0 carrier:0
  41.           collisions:0 txqueuelen:0
  42.           RX bytes:1615104 (1.5 MiB)  TX bytes:1615104 (1.5 MiB)
  43. wlan0     Link encap:Ethernet  HWaddr 00:1c:f0:cc:9b:24  
  44.           inet addr:192.168.1.100  Bcast:255.255.255.255  Mask:255.255.255.0
  45.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  46.           RX packets:467 errors:0 dropped:0 overruns:0 frame:0
  47.           TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
  48.           collisions:0 txqueuelen:1000
  49.           RX bytes:170654 (166.6 KiB)  TX bytes:40030 (39.0 KiB)
  50. wmaster0  Link encap:UNSPEC  HWaddr 00-1C-F0-CC-9B-24-00-00-00-00-00-00-00-00-00-00  
  51.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  52.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  53.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  54.           collisions:0 txqueuelen:1000
  55.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
复制代码

有线连接到路由器
  1. leeh@GraySky ~ $ more eth0
  2. eth0      Link encap:Ethernet  HWaddr 00:1a:4d:82:3f:9d  
  3.           inet addr:192.168.1.101  Bcast:255.255.255.255  Mask:255.255.255.0
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:68243 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:79444 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:39612350 (37.7 MiB)  TX bytes:56956081 (54.3 MiB)
  9.           Interrupt:16
  10. lo        Link encap:Local Loopback  
  11.           inet addr:127.0.0.1  Mask:255.0.0.0
  12.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  13.           RX packets:2791 errors:0 dropped:0 overruns:0 frame:0
  14.           TX packets:2791 errors:0 dropped:0 overruns:0 carrier:0
  15.           collisions:0 txqueuelen:0
  16.           RX bytes:1615104 (1.5 MiB)  TX bytes:1615104 (1.5 MiB)
  17. Kernel IP routing table
  18. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  19. 192.168.1.0     *               255.255.255.0   U     2      0        0 eth0
  20. loopback        localhost       255.0.0.0       UG    0      0        0 lo
  21. default         192.168.1.1     0.0.0.0         UG    2      0        0 eth0
  22. Kernel IP routing table
  23. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  24. 192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 eth0
  25. 127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
  26. 0.0.0.0         192.168.1.1     0.0.0.0         UG    2      0        0 eth0
复制代码

/etc/conf.d/net
  1. leeh@GraySky ~ $ more /etc/conf.d/net
  2. # This blank configuration will automatically use DHCP for any net.*
  3. # scripts in /etc/init.d.  To create a more complete configuration,
  4. # please review /etc/conf.d/net.example and save your configuration
  5. # in /etc/conf.d/net (this file :]!).
  6. config_eth0=( "192.168.1.3 netmask 255.255.255.0" )
  7. gateways_eth0=( "default 192.168.1.1" )
  8. config_eth0=( "adsl" )
  9. #modules=( "iwconfig" )
  10. #mode_wlan0="ad-hoc"
  11. #ssid_wlan0="MyWifi"
  12. #channel_wlan0="1"
  13. #config_wlan0=( "192.168.0.1  netmask 255.255.255.0 broadcast 192.168.0.255" )
  14. #routes_wlan0=( "default via 192.168.0.1" )
  15. preferred_aps=( "LeeH" )
  16. key_LeeH="s:40368 enc open"
  17. config_wlan0=( "192.168.1.100  netmask 255.255.255.0 broadcast 192.168.1.255" )
  18. routes_wlan0=( "default via 192.168.1.1" )
  19. #config_wlan0=( "dhcp" )
复制代码

还有个问题  我想usb无线网卡设置为adhoc模式
但是设置后笔记本电脑可以搜索到MyWifi,点连接后始终连接不上
 楼主| 发表于 2008-8-3 18:59:38 | 显示全部楼层
TCP方式无法连接 始终卡在正在连接那里
而UDP方式一切正常
比如EVAQ

还是找不出怎么解决
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-3 21:02:43 | 显示全部楼层
会不会有这样的可能呢?
IPS禁止了路由上网
windows系统用路由上网不会被检测到
而linux下却被检测到
回复 支持 反对

使用道具 举报

发表于 2008-8-4 11:55:25 | 显示全部楼层
把你在gentoo官方论坛发的贴子的链接也引过来吧,相互参考
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-5 11:53:44 | 显示全部楼层
Post by axlrose;1882320
把你在gentoo官方论坛发的贴子的链接也引过来吧,相互参考

我在gentoo论坛的帖子

http://forums.gentoo.org/viewtopic-t-702623.html
回复 支持 反对

使用道具 举报

发表于 2008-8-5 14:40:25 | 显示全部楼层
traceroute呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-5 19:16:30 | 显示全部楼层
Post by zhllg;1882736
traceroute呢?
由电脑连接adsl modem拨号情况下
  1. GraySky leeh # traceroute www.linuxsir.cn
  2. traceroute to www.linuxsir.cn (218.61.34.144), 30 hops max, 40 byte packets
  3. 1  * * *
  4. 2  222.212.255.213 (222.212.255.213)  33.616 ms  36.042 ms  37.645 ms
  5. 3  221.237.185.41 (221.237.185.41)  39.729 ms  41.199 ms  43.392 ms
  6. 4  222.213.5.9 (222.213.5.9)  46.326 ms  47.819 ms  49.514 ms
  7. 5  * * *
  8. 6  * 202.97.60.222 (202.97.60.222)  61.560 ms  62.321 ms
  9. 7  202.97.15.166 (202.97.15.166)  105.794 ms  105.657 ms  106.658 ms
  10. 8  219.158.5.17 (219.158.5.17)  104.702 ms  104.208 ms  104.688 ms
  11. 9  219.158.14.82 (219.158.14.82)  122.441 ms  121.432 ms  121.524 ms
  12. 10  218.61.255.198 (218.61.255.198)  124.894 ms  124.891 ms  125.858 ms
  13. 11  218.61.254.118 (218.61.254.118)  124.128 ms  123.889 ms  123.638 ms
  14. 12  218.61.34.144 (218.61.34.144)  123.642 ms  123.615 ms  123.295 ms
复制代码

但是还成路由器连接
  1. GraySky leeh # ping 61.139.2.69
  2. PING 61.139.2.69 (61.139.2.69) 56(84) bytes of data.
  3. 64 bytes from 61.139.2.69: icmp_seq=1 ttl=251 time=30.2 ms
  4. 64 bytes from 61.139.2.69: icmp_seq=2 ttl=251 time=30.0 ms
  5. ^C
  6. --- 61.139.2.69 ping statistics ---
  7. 2 packets transmitted, 2 received, 0% packet loss, time 1000ms
  8. rtt min/avg/max/mdev = 30.057/30.144/30.231/0.087 ms
  9. GraySky leeh # ping www.linuxsir.cn
  10. PING www.linuxsir.cn (218.61.34.144) 56(84) bytes of data.
  11. 64 bytes from 218.61.34.144: icmp_seq=1 ttl=52 time=110 ms
  12. 64 bytes from 218.61.34.144: icmp_seq=2 ttl=52 time=116 ms
  13. ^C
  14. --- www.linuxsir.cn ping statistics ---
  15. 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
  16. rtt min/avg/max/mdev = 110.598/113.599/116.601/3.020 ms
  17. GraySky leeh # ls
  18. adsl  Desktop  Downloads  email  eth0  Music  P2P  Picture  temp  wireless
  19. GraySky leeh # traceroute www.linuxsir.cn
  20. traceroute to www.linuxsir.cn (218.61.34.144), 30 hops max, 40 byte packets
  21. 1  * * *
  22. 2  * * *
  23. 3  * * *
  24. 4  * * *
  25. 5  * * *
  26. 6  * * *
  27. 7  * * *
  28. 8  * * *
  29. 9  * * *
  30. 10  * * *
  31. 11  * * *
  32. 12  * * *
  33. 13  * * *
  34. 14  * * *
  35. 15  * * *
  36. 16  * * *
  37. 17  * * *
  38. 18  * * *
  39. 19  * * *
  40. 20  * * *
  41. 21  * * *
  42. 22  * * *
  43. 23  * * *
  44. 24  * * *
  45. 25  * * *
  46. 26  * * *
  47. 27  * * *
  48. 28  * * *
  49. 29  * * *
  50. 30  * * *
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-8-5 22:22:06 | 显示全部楼层
楼上的,路由trace不出去很正常,大多数小路由器都不支持traceroute,至少我用过的都没法trace。
回复 支持 反对

使用道具 举报

发表于 2008-8-6 10:01:56 | 显示全部楼层
搭车问下这跟网卡MTU有关系么
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表