Chinaunix首页 | 论坛 | 博客
  • 博客访问: 187260
  • 博文数量: 18
  • 博客积分: 1766
  • 博客等级: 上尉
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-09 17:22
文章分类

全部博文(18)

文章存档

2010年(18)

分类: LINUX

2010-02-02 21:54:49

试过berry4all和barry,仅一偶一次成功上网了,pppd call barry-chinamobile

之后的好多次试拨,看提示的信息是拨号成功了,可就是浏览器没法上网,第一次是可以的。


h180 ~ # pppd call barry-chinamobile
Initializing
Script /usr/sbin/chat -f /etc/chatscripts/barry-tmobileus.chat finished (pid 11638), status = 0x0
Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth pap>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
sent [PAP AuthReq id=0x1 user="" password=<hidden>]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x2 <addr 169.254.1.1>]
sent [IPCP ConfAck id=0x2 <addr 169.254.1.1>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.157.145.3>]
sent [IPCP ConfReq id=0x3 <addr 10.157.145.3>]
rcvd [IPCP ConfAck id=0x3 <addr 10.157.145.3>]
not replacing existing default route via 219.245.91.254
Cannot determine ethernet address for proxy ARP
local IP address 10.157.145.3
remote IP address 169.254.1.1
Script /etc/ppp/ip-up started (pid 11645)
Script /etc/ppp/ip-up finished (pid 11645), status = 0x0


第一次成功上网的时候截图了,对比了一下,没发现有什么不对的;况且也分配了ip了,怎么就上不了网了呢? 连ping 古歌百度都是unkonwn hostname....

# ifconfig

h180 ~ # ifconfig
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:574 errors:0 dropped:0 overruns:0 frame:0
          TX packets:574 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:458145 (458.1 KB) TX bytes:458145 (458.1 KB)

ppp0 Link encap:Point-to-Point Protocol
          inet addr:10.157.145.3 P-t-P:169.254.1.1 Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:46 (46.0 B) TX bytes:67 (67.0 B)


# cat /etc/chatscripts/barry-chinamobile.chat

h180 ~ # cat /etc/chatscripts/barry-chinamobile.chat
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED ABORT ERROR
SAY "Initializing\n"
" ATZ
OK AT+CGDCONT=1,"
IP","cmnet


# cat /etc/ppp/peers/barry-chinamobile

h180 ~ # cat /etc/ppp/peers/barry-chinamobile
#
# This file contains options for T-Mobile US Blackberries
#
# It is based on a file reported to work, but edited for Barry.
#

connect "/usr/sbin/chat -f /etc/chatscripts/barry-tmobileus.chat"

# You may not need to auth. If you do, use your user/pass from [url]www.t-mobile.com.[/url]
#noauth
user ""
password ""

defaultroute
usepeerdns

noipdefault
nodetach
novj
noaccomp
nocrtscts
nopcomp
nomagic

nomultilink
ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote

# added so not to disconnect after a few minutes
lcp-echo-interval 0
lcp-echo-failure 999

mtu 1492
debug
debug debug debug

pty "/usr/sbin/pppob"

# 921600 Works For Me (TM) but won


不知道哪出问题了,
阅读(3099) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~