4g模块Linux拨号ppp脚本,在ARM-LINUX平台实现4G模块PPP拨号上网(串口/USB)

# pppd call provider &

pppd options in effect:

debug                # (from /etc/ppp/peers/provider)

nodetach                # (from /etc/ppp/peers/provider)

persist                # (from /etc/ppp/peers/provider)

dump                # (from /etc/ppp/peers/provider)

noauth                # (from /etc/ppp/peers/provider)

user cmnet                # (from /etc/ppp/peers/provider)

remotename cmnet                # (from /etc/ppp/peers/provider)

/dev/ttyUSB2                # (from /etc/ppp/peers/provider)

9600                # (from /etc/ppp/peers/provider)

lock                # (from /etc/ppp/peers/provider)

connect /usr/sbin/chat -s -v -f /etc/chatscripts/pap                # (from /etc/ppp/peers/provider)

nocrtscts                # (from /etc/ppp/peers/provider)

local                # (from /etc/ppp/peers/provider)

asyncmap 0                # (from /etc/ppp/options)

lcp-echo-failure 4                # (from /etc/ppp/options)

lcp-echo-interval 30                # (from /etc/ppp/options)

hide-password                # (from /etc/ppp/options)

ipparam cmnet                # (from /etc/ppp/peers/provider)

noipdefault                # (from /etc/ppp/peers/provider)

usepeerdns                # (from /etc/ppp/peers/provider)

:                # (from /etc/ppp/peers/provider)

noipx                # (from /etc/ppp/options)

timeout set to 15 seconds

abort on (BUSY)

abort on (DELAYED)

abort on (ERROR)

abort on (NO DIALTONE)

abort on (NO CARRIER)

timeout set to 40 seconds

send (AT^M)

expect (OK)

AT^M^M

OK

-- got it

send (AT+CSQ^M)

expect (OK)

^M

AT+CSQ^M^M

+CSQ: 25,99^M

OK

-- got it

send (ATDT*99#^M)

expect (CONNECT)

^M

ATDT*99#^M^M

CONNECT

-- got it

Script /usr/sbin/chat -s -v -f /etc/chatscripts/pap finished (pid 1448), status = 0x0

Serial connection established.

using channel 1

Using interface ppp0

Connect: ppp0 /dev/ttyUSB2

sent [LCP ConfReq id=0x1 ]

rcvd [LCP ConfReq id=0x0 ]

No auth is possible

sent [LCP ConfRej id=0x0 ]

rcvd [LCP ConfAck id=0x1 ]

rcvd [LCP ConfReq id=0x1 ]

sent [LCP ConfAck id=0x1 ]

sent [LCP EchoReq id=0x0 magic=0xdb90a4ab]

sent [CCP ConfReq id=0x1 ]

sent [IPCP ConfReq id=0x1 ]

rcvd [LCP DiscReq id=0x2 magic=0xc1e41549]

rcvd [LCP EchoRep id=0x0 magic=0xc1e41549 db 90 a4 ab]

rcvd [LCP ProtRej id=0x3 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=0x0 ]

sent [IPCP ConfAck id=0x0 ]

rcvd [IPCP ConfRej id=0x1 ]

sent [IPCP ConfReq id=0x2 ]

rcvd [IPCP ConfNak id=0x2 ]

sent [IPCP ConfReq id=0x3 ]

rcvd [IPCP ConfAck id=0x3 ]

local  IP address 100.109.117.176

remote IP address 10.0.0.1

primary   DNS address 211.136.17.107

secondary DNS address 211.136.20.203

Script /etc/ppp/ip-up started (pid 1453)

Script /etc/ppp/ip-up finished (pid 1453), status = 0x0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值