设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Archlinux讨论区
›
有熟悉TD/GPRS拨号上网的吗?
返回列表
查看:
1013
|
回复:
3
有熟悉TD/GPRS拨号上网的吗?
[复制链接]
dalin
dalin
当前离线
积分
125
IP卡
狗仔卡
发表于 2009-11-12 23:18:28
|
显示全部楼层
|
阅读模式
闲着无事,在网上买了块TD的笔记本内置模块联芯LC5730,在windows下可以通过随E行拨号上网,也可以通过windows自带的拨号程序上网,带宽在1.2M左右吧。在linux通过指定vendor等把模块驱动起来了,拨号也取得IP了,可就是无法上网,照抄了windows下的路由表和DNS也不能上网。有知道有没有人遇到类似的问题,拨号成功并获取到IP却无法上网的。
log:
Nov 11 00:40:01 ethanlin-nb pppd[2101]: pppd 2.4.4 started by root, uid 0
Nov 11 00:40:01 ethanlin-nb pppd[2101]: speed 2936012 not supported
Nov 11 00:40:01 ethanlin-nb pppd[2101]: Using interface ppp0
Nov 11 00:40:01 ethanlin-nb pppd[2101]: Connect: ppp0 <--> /dev/ttyUSB0
Nov 11 00:40:01 ethanlin-nb pppd[2101]: Remote message: Welcome
Nov 11 00:40:01 ethanlin-nb pppd[2101]: PAP authentication succeeded
Nov 11 00:40:07 ethanlin-nb pppd[2101]: local IP address 10.168.114.205
Nov 11 00:40:07 ethanlin-nb pppd[2101]: remote IP address 192.168.0.1
Nov 11 00:40:07 ethanlin-nb pppd[2101]: primary DNS address 211.136.20.203
复制代码
拨号过程
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: ATE0V1
OK
OK
--> Sending: ATS0=0
OK
--> Sending: AT+CFUN=1
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
CONNECT 2936012
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Nov 11 00:40:01 2009
--> Pid of pppd: 2101
--> pppd: -[7f]
--> pppd: -[7f]
--> Using interface ppp0
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> Authentication (PAP) started
--> pppd: -[7f]
--> pppd: -[7f]
--> Authentication (PAP) successful
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> local IP address 10.168.114.205
--> pppd: -[7f]
--> remote IP address 192.168.0.1
--> pppd: -[7f]
--> primary DNS address 211.136.20.203
--> pppd: -[7f]
--> pppd: -[7f]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, can't find address for `www.suse.de`
--> warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
--> pppd: -[7f]
复制代码
路由表
[root@ethanlin-nb ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.1 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0
[dalin@ethanlin-nb ~]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:21:86:9F:4D:D5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:fc200000-fc220000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.168.114.205 P-t-P:192.168.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:58 (58.0 b) TX bytes:10678 (10.4 Kb)
复制代码
wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init3 = ATE0V1
Init4 = AT+CGDCONT=4,"IP","cmnet"
Init5 = ATS0=0
Init6 = AT+CFUN=1
Modem Type = USB Modem
Baud = 2936012
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = cmnet
Username = cmnet
Stupid Mode = 1
复制代码
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
难免有错
难免有错
当前离线
积分
1785
IP卡
狗仔卡
发表于 2009-11-12 23:42:52
|
显示全部楼层
你的ip怎么是内网?
回复
支持
反对
使用道具
举报
显身卡
dalin
dalin
当前离线
积分
125
IP卡
狗仔卡
楼主
|
发表于 2009-11-12 23:45:46
|
显示全部楼层
GPRS拨号就是这样的吧。
附上windows下的情况
自动配置已启用. . . . . . . . . . : 是
IPv4 地址 . . . . . . . . . . . . : 10.233.0.229(首选)
子网掩码 . . . . . . . . . . . . : 255.255.255.255
默认网关. . . . . . . . . . . . . : 0.0.0.0
DNS 服务器 . . . . . . . . . . . : 211.136.192.6
TCPIP 上的 NetBIOS . . . . . . . : 已禁用
复制代码
回复
支持
反对
使用道具
举报
显身卡
难免有错
难免有错
当前离线
积分
1785
IP卡
狗仔卡
发表于 2009-11-13 00:10:14
|
显示全部楼层
192.168.0.0是默认的内网ip。
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
服务器架设、应用、维护
LFS(LinuxfromScratch)
BSD 讨论专题
shell进阶应用、shell编程
Redhat/Fedora/CentOS Linux
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表