LinuxSir.cn,穿越时空的Linuxsir!

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

有熟悉TD/GPRS拨号上网的吗?

[复制链接]
发表于 2009-11-12 23:18:28 | 显示全部楼层 |阅读模式
闲着无事,在网上买了块TD的笔记本内置模块联芯LC5730,在windows下可以通过随E行拨号上网,也可以通过windows自带的拨号程序上网,带宽在1.2M左右吧。在linux通过指定vendor等把模块驱动起来了,拨号也取得IP了,可就是无法上网,照抄了windows下的路由表和DNS也不能上网。有知道有没有人遇到类似的问题,拨号成功并获取到IP却无法上网的。

log:

  1. Nov 11 00:40:01 ethanlin-nb pppd[2101]: pppd 2.4.4 started by root, uid 0
  2. Nov 11 00:40:01 ethanlin-nb pppd[2101]: speed 2936012 not supported
  3. Nov 11 00:40:01 ethanlin-nb pppd[2101]: Using interface ppp0
  4. Nov 11 00:40:01 ethanlin-nb pppd[2101]: Connect: ppp0 <--> /dev/ttyUSB0
  5. Nov 11 00:40:01 ethanlin-nb pppd[2101]: Remote message: Welcome
  6. Nov 11 00:40:01 ethanlin-nb pppd[2101]: PAP authentication succeeded
  7. Nov 11 00:40:07 ethanlin-nb pppd[2101]: local  IP address 10.168.114.205
  8. Nov 11 00:40:07 ethanlin-nb pppd[2101]: remote IP address 192.168.0.1
  9. Nov 11 00:40:07 ethanlin-nb pppd[2101]: primary   DNS address 211.136.20.203
复制代码


拨号过程






  1. --> WvDial: Internet dialer version 1.61
  2. --> Cannot get information for serial port.
  3. --> Initializing modem.
  4. --> Sending: ATZ
  5. OK
  6. --> Sending: ATE0V1
  7. OK
  8. OK
  9. --> Sending: ATS0=0
  10. OK
  11. --> Sending: AT+CFUN=1
  12. OK
  13. --> Modem initialized.
  14. --> Sending: ATDT*99#
  15. --> Waiting for carrier.
  16. CONNECT 2936012
  17. --> Carrier detected.  Starting PPP immediately.
  18. --> Starting pppd at Wed Nov 11 00:40:01 2009
  19. --> Pid of pppd: 2101
  20. --> pppd: -[7f]
  21. --> pppd: -[7f]
  22. --> Using interface ppp0
  23. --> pppd: -[7f]
  24. --> pppd: -[7f]
  25. --> pppd: -[7f]
  26. --> pppd: -[7f]
  27. --> pppd: -[7f]
  28. --> pppd: -[7f]
  29. --> pppd: -[7f]
  30. --> Authentication (PAP) started
  31. --> pppd: -[7f]
  32. --> pppd: -[7f]
  33. --> Authentication (PAP) successful
  34. --> pppd: -[7f]
  35. --> pppd: -[7f]
  36. --> pppd: -[7f]
  37. --> pppd: -[7f]
  38. --> pppd: -[7f]
  39. --> pppd: -[7f]
  40. --> pppd: -[7f]
  41. --> pppd: -[7f]
  42. --> pppd: -[7f]
  43. --> pppd: -[7f]
  44. --> pppd: -[7f]
  45. --> pppd: -[7f]
  46. --> pppd: -[7f]
  47. --> pppd: -[7f]
  48. --> pppd: -[7f]
  49. --> pppd: -[7f]
  50. --> pppd: -[7f]
  51. --> pppd: -[7f]
  52. --> pppd: -[7f]
  53. --> local  IP address 10.168.114.205
  54. --> pppd: -[7f]
  55. --> remote IP address 192.168.0.1
  56. --> pppd: -[7f]
  57. --> primary   DNS address 211.136.20.203
  58. --> pppd: -[7f]
  59. --> pppd: -[7f]
  60. --> Script /etc/ppp/ip-up run successful
  61. --> Default route Ok.
  62. --> warning, can't find address for `www.suse.de`
  63. --> warning, address lookup does not work
  64. --> Nameserver (DNS) failure, the connection may not work.
  65. --> Connected... Press Ctrl-C to disconnect
  66. --> pppd: -[7f]
  67. --> pppd: -[7f]
  68. --> pppd: -[7f]
  69. --> pppd: -[7f]
  70. --> pppd: -[7f]
  71. --> pppd: -[7f]
  72. --> pppd: -[7f]
  73. --> pppd: -[7f]
  74. --> pppd: -[7f]
  75. --> pppd: -[7f]
  76. --> pppd: -[7f]
  77. --> pppd: -[7f]
  78. --> pppd: -[7f]
  79. --> pppd: -[7f]
  80. --> pppd: -[7f]

复制代码

路由表



  1. [root@ethanlin-nb ~]# route
  2. Kernel IP routing table
  3. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  4. 192.168.0.1     *               255.255.255.255 UH    0      0        0 ppp0
  5. default         *               0.0.0.0         U     0      0        0 ppp0

  6. [dalin@ethanlin-nb ~]$ ifconfig
  7. eth0      Link encap:Ethernet  HWaddr 00:21:86:9F:4D:D5  
  8.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  9.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  10.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  11.           collisions:0 txqueuelen:1000
  12.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  13.           Memory:fc200000-fc220000

  14. lo        Link encap:Local Loopback  
  15.           inet addr:127.0.0.1  Mask:255.0.0.0
  16.           inet6 addr: ::1/128 Scope:Host
  17.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  18.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  19.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  20.           collisions:0 txqueuelen:0
  21.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

  22. ppp0      Link encap:Point-to-Point Protocol  
  23.           inet addr:10.168.114.205  P-t-P:192.168.0.1  Mask:255.255.255.255
  24.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  25.           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
  26.           TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
  27.           collisions:0 txqueuelen:3
  28.           RX bytes:58 (58.0 b)  TX bytes:10678 (10.4 Kb)
复制代码


wvdial.conf

  1. [Dialer Defaults]
  2. Init1 = ATZ
  3. Init3 = ATE0V1
  4. Init4 = AT+CGDCONT=4,"IP","cmnet"
  5. Init5 = ATS0=0
  6. Init6 = AT+CFUN=1
  7. Modem Type = USB Modem
  8. Baud = 2936012
  9. New PPPD = yes
  10. Modem = /dev/ttyUSB0
  11. ISDN = 0
  12. Phone = *99#
  13. Password = cmnet
  14. Username = cmnet
  15. Stupid Mode = 1
复制代码
发表于 2009-11-12 23:42:52 | 显示全部楼层
你的ip怎么是内网?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-12 23:45:46 | 显示全部楼层
GPRS拨号就是这样的吧。
附上windows下的情况
  1.   自动配置已启用. . . . . . . . . . : 是
  2.   IPv4 地址 . . . . . . . . . . . . : 10.233.0.229(首选)
  3.   子网掩码  . . . . . . . . . . . . : 255.255.255.255
  4.   默认网关. . . . . . . . . . . . . : 0.0.0.0
  5.   DNS 服务器  . . . . . . . . . . . : 211.136.192.6
  6.   TCPIP 上的 NetBIOS  . . . . . . . : 已禁用
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-11-13 00:10:14 | 显示全部楼层
192.168.0.0是默认的内网ip。
回复 支持 反对

使用道具 举报

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

本版积分规则

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